wxFontPickerCtrl(3erl)
π NAME π
okay bestie, this is the wxFontPickerCtrl page from the Erlang module definition β manual name wxFontPickerCtrl(3erl). Itβs literally wxFontPickerCtrl β Functions for wxFontPickerCtrl class. π
β¨
πΈ DESCRIPTION πΈ
This control is main character energy for font picking: it allows the user to select a font. The generic implementation is a button which brings up a wxFontDialog when clicked. Native implementation may differ but this is usually a (small) widget which give access to the font-chooser dialog. It is only available if wxUSE_FONTPICKERCTRL is set to 1 (the default). π¨
Styles: This class supports the following styles:
(no extra style items listed in the original, bestie β just that line, so weβre not inventing any π)
See: wxFontDialog, wxFontPickerEvent
This class is derived (and can use functions) from: wxPickerBase wxControl wxWindow wxEvtHandler
wxWidgets docs: wxFontPickerCtrl
π¦ EVENTS π¦
Event types emitted from this class: command_fontpicker_changed
π DATA TYPES π
wxFontPickerCtrl() = wx:wx_object()
π EXPORTS π
new() -> wxFontPickerCtrl()
new(Parent, Id) -> wxFontPickerCtrl()
Types:
Parent = wxWindow:wxWindow()
Id = integer()
This one has no extra description in the original, just the types. iykyk π«Ά
new(Parent, Id, Options :: [Option]) -> wxFontPickerCtrl()
Types:
Parent = wxWindow:wxWindow()
Id = integer()
Option =
{initial, wxFont:wxFont()} |
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()} |
{validator, wx:wx_object()}
Initializes the object and calls create/4 with all the parameters. π οΈ
create(This, Parent, Id) -> boolean()
Types:
This = wxFontPickerCtrl()
Parent = wxWindow:wxWindow()
Id = integer()
No extra description in the original here either β just the types, fr fr. π«Ά
create(This, Parent, Id, Options :: [Option]) -> boolean()
Types:
This = wxFontPickerCtrl()
Parent = wxWindow:wxWindow()
Id = integer()
Option =
{initial, wxFont:wxFont()} |
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()} |
{validator, wx:wx_object()}
Creates this widget with given parameters.
Return: true if the control was successfully created or false if creation failed. β
getSelectedFont(This) -> wxFont:wxFont()
Types:
This = wxFontPickerCtrl()
Returns the currently selected font.
Note that this function is completely different from wxWindow:getFont/1. π¨
setSelectedFont(This, Font) -> ok
Types:
This = wxFontPickerCtrl()
Font = wxFont:wxFont()
Sets the currently selected font.
Note that this function is completely different from wxWindow:setFont/2. π¨
getMaxPointSize(This) -> integer()
Types:
This = wxFontPickerCtrl()
Returns the maximum point size value allowed for the user-chosen font. π
setMaxPointSize(This, Max) -> ok
Types:
This = wxFontPickerCtrl()
Max = integer()
Sets the maximum point size value allowed for the user-chosen font.
The default value is 100. Also, big fonts can require a lot of memory and CPU time both for creation and for rendering; thus, specially because the user has the option to specify the fontsize through a text control (see wxFNTP_USE_TEXTCTRL), it's a good idea to put a limit to the maximum font size when huge fonts do not make much sense. π§
destroy(This :: wxFontPickerCtrl()) -> ok
Destroys the object. π₯
Cute little footer sign-off: source/version vibes are wxWidgets team. and wx 2.2.2.1, and the manual tag is wxFontPickerCtrl(3erl). The original footer doesnβt give a separate date string, so Iβm not inventing one β 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