wxPreviewControlBar(3)
π wxPreviewControlBar π
okay so bestie, this is the Erlang module definition for wxPreviewControlBar from the wx crew β it's a whole module, and we're gonna walk it together like it's a group project we both actually care about. π«Ά
β¨ NAME β¨
wxPreviewControlBar β this is the default implementation of the preview control bar, which is literally just a panel with buttons and a zoom control. that's the whole vibe. π
πΈ DESCRIPTION πΈ
So here's the tea: you can derive a new class from this and override some or all of the member functions if you wanna change how it behaves and how it looks. orβ¦ you can just leave it exactly as it is, because it already ate. your call, no pressure. π
See also, bestie:
wxPreviewFramewxPreviewCanvaswxPrintPreview
And just so you know your family tree: this class is derived from β and can use functions from β these icons:
wxPanelwxWindowwxEvtHandler
wxWidgets docs: wxPreviewControlBar
π¦ DATA TYPES π¦
wxPreviewControlBar() :: wx:wx_object().
okay it's just an wx_object(). simple. gorgeous. iconic. β¨
π FUNCTIONS π
createButtons(This) -> okwhenThis :: wxPreviewControlBar().
Creates buttons, according to the value of the button style flags. like, the flags said so, so the buttons happened. π
destroy(This :: wxPreviewControlBar()) -> ok.
Destroys the object. bye bestie π
getPrintPreview(This) -> wxPrintPreview:wxPrintPreview()whenThis :: wxPreviewControlBar().
Gets the print preview object associated with the control bar. the control bar's +1, basically. π«Ά
getZoomControl(This) -> integer()whenThis :: wxPreviewControlBar().
Gets the current zoom setting in percent. number go brrr. π₯
new(Preview, Buttons, Parent, [Option]) -> wxPreviewControlBar()when
Preview :: wxPrintPreview:wxPrintPreview(),
Buttons :: integer(),
Parent :: wxWindow:wxWindow(),
Option ::
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()}.
Constructor. new instance just dropped π
The Buttons parameter may be a combination of the following, using the bitwise 'or' operator β yes, bitwise 'or', don't come for me, that's just how it is:
wxPREVIEW_PRINT: Create a print button. π¨οΈwxPREVIEW_NEXT: Create a next page button.wxPREVIEW_PREVIOUS: Create a previous page button.wxPREVIEW_ZOOM: Create a zoom control. πwxPREVIEW_DEFAULT: Equivalent to a combination ofwxPREVIEW_PREVIOUS,wxPREVIEW_NEXTandwxPREVIEW_ZOOM. the bundle deal, the full set, the main character combo β¨
setZoomControl(This, Percent) -> okwhen
This :: wxPreviewControlBar(),
Percent :: integer().
Sets the zoom control. you're in charge of the zoom now, congratulations. π
ngl thewxPREVIEW_DEFAULTone is the move if you can't decide β it's literallywxPREVIEW_PREVIOUS+wxPREVIEW_NEXT+wxPREVIEW_ZOOMand it's giving "I didn't choose, I got the whole menu". no cap. π
and that's the page, bestie!! this lil beauty comes to you from Ericsson AB, sitting pretty at version wx 2.6, dated wxPreviewControlBar(3). go forth and preview responsibly π πβ¨
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms