wxFontData(3)
π wxFontData(3) β Erlang Module Definition π
okay bestie, welcome to the wxFontData page, she's a lil Erlang module and she's literally holding ALL the info about font dialogs πΈβ¨
π NAME π
wxFontData β the class that holds a whole variety of info related to font dialogs π
β¨ DESCRIPTION β¨
like, go look at these if you wanna know more:
- Overview
cmndlg wxFontwxFontDialog
also: wxWidgets docs: wxFontData
π DATA TYPES π
wxFontData() :: wx:wx_object().
π FUNCTIONS π
destroy(This :: wxFontData()) -> ok.
Destroys the object. bye babe π¦
enableEffects(This, Enable) -> ok when This :: wxFontData(), Enable :: boolean().
Turns the "effects" on or off β and heads up, this is Windows or generic only π
when we say "effects" we mean the controls that let you mess with colour, strikeout and underline properties.
default value is true.
getAllowSymbols(This) -> boolean() when This :: wxFontData().
Under Windows, hands you a flag that says whether symbol fonts can be selected π§
no effect on other platforms, she said what she said.
default value is true.
getChosenFont(This) -> wxFont:wxFont() when This :: wxFontData().
Gets the font the user chose, but ONLY if the user hit OK (wxFontDialog::ShowModal() (not implemented in wx) returned wxID_OK) π
getColour(This) -> wx:wx_colour4() when This :: wxFontData().
Gets the colour that's associated with the font dialog.
the default value is black. iconic. π€
getEnableEffects(This) -> boolean() when This :: wxFontData().
Checks whether "effects" are enabled under Windows.
this is about the controls for manipulating colour, strikeout and underline properties.
default value is true.
getInitialFont(This) -> wxFont:wxFont() when This :: wxFontData().
Gets the font that the font dialog is gonna start out with.
this one should have already been set by the application, so like, set it first bestie π
getShowHelp(This) -> boolean() when This :: wxFontData().
Returns true if the Help button is gonna be shown (Windows only).
default value is false.
new() -> wxFontData().
Constructor β¨
Initializes fontColour to black, showHelp to false, allowSymbols to true, enableEffects to true, minSize to 0 and maxSize to 0.
new(Data) -> wxFontData() when Data :: wxFontData().
Copy Constructor π«Ά
setAllowSymbols(This, AllowSymbols) -> ok when This :: wxFontData(), AllowSymbols :: boolean().
Under Windows, decides whether symbol fonts can be selected.
no effect on other platforms, periodt.
default value is true.
setChosenFont(This, Font) -> ok when This :: wxFontData(), Font :: wxFont:wxFont().
Sets the font that's going to be returned to the user β and this is for internal use only π
setColour(This, Colour) -> ok when This :: wxFontData(), Colour :: wx:wx_colour().
Sets the colour that'll be used for the font's foreground colour.
the default colour is black.
setInitialFont(This, Font) -> ok when This :: wxFontData(), Font :: wxFont:wxFont().
Sets the font that the font dialog is gonna start with.
setRange(This, Min, Max) -> ok when This :: wxFontData(), Min :: integer(), Max :: integer().
Sets the valid range for the font point size (Windows only).
the default is 0, 0, which means unrestricted range β do whatever you want, main character energy π₯
setShowHelp(This, ShowHelp) -> ok when This :: wxFontData(), ShowHelp :: boolean().
Decides whether the Help button is gonna show up in the font dialog (Windows only).
default value is false.
and that's the whole page bestie, no cap π this lil guy came to you from Ericsson AB, it's the wx 2.6 era, and she's living her life as wxFontData(3) πβ¨ slay, go set some fonts πΈπ¦
π¦ 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