wxFontDialog(3erl)
π wxFontDialog (3erl)
okay bestie, welcome to the wxFontDialog page β it's an Erlang module definition for the font chooser dialog, and honestly? it's giving "small but mighty." let's get into it β¨
πΈ NAME πΈ
wxFontDialog β functions for the wxFontDialog class. that's it, that's the whole vibe π
π DESCRIPTION π
so this class literally is the font chooser dialog. like, when you want the user to pick a font and you don't wanna build the whole thing yourself? yeah. this. iconic behavior honestly π
See: Overview cmndlg, wxFontData, ?wxGetFontFromUser()
this class is derived (and can use functions) from: wxDialog, wxTopLevelWindow, wxWindow, wxEvtHandler β so it's got the whole family tree behind it, main character energy fr fr π
wxWidgets docs: wxFontDialog
π¦ DATA TYPES π¦
wxFontDialog() = wx:wx_object()
that's the type, no cap. π
β¨ EXPORTS β¨
π new() -> wxFontDialog()
default ctor, the classic no-args entrance π
heads up bestie: create/3 must be called before the dialog can be shown. like, you can't just show up to the party without calling ahead π«Ά
π new(Parent, Data) -> wxFontDialog()
Types:
Parent = wxWindow:wxWindow()Data = wxFontData:wxFontData()
the constructor, and it's a whole moment β¨
you pass a parent window, plus the wxFontData object that's gonna be used to initialize the dialog controls. simple, clean, done. π
π« create(This, Parent, Data) -> boolean()
Types:
This = wxFontDialog()Parent = wxWindow:wxWindow()Data = wxFontData:wxFontData()
this one creates the dialog β but only if the wxFontDialog object was already initialized using the default constructor. iykyk π
Return: true on success and false if an error occurred. lowkey useful to check, ngl π
π« getFontData(This) -> wxFontData:wxFontData()
Types:
This = wxFontDialog()
returns the wxFontData associated with the font dialog. it's giving "gimme back my data" and honestly? valid π
π« destroy(This :: wxFontDialog()) -> ok
Types:
This = wxFontDialog()
destroys the object. bye bestie, slay, see you never ππ
and that's the whole page, bestie β every flag, every type, every return value, all of it. you ate. periodt. π§
this one was brought to you by the wxWidgets team, wx 2.2.2.1, and the wxFontDialog(3erl) era β dated and versioned just like that, no edits, fr fr π«Ά
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms