wxCheckBox(3erl)
π wxCheckBox β the Erlang module definition, bestie π
Okay so this is the wxCheckBox page from the Erlang module definitions (yes, that's the manual name, consider it folded in π
), and it's literally all about the checkbox class. Sit down, hydrate, let's go β¨
π DESCRIPTION π
A checkbox is a labelled box, and by default it's either on (the checkmark is visible) or off (no checkmark, nothing, void, empty π«₯). Optionally β and this only happens when the wxCHK_3STATE style flag is set β it can have a third state, called the mixed or undetermined state. Very "does not apply" of it, honestly. That's usually what people use it for: a big fat "Does Not Apply" π
πΈ Styles
This class supports the following styles:
(...and that's it. That's the whole list. The page literally lists nothing under here, so don't come for me, I'm just the messenger π)
See: wxRadioButton, wxCommandEvent
This class is derived (and can use functions) from: wxControl, wxWindow, wxEvtHandler β so it's giving main character energy with a whole ancestry behind it π
wxWidgets docs: wxCheckBox
β EVENTS β
Event types emitted from this class: command_checkbox_clicked
π¦ DATA TYPES π¦
wxCheckBox()=wx:wx_object()
π₯ EXPORTS π₯
π new() -> wxCheckBox()
Default constructor.
See: create/5, wxValidator (not implemented in wx)
π new(Parent, Id, Label) -> wxCheckBox()
Types:
Parent = wxWindow:wxWindow()
Id = integer()
Label = unicode:chardata()
π new(Parent, Id, Label, Options :: [Option]) -> wxCheckBox()
Types:
Parent = wxWindow:wxWindow()
Id = integer()
Label = unicode:chardata()
Option =
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()} |
{validator, wx:wx_object()}
Constructor, creating and showing a checkbox. Two-for-one, we love efficiency π«Ά
See: create/5, wxValidator (not implemented in wx)
π destroy(This :: wxCheckBox()) -> ok
Destructor, destroying the checkbox. Bye bestie ππ
π create(This, Parent, Id, Label) -> boolean()
Types:
This = wxCheckBox()
Parent = wxWindow:wxWindow()
Id = integer()
Label = unicode:chardata()
π create(This, Parent, Id, Label, Options :: [Option]) -> boolean()
Types:
This = wxCheckBox()
Parent = wxWindow:wxWindow()
Id = integer()
Label = unicode:chardata()
Option =
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()} |
{validator, wx:wx_object()}
Creates the checkbox for two-step construction. See new/4 for details β it's the same info, different entry point, iykyk β¨
π getValue(This) -> boolean()
Types:
This = wxCheckBox()
Gets the state of a 2-state checkbox.
Return: Returns true if it is checked, false otherwise.
π get3StateValue(This) -> wx:wx_enum()
Types:
This = wxCheckBox()
Gets the state of a 3-state checkbox.
β οΈ Asserts when the function is used with a 2-state checkbox. Like, it will straight up yell at you. Do not.
π is3rdStateAllowedForUser(This) -> boolean()
Types:
This = wxCheckBox()
Returns whether or not the user can set the checkbox to the third state.
Return: true if the user can set the third state of this checkbox, false if it can only be set programmatically or if it's a 2-state checkbox.
π is3State(This) -> boolean()
Types:
This = wxCheckBox()
Returns whether or not the checkbox is a 3-state checkbox.
Return: true if this checkbox is a 3-state checkbox, false if it's a 2-state checkbox.
π isChecked(This) -> boolean()
Types:
This = wxCheckBox()
This is just a maybe-more-readable synonym for getValue/1 β same energy, cuter name π
Just as the latter, it returns true if the checkbox is checked and false otherwise.
π setValue(This, State) -> ok
Types:
This = wxCheckBox()
State = boolean()
Sets the checkbox to the given state.
π¨ Heads up: this does not cause a wxEVT_CHECKBOX event to get emitted. No event, no drama, it just happens.
π set3StateValue(This, State) -> ok
Types:
This = wxCheckBox()
State = wx:wx_enum()
Sets the checkbox to the given state.
π¨ Again: this does not cause a wxEVT_CHECKBOX event to get emitted.
β οΈ Asserts when the checkbox is a 2-state checkbox and you're setting the state to wxCHK_UNDETERMINED. Like girl, it only has two states, read the room π
That's the whole page, no notes, ate and left no crumbs πβ¨ Big love and credit to the wxWidgets team π«Ά β this one comes from wx 2.2.2.1, mwah, bye! ππ
π¦ 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