wxPrintData(3erl)
wxPrintData π
okay bestie, welcome to the wxPrintData(3erl) page from the Erlang Module Definition manual. This is the whole class-notes situation for wxPrintData, and we're keeping every tiny detail, no cap. β¨
π NAME π
wxPrintData - Functions for wxPrintData class
πΈ DESCRIPTION πΈ
This class holds a whole variety of information related to printers and printer device contexts. It's used to create a wxPrinterDC (not implemented in wx) and a wxPostScriptDC. It's also used as a data member of wxPrintDialogData and wxPageSetupDialogData, as part of the mechanism for transferring data between the print dialogs and the application.
See these icons:
Overview printingwxPrintDialogwxPageSetupDialogwxPrintDialogDatawxPageSetupDialogDataOverview cmndlgwxPrinterDC(not implemented in wx)wxPostScriptDC
wxWidgets docs: wxPrintData
π¦ DATA TYPES π¦
wxPrintData() = wx:wx_object()
β¨ EXPORTS β¨
new() -> wxPrintData()
Default constructor.
new(Data) -> wxPrintData()
Types:
Data = wxPrintData()
Copy constructor.
destroy(This :: wxPrintData()) -> ok
Types:
This = wxPrintData()
Destructor.
getCollate(This) -> boolean()
Types:
This = wxPrintData()
Returns true if collation is on.
getBin(This) -> wx:wx_enum()
Types:
This = wxPrintData()
Returns the current bin (papersource).
By default, the system is left to select the bin (wxPRINTBIN_DEFAULT is returned).
See setBin/2 for the full list of bin values.
getColour(This) -> boolean()
Types:
This = wxPrintData()
Returns true if colour printing is on.
getDuplex(This) -> wx:wx_enum()
Types:
This = wxPrintData()
Returns the duplex mode.
One of wxDUPLEX_SIMPLEX, wxDUPLEX_HORIZONTAL, wxDUPLEX_VERTICAL.
getNoCopies(This) -> integer()
Types:
This = wxPrintData()
Returns the number of copies requested by the user.
getOrientation(This) -> wx:wx_enum()
Types:
This = wxPrintData()
Gets the orientation.
This can be wxLANDSCAPE or wxPORTRAIT.
getPaperId(This) -> wx:wx_enum()
Types:
This = wxPrintData()
Returns the paper size id.
See: setPaperId/2
getPrinterName(This) -> unicode:charlist()
Types:
This = wxPrintData()
Returns the printer name.
If the printer name is the empty string, it indicates that the default printer should be used.
getQuality(This) -> integer()
Types:
This = wxPrintData()
Returns the current print quality.
This can be a positive integer, denoting the number of dots per inch, or one of the following identifiers: (and the page just says that and then gives no list here β that's literally the source, no cap π).
On input you should pass one of these identifiers, but on return you may get back a positive integer indicating the current resolution setting.
isOk(This) -> boolean()
Types:
This = wxPrintData()
Returns true if the print data is valid for using in print dialogs.
This can return false on Windows if the current printer is not set, for example. On all other platforms, it returns true.
Heads up: that Windows false case is literally in the source, bestie β don't sleep on it.
setBin(This, Flag) -> ok
Types:
This = wxPrintData()Flag = wx:wx_enum()
Sets the current bin.
setCollate(This, Flag) -> ok
Types:
This = wxPrintData()Flag = boolean()
Sets collation to on or off.
setColour(This, Flag) -> ok
Types:
This = wxPrintData()Flag = boolean()
Sets colour printing on or off.
setDuplex(This, Mode) -> ok
Types:
This = wxPrintData()Mode = wx:wx_enum()
The original description says "Returns the duplex mode." β yes, on a setter, bestie; I'm just preserving it π .
One of wxDUPLEX_SIMPLEX, wxDUPLEX_HORIZONTAL, wxDUPLEX_VERTICAL.
setNoCopies(This, N) -> ok
Types:
This = wxPrintData()N = integer()
Sets the default number of copies to be printed out.
setOrientation(This, Orientation) -> ok
Types:
This = wxPrintData()Orientation = wx:wx_enum()
Sets the orientation.
This can be wxLANDSCAPE or wxPORTRAIT.
setPaperId(This, PaperId) -> ok
Types:
This = wxPrintData()PaperId = wx:wx_enum()
Sets the paper id.
This indicates the type of paper to be used. For a mapping between paper id, paper size and string name, see wxPrintPaperDatabase in "paper.h" (not yet documented).
See: SetPaperSize() (not implemented in wx)
setPrinterName(This, PrinterName) -> ok
Types:
This = wxPrintData()PrinterName = unicode:chardata()
Sets the printer name.
This can be the empty string to indicate that the default printer should be used.
setQuality(This, Quality) -> ok
Types:
This = wxPrintData()Quality = integer()
Sets the desired print quality.
This can be a positive integer, denoting the number of dots per inch, or one of the following identifiers: (again, the page says this and the list is a no-show, bestie π).
On input you should pass one of these identifiers, but on return you may get back a positive integer indicating the current resolution setting.
Signed off by the wxWidgets team β version wx 2.2.2.1 β on the wxPrintData(3erl) page. Footer check: source and version are present, the date slot is a no-show, and we still ate πβ¨
π¦ 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