wxPrintDialog (wx v2.5.4)

Copy Markdown View Source

This class represents the print and print setup common dialogs.

You may obtain a wxPrinterDC (not implemented in wx) device context from a successfully dismissed print dialog.

See:

This class is derived, and can use functions, from:

wxWidgets docs: wxPrintDialog

Summary

Functions

Destroys the object

Returns the device context created by the print dialog, if any.

Returns the print dialog data associated with the print dialog.

Types

wxPrintDialog()

-type wxPrintDialog() :: wx:wx_object().

Functions

destroy(This :: wxPrintDialog()) -> ok

Destroys the object

getPrintDC(This :: wxPrintDialog()) -> wxDC:wxDC()

Returns the device context created by the print dialog, if any.

When this function has been called, the ownership of the device context is transferred to the application, so it must then be deleted explicitly.

getPrintDialogData(This) -> Result

Returns the print dialog data associated with the print dialog.

new(Parent) ≡ new(Parent, [])

new/2

-spec new(Parent) -> wxPrintDialog() when Parent :: wxWindow:wxWindow().
-spec new(Parent, [Option]) -> wxPrintDialog()
             when Parent :: wxWindow:wxWindow(), Option :: {data, wxPrintDialogData:wxPrintDialogData()};
         (Parent, Data) -> wxPrintDialog()
             when Parent :: wxWindow:wxWindow(), Data :: wxPrintData:wxPrintData().