wxFontDialog(3)
π wxFontDialog π
okay bestie, so this is the wxFontDialog page from the Erlang module definitions, and it's literally the font chooser dialog. yes, THE font picker. the one where you go "ooh what font" and it's giving main character energy π
β¨ NAME β¨
wxFontDialog β bestie, this class represents the font chooser dialog. that's it, that's the whole vibe π
πΈ DESCRIPTION πΈ
so like, go peek at these first, fr fr:
- Overview
cmndlg wxFontData?wxGetFontFromUser()
and heads up, this class is derived from stuff, so it can also use all their functions, no cap:
wxDialogwxTopLevelWindowwxWindowwxEvtHandler
also there's wxWidgets docs for it: wxFontDialog β go look, iykyk π
π¦ DATA TYPES π¦
wxFontDialog()::wx:wx_object()β yeah it's just a wx object underneath, iconic π
π FUNCTIONS π
π« create(This, Parent, Data) -> boolean()
create(This, Parent, Data) -> boolean()
when
This :: wxFontDialog(),
Parent :: wxWindow:wxWindow(),
Data :: wxFontData:wxFontData().
so this one creates the dialog, but only if you initialized the wxFontDialog object using the default constructor. like, if you already went the ctor route with args, this isn't the move π«Ά
return: true on success, and false if an error occurred. so basically a little vibe check back atcha β¨
π« destroy(This :: wxFontDialog()) -> ok.
destroys the object. bye bestie, we barely knew ye π
π« getFontData(This) -> wxFontData:wxFontData()
getFontData(This) -> wxFontData:wxFontData()
when This :: wxFontDialog().
returns the wxFontData associated with the font dialog. it's giving "hand over the font data bestie" π
π« new() -> wxFontDialog().
default ctor. so like.
β οΈ real talk: create/3 must be called before the dialog can be shown. no skipping steps, babes, that's not it π
π« new(Parent, Data) -> wxFontDialog()
new(Parent, Data) -> wxFontDialog()
when
Parent :: wxWindow:wxWindow(),
Data :: wxFontData:wxFontData().
the actual constructor, periodt. pass in a parent window, and the wxFontData object that's gonna be used to initialize the dialog controls. easy as π
okay that's the whole page, slay π and for the cute sign-off: this came from Ericsson AB, it's wx 2.6 flavored, and it's the wxFontDialog(3) page. mwah, go build something cute πβ¨
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms