Class: Wx::SF::ShapeCanvas::PRINTMODE

Inherits:
Enum
  • Object
show all
Defined in:
lib/wx/shapes/shape_canvas.rb

Overview

Printing modes used by SetPrintMode() function.

Constant Summary collapse

FIT_TO_PAPER =

This sets the user scale and origin of the DC so that the image fits within the paper rectangle (but the edges could be cut off by printers that can’t print to the edges of the paper – which is most of them. Use this if your image already has its own margins.

self.new(0)
FIT_TO_PAGE =

This sets the user scale and origin of the DC so that the image fits within the page rectangle, which is the printable area on Mac and MSW and is the entire page on other platforms.

self.new(1)
FIT_TO_MARGINS =

This sets the user scale and origin of the DC so that the image fits within the page margins as specified by g_PageSetupData, which you can change (on some platforms, at least) in the Page Setup dialog. Note that on Mac, the native Page Setup dialog doesn’t let you change the margins of a Wx::PageSetupDialogData object, so you’ll have to write your own dialog or use the Mac-only Wx::MacPageMarginsDialog, as we do in this program.

self.new(2)
MAP_TO_PAPER =

This sets the user scale and origin of the DC so that you could map the screen image to the entire paper at the same size as it appears on screen.

self.new(3)
MAP_TO_PAGE =

This sets the user scale and origin of the DC so that the image appears on the paper at the same size that it appears on screen (i.e., 10-point type on screen is 10-point on the printed page).

self.new(4)
MAP_TO_MARGINS =

This sets the user scale and origin of the DC so that you could map the screen image to the page margins specified by the native Page Setup dialog at the same size as it appears on screen.

self.new(5)
MAP_TO_DEVICE =

This sets the user scale and origin of the DC so that you can to do you own scaling in order to draw objects at full native device resolution.

self.new(6)

Method Summary

Methods inherited from Enum

#init_from_serialized