Class: Wx::PRT::PrinterDC
- Defined in:
- lib/wx/doc/gen/prt/printer_dc.rb,
lib/wx/doc/prt/printer_dc.rb
Overview
This class is untracked and should not be derived from nor instances extended!
A printer device context is specific to MSW and Mac, and allows access to any printer with a Windows or Macintosh driver.
See DC for further information on device contexts, and DC#get_size for advice on achieving the correct scaling for the page.
Category: Printing Framework
Class Method Summary collapse
-
.draw_on(print_data) {|dc| ... } ⇒ ::Object
Executes the given block providing a temporary (printer) dc as it’s single argument.
Instance Method Summary collapse
-
#get_paper_rect ⇒ Wx::Rect
(also: #paper_rect)
Return the rectangle in device coordinates that corresponds to the full paper area, including the nonprinting regions of the paper.
Methods inherited from DC
#blit, #calc_bounding_box, #can_draw_bitmap, #can_get_text_extent, #can_use_transform_matrix, #clear, #copy_attributes, #cross_hair, #destroy_clipping_region, #device_to_logical, #device_to_logical_rel, #device_to_logical_x, #device_to_logical_x_rel, #device_to_logical_y, #device_to_logical_y_rel, #draw_arc, #draw_bitmap, #draw_check_mark, #draw_circle, #draw_ellipse, #draw_elliptic_arc, #draw_icon, #draw_label, #draw_line, #draw_lines, #draw_point, #draw_poly_polygon, #draw_polygon, #draw_rectangle, #draw_rotated_text, #draw_rounded_rectangle, #draw_spline, #draw_text, #end_doc, #end_page, #flood_fill, #from_dip, #get_as_bitmap, #get_background, #get_background_mode, #get_brush, #get_char_height, #get_char_width, #get_clipping_box, #get_content_scale_factor, #get_depth, #get_device_origin, #get_dimensions, #get_dimensions_mm, #get_font, #get_font_metrics, #get_graphics_context, #get_layout_direction, #get_logical_function, #get_logical_origin, #get_logical_scale, #get_map_mode, #get_multi_line_text_extent, #get_multi_line_text_size, #get_pen, #get_pixel, #get_ppi, #get_size, #get_size_mm, #get_text_background, #get_text_extent, #get_text_foreground, #get_text_size, #get_transform_matrix, #get_user_scale, #gradient_fill_concentric, #gradient_fill_linear, #is_ok, #logical_to_device, #logical_to_device_rel, #logical_to_device_x, #logical_to_device_x_rel, #logical_to_device_y, #logical_to_device_y_rel, #max_x, #max_y, #min_x, #min_y, #reset_bounding_box, #reset_transform_matrix, #set_axis_orientation, #set_background, #set_background_mode, #set_brush, #set_clipping_region, #set_device_clipping_region, #set_device_origin, #set_font, #set_graphics_context, #set_layout_direction, #set_logical_function, #set_logical_origin, #set_logical_scale, #set_map_mode, #set_palette, #set_pen, #set_text_background, #set_text_foreground, #set_transform_matrix, #set_user_scale, #start_doc, #start_page, #stretch_blit, #to_dip, #with_background_mode, #with_brush, #with_font, #with_pen, #with_text_background, #with_text_foreground
Methods inherited from Object
#clone, #dup, #initialize, #is_same_as, #un_share
Constructor Details
This class inherits a constructor from Wx::Object
Class Method Details
.draw_on(print_data) {|dc| ... } ⇒ ::Object
Executes the given block providing a temporary (printer) dc as it’s single argument.
17 |
# File 'lib/wx/doc/prt/printer_dc.rb', line 17 def self.draw_on(print_data) end |
Instance Method Details
#get_paper_rect ⇒ Wx::Rect Also known as: paper_rect
Return the rectangle in device coordinates that corresponds to the full paper area, including the nonprinting regions of the paper.
The point (0,0) in device coordinates is the top left corner of the page rectangle, which is the printable area on MSW and Mac. The coordinates of the top left corner of the paper rectangle will therefore have small negative values, while the bottom right coordinates will be somewhat larger than the values returned by DC#get_size.
29 |
# File 'lib/wx/doc/gen/prt/printer_dc.rb', line 29 def get_paper_rect; end |