Class: Layout::PageInfo
Relationships | |
Inherits: | Object |
Overview
This is the interface to a Document
‘s paper space information. The paper size and margins, display resolution, and colors can all be accessed and set through this class.
Constant Summary
-
RESOLUTION_HIGH =
Constants
nil
-
RESOLUTION_LOW =
Stub value.
nil
-
RESOLUTION_MEDIUM =
Stub value.
nil
Instance Attribute Summary
-
#bottom_margin ⇒ Numeric
rw
The #bottom_margin method returns the paper’s bottom margin in document units.
-
#bottom_margin=(margin)
rw
The #bottom_margin= method sets the paper’s bottom margin in document units.
-
#color ⇒ Sketchup::Color
rw
The #color method returns the paper’s color.
-
#color=(new_color)
rw
The #color= method sets the paper’s color.
-
#display_resolution ⇒ Integer
rw
The #display_resolution method returns the on screen rendering resolution quality.
-
#display_resolution=(resolution)
rw
The #display_resolution= method sets the on screen rendering resolution quality.
-
#height ⇒ Numeric
rw
The #height method returns the paper height in document units.
-
#height=(height)
rw
The #height= method sets the paper height in document units.
-
#image_display_resolution ⇒ Integer
rw
The #image_display_resolution method returns the on screen image quality.
-
#image_display_resolution=(resolution)
rw
The #image_display_resolution= method sets the on screen image quality.
-
#image_output_resolution ⇒ Integer
rw
The #image_output_resolution method returns the output image quality.
-
#image_output_resolution=(resolution)
rw
The #image_output_resolution= method sets the output image quality.
-
#left_margin ⇒ Numeric
rw
The #left_margin method returns the paper’s left margin in document units.
-
#left_margin=(margin)
rw
The #left_margin= method sets the paper’s left margin in document units.
-
#margin_color ⇒ Sketchup::Color
rw
The #margin_color method returns the color of the paper’s margin.
-
#margin_color=(color)
rw
The #margin_color= sets the color of paper’s margin.
-
#output_resolution ⇒ Integer
rw
The #output_resolution method returns the output rendering resolution quality.
-
#output_resolution=(resolution)
rw
The #output_resolution= method sets the output rendering resolution quality.
-
#print_margins=(print)
rw
The #print_margins= method sets whether to print the paper’s margins.
-
#print_margins? ⇒ Boolean
rw
The #print_margins? method returns whether to print the paper’s margins.
-
#print_paper_color=(print_paper_color)
rw
The #print_paper_color= method sets whether or not the page color should be printed.
-
#print_paper_color? ⇒ Boolean
rw
The #print_paper_color? method returns whether or not the page color should be printed.
-
#right_margin ⇒ Numeric
rw
The #right_margin method returns the paper’s right margin in document units.
-
#right_margin=(margin)
rw
The #right_margin= sets the paper’s right margin in document units.
-
#show_margins=(margins_visible)
rw
The #show_margins= method sets whether the paper’s margins are visible.
-
#show_margins? ⇒ Boolean
rw
The #show_margins? method returns whether the paper’s margins are visible.
-
#top_margin ⇒ Numeric
rw
The #top_margin method returns the paper’s top margin in document units.
-
#top_margin=(margin)
rw
The #top_margin method sets the paper’s top margin in document units.
-
#width ⇒ Numeric
rw
The #width method returns the paper width in document units.
-
#width=(width)
rw
The #width= method sets the paper width in document units.
Instance Attribute Details
#bottom_margin ⇒ Numeric (rw)
The bottom_margin
method returns the paper’s bottom margin in document units.
#bottom_margin=(margin) (rw)
The #bottom_margin=
method sets the paper’s bottom margin in document units.
#color ⇒ Sketchup::Color (rw)
The #color
method returns the paper’s color.
#color=(new_color) (rw)
The #color=
method sets the paper’s color.
#display_resolution ⇒ Integer
(rw)
The #display_resolution
method returns the on screen rendering resolution quality.
The resolution can be one of the following values:
Layout::PageInfo::RESOLUTION_LOW
Layout::PageInfo::RESOLUTION_MEDIUM
Layout::PageInfo::RESOLUTION_HIGH
#display_resolution=(resolution) (rw)
The #display_resolution=
method sets the on screen rendering resolution quality.
The resolution can be one of the following values:
Layout::PageInfo::RESOLUTION_LOW
Layout::PageInfo::RESOLUTION_MEDIUM
Layout::PageInfo::RESOLUTION_HIGH
#height ⇒ Numeric (rw)
The #height
method returns the paper height in document units.
#height=(height) (rw)
The #height=
method sets the paper height in document units.
#image_display_resolution ⇒ Integer
(rw)
The #image_display_resolution
method returns the on screen image quality.
The resolution can be one of the following values:
Layout::PageInfo::RESOLUTION_LOW
Layout::PageInfo::RESOLUTION_MEDIUM
Layout::PageInfo::RESOLUTION_HIGH
#image_display_resolution=(resolution) (rw)
The #image_display_resolution=
method sets the on screen image quality.
The resolution can be one of the following values:
Layout::PageInfo::RESOLUTION_LOW
Layout::PageInfo::RESOLUTION_MEDIUM
Layout::PageInfo::RESOLUTION_HIGH
#image_output_resolution ⇒ Integer
(rw)
The #image_output_resolution
method returns the output image quality.
The resolution can be one of the following values:
Layout::PageInfo::RESOLUTION_LOW
Layout::PageInfo::RESOLUTION_MEDIUM
Layout::PageInfo::RESOLUTION_HIGH
#image_output_resolution=(resolution) (rw)
The #image_output_resolution=
method sets the output image quality.
The resolution can be one of the following values:
Layout::PageInfo::RESOLUTION_LOW
Layout::PageInfo::RESOLUTION_MEDIUM
Layout::PageInfo::RESOLUTION_HIGH
#left_margin ⇒ Numeric (rw)
The #left_margin
method returns the paper’s left margin in document units.
#left_margin=(margin) (rw)
The #left_margin=
method sets the paper’s left margin in document units.
#margin_color ⇒ Sketchup::Color (rw)
The #margin_color
method returns the color of the paper’s margin.
#margin_color=(color) (rw)
The #margin_color=
sets the color of paper’s margin.
#output_resolution ⇒ Integer
(rw)
The #output_resolution
method returns the output rendering resolution quality.
The resolution can be one of the following values:
Layout::PageInfo::RESOLUTION_LOW
Layout::PageInfo::RESOLUTION_MEDIUM
Layout::PageInfo::RESOLUTION_HIGH
#output_resolution=(resolution) (rw)
The #output_resolution=
method sets the output rendering resolution quality.
The resolution can be one of the following values:
Layout::PageInfo::RESOLUTION_LOW
Layout::PageInfo::RESOLUTION_MEDIUM
Layout::PageInfo::RESOLUTION_HIGH
#print_margins=(print) (rw)
The #print_margins=
method sets whether to print the paper’s margins.
#print_margins? ⇒ Boolean
(rw)
The #print_margins?
method returns whether to print the paper’s margins.
#print_paper_color=(print_paper_color) (rw)
The #print_paper_color=
method sets whether or not the page color should be printed.
#print_paper_color? ⇒ Boolean
(rw)
The #print_paper_color?
method returns whether or not the page color should be printed.
#right_margin ⇒ Numeric (rw)
The #right_margin
method returns the paper’s right margin in document units.
#right_margin=(margin) (rw)
The #right_margin=
sets the paper’s right margin in document units.
#show_margins=(margins_visible) (rw)
The #show_margins=
method sets whether the paper’s margins are visible.
#show_margins? ⇒ Boolean
(rw)
The #show_margins?
method returns whether the paper’s margins are visible.
#top_margin ⇒ Numeric (rw)
The #top_margin
method returns the paper’s top margin in document units.
#top_margin=(margin) (rw)
The #top_margin method sets the paper’s top margin in document units.
#width ⇒ Numeric (rw)
The #width
method returns the paper width in document units.
#width=(width) (rw)
The #width=
method sets the paper width in document units.