wxPreviewFrame(3erl)
π wxPreviewFrame (3erl): Erlang Module Definition π
okay so this is the wxPreviewFrame(3erl) manual page, aka the Erlang Module Definition, and we are gonna make it make sense π
πΈ NAME πΈ
wxPreviewFrame - Functions for wxPreviewFrame class. That's the whole name vibe π«Ά
β¨ DESCRIPTION β¨
okay so this class provides the default method of managing the print preview interface. Member functions may be overridden to replace functionality, or the class may be used without derivation β both routes are valid, bestie β¨
- See:
wxPreviewCanvas,wxPreviewControlBar,wxPrintPreview. - This class is derived (and can use functions) from:
wxFramewxTopLevelWindowwxWindowwxEvtHandler. - wxWidgets docs:
wxPreviewFrame.
π DATA TYPES π
wxPreviewFrame() = wx:wx_object()
that's the type, iconic π
π EXPORTS π
πΈ new(Preview, Parent) -> wxPreviewFrame() πΈ
Types:
Preview = wxPrintPreview:wxPrintPreview()Parent = wxWindow:wxWindow()
π new(Preview, Parent, Options :: [Option]) -> wxPreviewFrame() π
Types:
Preview = wxPrintPreview:wxPrintPreview()Parent = wxWindow:wxWindow()
Option =
{title, unicode:chardata()} |
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()}
Constructor. Pass a print preview object plus other normal frame arguments. The print preview object will be destroyed by the frame when it closes π«Ά
π¦ destroy(This :: wxPreviewFrame()) -> ok π¦
Destructor. That's it, that's the whole destructor vibe π
π createControlBar(This) -> ok π
Types:
This = wxPreviewFrame()
Creates a wxPreviewControlBar.
Override this function to allow a user-defined preview control bar object to be created β custom control bar era β¨
π createCanvas(This) -> ok π
Types:
This = wxPreviewFrame()
Creates a wxPreviewCanvas.
Override this function to allow a user-defined preview canvas object to be created β custom canvas moment, iykyk π¨
β initialize(This) -> ok β
Types:
This = wxPreviewFrame()
Initializes the frame elements and prepares for showing it.
Calling this method is equivalent to calling InitializeWithModality() (not implemented in wx) with wxPreviewFrame_AppModal argument, please see its documentation for more details.
β οΈ Please notice that this function is virtual mostly for backwards compatibility only, there is no real need to override it as it's never called by wxWidgets itself.
π onCloseWindow(This, Event) -> ok π
Types:
This = wxPreviewFrame()Event = wxCloseEvent:wxCloseEvent()
Enables any disabled frames in the application, and deletes the print preview object, implicitly deleting any printout objects associated with the print preview object.
Big cute sign-off: shoutout to the wxWidgets team β this page is source/version wx 2.2.2.1, for wxPreviewFrame(3erl). Bye bestie, go slay your print previews π
β¨
π¦ 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