Class: Wx::PRT::PrintDialog

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/doc/gen/prt/print_dialog.rb,
lib/wx/doc/prt/print_dialog.rb

Overview

This class represents the print and print setup common dialogs.

You may obtain a PrinterDC device context from a successfully dismissed print dialog.

Category: Printing Framework

See Also:

  • Framework Overview
  • Overview

Requires:

  • USE_PRINTING_ARCHITECTURE

Instance Method Summary collapse

Methods inherited from Object

#clone, #dup, #is_same_as, #un_share

Constructor Details

#initialize(parent, data = nil) ⇒ Wx::PRT::PrintDialog #initialize(parent, data) ⇒ Wx::PRT::PrintDialog

Returns a new instance of PrintDialog.

Overloads:



35
# File 'lib/wx/doc/gen/prt/print_dialog.rb', line 35

def initialize(*args) end

Instance Method Details

#get_print_dataWx::PRT::PrintData Also known as: print_data

Returns (a copy of) the print data of the dialog.

Returns:



16
# File 'lib/wx/doc/prt/print_dialog.rb', line 16

def get_print_data; end

#get_print_dcWx::DC Also known as: print_dc

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.

Returns:



41
# File 'lib/wx/doc/gen/prt/print_dialog.rb', line 41

def get_print_dc; end

#get_print_dialog_dataWx::PRT::PrintDialogData Also known as: print_dialog_data

Returns (a copy of) the print dialog data of the dialog.

Returns:



27
# File 'lib/wx/doc/prt/print_dialog.rb', line 27

def get_print_dialog_data; end

#set_print_data(prt_data) ⇒ void Also known as: print_data=

This method returns an undefined value.

Updates the print data for the dialog.

Parameters:



22
# File 'lib/wx/doc/prt/print_dialog.rb', line 22

def set_print_data(prt_data); end

#set_print_dialog_data(prt_data) ⇒ void Also known as: print_dialog_data=

This method returns an undefined value.

Updates the print dialog data for the dialog.

Parameters:



33
# File 'lib/wx/doc/prt/print_dialog.rb', line 33

def set_print_dialog_data(prt_data); end

#show_modalInteger

Shows the dialog, returning StandardID::ID_OK if the user pressed OK, and StandardID::ID_CANCEL otherwise.

After this function is called, a device context may be retrievable using #get_print_dc.

Returns:

  • (Integer)


48
# File 'lib/wx/doc/gen/prt/print_dialog.rb', line 48

def show_modal; end