wxPrintDialog(3erl)
π NAME π
wxPrintDialog β Functions for wxPrintDialog class
okay so this is the wxPrintDialog(3erl) page from the Erlang Module Definition manual, and itβs literally all about the wxPrintDialog class. bestie, weβre doing this. π
π DESCRIPTION π
This class represents the print and print setup common dialogs. You can get a wxPrinterDC device context from a print dialog that was successfully dismissed β and yes, the original says wxPrinterDC is (not implemented in wx), so keep that in mind. π¨οΈβ¨
π See:Overview printing,Overview cmndlg.
This class is derived (and can use functions) from: wxDialog, wxTopLevelWindow, wxWindow, wxEvtHandler. slay, inheritance chain.
The wxWidgets docs reference is: wxPrintDialog.
πΈ DATA TYPES πΈ
wxPrintDialog() = wx:wx_object()β thatβs the type, no cap.
β¨ EXPORTS β¨
π«Ά new/1
new(Parent) -> wxPrintDialog()
Types:
Parent = wxWindow:wxWindow()
π«Ά new/2 β the Options one
new(Parent, Options :: [Option]) -> wxPrintDialog()
This is the clause where Options is typed as [Option]. The original doesnβt list separate Types for this one, so Iβm not gonna invent them. π
π«Ά new/2 β the Data one
new(Parent, Data) -> wxPrintDialog()
Types:
Parent = wxWindow:wxWindow()Data = wxPrintData:wxPrintData()
π destroy/1
destroy(This :: wxPrintDialog()) -> ok
Destructor. The tea: if getPrintDC/1 has not been called, the device context obtained by the dialog (if any) will be deleted. So yeah, thatβs a whole thing. π«‘
π₯ getPrintDialogData/1
getPrintDialogData(This) -> wxPrintDialogData:wxPrintDialogData()
Types:
This = wxPrintDialog()
Returns the print dialog data associated with the print dialog. Itβs giving βhand me the data, bestie.β πβ¨
π getPrintDC/1
getPrintDC(This) -> wxDC:wxDC()
Types:
This = wxPrintDialog()
Returns the device context created by the print dialog, if any.
β οΈ important caveat: when this function has been called, the ownership of the device context is transferred to the application, so it must then be deleted explicitly. no take-backs, bestie. π
okay final sign-off: this was the wxPrintDialog(3erl) page, sourced from the wxWidgets team. at version wx 2.2.2.1. The original footer line doesnβt actually give a date, so Iβm not making one up β periodt. bye bestie π«Άππ
π¦ 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