Go to main content

man pages section 3: Extended Library Functions, Volume 1

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

wxPrintDialog (3erl)

Name

wxPrintDialog - Functions for wxPrintDialog class

Synopsis

Please see following description for synopsis

Description

wxPrintDialog(3)           Erlang Module Definition           wxPrintDialog(3)



NAME
       wxPrintDialog - Functions for wxPrintDialog class

DESCRIPTION
       This class represents the print and print setup common dialogs. You may
       obtain a wxPrinterDC (not implemented in wx) device context from a suc-
       cessfully dismissed print dialog.

       See: Overview printing, Overview cmndlg

       This  class  is  derived  (and  can use functions) from: wxDialog wxTo-
       pLevelWindow wxWindow wxEvtHandler

       wxWidgets docs: wxPrintDialog

DATA TYPES
       wxPrintDialog() = wx:wx_object()

EXPORTS
       new(Parent) -> wxPrintDialog()

              Types:

                 Parent = wxWindow:wxWindow()

       new(Parent, Options :: [Option]) -> wxPrintDialog()

       new(Parent, Data) -> wxPrintDialog()

              Types:

                 Parent = wxWindow:wxWindow()
                 Data = wxPrintData:wxPrintData()

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

              Destructor.

              If getPrintDC/1 has not been called, the device context obtained
              by the dialog (if any) will be deleted.

       getPrintDialogData(This) -> wxPrintDialogData:wxPrintDialogData()

              Types:

                 This = wxPrintDialog()

              Returns the print dialog data associated with the print dialog.

       getPrintDC(This) -> wxDC:wxDC()

              Types:

                 This = wxPrintDialog()

              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.



wxWidgets team.                    wx 2.1.1                   wxPrintDialog(3)