wxFontData(3erl)
π NAME π
Okay so this is the manual page for wxFontData, manual-page name wxFontData, straight outta the Erlang Module Definition zone β and it is literally all about functions for the wxFontData class. Bestie, weβre learning the font-dialog data object and itβs giving main character energy. π
β¨
β¨ DESCRIPTION β¨
This class holds a variety of information related to font dialogs. So wxFontData is the cute little info-holder for font-dialog stuff β a whole variety of information related to font dialogs lives here, no cap. π«Ά
See: Overview cmndlg, wxFont, wxFontDialog β go peek, iykyk. π
wxWidgets docs: wxFontData
π¦ DATA TYPES π¦
One data type, periodt:
wxFontData() = wx:wx_object()
π EXPORTS π
Every single export is here, bestie β no skips, no crumbs. πΈ
π new() -> wxFontData() π
Constructor. Itβs giving βmake a fresh one,β and we love that for us. π
Initializes fontColour to black, showHelp to false, allowSymbols to true, enableEffects to true, minSize to 0 and maxSize to 0.
π new(Data) -> wxFontData() π
Types:
Data = wxFontData()
Copy Constructor. Literally copy-constructor energy β it copies the data, periodt. π«Ά
π enableEffects(This, Enable) -> ok π
Types:
This = wxFontData()
Enable = boolean()
Enables or disables "effects" under Windows or generic only. β¨
This refers to the controls for manipulating colour, strikeout and underline properties.
The default value is true.
π getAllowSymbols(This) -> boolean() π
Types:
This = wxFontData()
Under Windows, returns a flag determining whether symbol fonts can be selected. π₯
Has no effect on other platforms.
The default value is true.
π getColour(This) -> wx:wx_colour4() π
Types:
This = wxFontData()
Gets the colour associated with the font dialog. π
The default value is black.
π getChosenFont(This) -> wxFont:wxFont() π
Types:
This = wxFontData()
Gets the font chosen by the user if the user pressed OK β specifically when wxFontDialog::ShowModal() (not implemented in wx) returned wxID_OK. Slay. π
π getEnableEffects(This) -> boolean() π
Types:
This = wxFontData()
Determines whether "effects" are enabled under Windows. π¦
This refers to the controls for manipulating colour, strikeout and underline properties.
The default value is true.
π getInitialFont(This) -> wxFont:wxFont() π
Types:
This = wxFontData()
Gets the font that will be initially used by the font dialog. β¨
This should have previously been set by the application.
π getShowHelp(This) -> boolean() π
Types:
This = wxFontData()
Returns true if the Help button will be shown (Windows only). π
The default value is false.
π setAllowSymbols(This, AllowSymbols) -> ok π
Types:
This = wxFontData()
AllowSymbols = boolean()
Under Windows, determines whether symbol fonts can be selected. π
Has no effect on other platforms.
The default value is true.
π setChosenFont(This, Font) -> ok π
Types:
This = wxFontData()
Font = wxFont:wxFont()
Sets the font that will be returned to the user (for internal use only). π
π setColour(This, Colour) -> ok π
Types:
This = wxFontData()
Colour = wx:wx_colour()
Sets the colour that will be used for the font foreground colour. π¨
The default colour is black.
π setInitialFont(This, Font) -> ok π
Types:
This = wxFontData()
Font = wxFont:wxFont()
Sets the font that will be initially used by the font dialog. πΈ
π setRange(This, Min, Max) -> ok π
Types:
This = wxFontData()
Min = Max = integer()
Sets the valid range for the font point size (Windows only). π’
The default is 0, 0 (unrestricted range).
π setShowHelp(This, ShowHelp) -> ok π
Types:
This = wxFontData()
ShowHelp = boolean()
Determines whether the Help button will be displayed in the font dialog (Windows only). π
The default value is false.
π destroy(This :: wxFontData()) -> ok π
Destroys the object. Bye bestie, iconic exit. πβ¨
Cute sign-off: source/version is the wxWidgets team with wx 2.2.2.1, and the page is wxFontData(3erl) β the date isnβt printed in this footer, so no fake date, periodt. π«Άππ
π¦ 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