wxFontData(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– 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
  • wxFont
  • wxFontDialog

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