wxBitmapButton(3erl)
π wxBitmapButton π
okay so bestie, welcome to wxBitmapButton(3erl) β the Erlang module definition page for the wxBitmapButton class. It's giving bitmap-button realness, and we're gonna go through every single detail, no skipping, no cap. β¨
πΈ NAME πΈ
wxBitmapButton β Functions for wxBitmapButton class
π¦ DESCRIPTION π¦
A bitmap button is a control that contains a bitmap. That's the whole plot. π
okay so real talk: since wxWidgets 2.9.1, bitmap display is already supported by the base wxButton class itself, and the only tiny advantage of using this class is that it lets you specify the bitmap in its constructor, unlike wxButton. Please see the base class documentation for more information about images support in wxButton. π«Ά
π Styles π
This class supports the following styles: (none are listed on this page)
See: wxButton
This class is derived (and can use functions) from: wxButton wxControl wxWindow wxEvtHandler
- wxWidgets docs:
wxBitmapButton
π₯ EVENTS π₯
Event types emitted from this class: command_button_clicked π
π DATA TYPES π
wxBitmapButton() = wx:wx_object()
π EXPORTS π
π« new() π«
new() -> wxBitmapButton()
Default ctor. π
πΈ new(Parent, Id, Bitmap) πΈ
new(Parent, Id, Bitmap) -> wxBitmapButton()
Types:
Parent = wxWindow:wxWindow()
Id = integer()
Bitmap = wxBitmap:wxBitmap()
π¦ new(Parent, Id, Bitmap, Options :: [Option]) π¦
new(Parent, Id, Bitmap, Options :: [Option]) -> wxBitmapButton()
Types:
Parent = wxWindow:wxWindow()
Id = integer()
Bitmap = wxBitmap:wxBitmap()
Option =
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()} |
{validator, wx:wx_object()}
Constructor, creating and showing a button. β¨
Remark: Thebitmapparameter is normally the only bitmap you need to provide, and wxWidgets will draw the button correctly in its different states. If you want more control, call any of the functionsSetBitmapPressed()(not implemented in wx),wxButton:setBitmapFocus/2,wxButton:setBitmapDisabled/2.
See: create/5, wxValidator (not implemented in wx)
π create(This, Parent, Id, Bitmap) π
create(This, Parent, Id, Bitmap) -> boolean()
Types:
This = wxBitmapButton()
Parent = wxWindow:wxWindow()
Id = integer()
Bitmap = wxBitmap:wxBitmap()
π₯ create(This, Parent, Id, Bitmap, Options :: [Option]) π₯
create(This, Parent, Id, Bitmap, Options :: [Option]) -> boolean()
Types:
This = wxBitmapButton()
Parent = wxWindow:wxWindow()
Id = integer()
Bitmap = wxBitmap:wxBitmap()
Option =
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()} |
{validator, wx:wx_object()}
Button creation function for two-step creation.
For more details, see new/4.
π newCloseButton(Parent, Winid) π
newCloseButton(Parent, Winid) -> wxBitmapButton()
Types:
Parent = wxWindow:wxWindow()
Winid = integer()
Helper function creating a standard-looking "Close" button.
To get the best results, platform-specific code may need to be used to create a small, title bar-like "Close" button. This function is provided to avoid the need to test for the current platform and creates the button with as native look as possible.
Return: The new button.
Since: 2.9.5
π destroy(This :: wxBitmapButton()) π
destroy(This :: wxBitmapButton()) -> ok
Destroys the object.
okay that's the whole page, bestie! signed with π by the wxWidgets team., from wx 2.2.2.1, and filed under wxBitmapButton(3erl) β¨π
π¦ 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