wxPreviewControlBar(3erl)
π wxPreviewControlBar (3erl) β Erlang Module Definition
okay bestie, so this is the Erlang module definition page for wxPreviewControlBar, straight out of the wx docs (the Erlang binding of wxWidgets 2.2.2.1, iykyk) π
β¨ NAME β¨
wxPreviewControlBar β literally just the Functions for the wxPreviewControlBar class. that's the whole vibe π¦
πΈ DESCRIPTION πΈ
This is the default implementation of the preview control bar, bestie β think a panel with buttons and a zoom control. that's it, that's the whole thing π
You can totally derive a new class from this and override some or all of its member functions to change the behaviour and appearance; or you can leave it exactly as it is, no cap. both are valid, main character choices π«Ά
See:wxPreviewFrame,wxPreviewCanvas,wxPrintPreviewβ
This class is derived (and can use functions) from: wxPanel wxWindow wxEvtHandler β it's giving nepo baby but in a cute inherited-way π
wxWidgets docs: wxPreviewControlBar π
π§ DATA TYPES π§
wxPreviewControlBar()=wx:wx_object()
π₯ EXPORTS π₯
π new(Preview, Buttons, Parent) -> wxPreviewControlBar()
Types:
Preview = wxPrintPreview:wxPrintPreview()
Buttons = integer()
Parent = wxWindow:wxWindow()
π new(Preview, Buttons, Parent, Options :: [Option]) -> wxPreviewControlBar()
Types:
Preview = wxPrintPreview:wxPrintPreview()
Buttons = integer()
Parent = wxWindow:wxWindow()
Option =
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()}
Constructor, bestie β¨
The Buttons parameter may be a combination of the following, using the bitwise 'or' operator β yes, the actual bitwise or, do not come for me π
π¦ destroy(This :: wxPreviewControlBar()) -> ok
Destructor. it destroys. that's the energy π
π¦ createButtons(This) -> ok
Types:
This = wxPreviewControlBar()
Creates buttons, according to value of the button style flags. slay, buttons created π
π¦ getPrintPreview(This) -> wxPrintPreview:wxPrintPreview()
Types:
This = wxPreviewControlBar()
Gets the print preview object associated with the control bar. it's giving "who's your preview bestie" π
π¦ getZoomControl(This) -> integer()
Types:
This = wxPreviewControlBar()
Gets the current zoom setting in percent. no, not a vibe zoom, a literal percentage π
π¦ setZoomControl(This, Percent) -> ok
Types:
This = wxPreviewControlBar()
Percent = integer()
Sets the zoom control. zoom zoom, periodt π
β¨ that's the whole page, bestie β every option, every type, every function, nothing skipped β¨
shoutout to the wxWidgets team for writing this, fromwx 2.2.2.1, on this verywxPreviewControlBar(3erl)page π«Άπ
π¦ 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