Class RGhost::Frame
In: frame.rb
Parent: RGhost::PsObject

Creates one rectangle or one shape with rounded corners.

Options

  • :x and :y - Coordinates to position.
  • :corners - Value for rounded corners. Use 0 to straight angle.
  • :width and :height - Size of frame
  • :content - facade to ShapeContent with same parameters.
  • :border - facade to Border with same parameters.

Examples using facade frame method inside of Document

  d=Document.new
  d.frame :x => 3, :width => 7, :height => 5, :content => {:fill => false}

  d=Document.new
  d.frame :x => 3, :width => 7, :height => 5, :content => {:color => '#35F6A3' }

  d=Document.new
  d.frame :x => 3, :width => 7, :height => 5, :content => {:color => '#35F6A3' }, :border =>{:width => 5, :dash => [1,3,10]}

  d=Document.new
  d.frame :x => 3, :width => 7, :height => 5, :content => {:color => '#35F6A3' }, :corners => 20

  d=Document.new
  d.frame :x => 3, :width => 7, :height => 5, :content => {:color => :yellow }, :border => {:color => :red, :width => 4}, :corners => 20

Methods

background_row   new   ps  

Constants

DEFAULT_OPTIONS = { :x => :limit_left, :y => :current_row, :width => 5, :height => 3.5, :corners => 1, :content => RGhost::ShapeContent::DEFAULT_OPTIONS, :border => RGhost::Border::DEFAULT_OPTIONS
BACKGROUND_ROW_DEFAULT_OPTIONS = {:start_in => :limit_left, :size => :area_x, :color => RGhost::ShapeContent::DEFAULT_OPTIONS[:color]}

Public Class methods

Creates background of the row for current row. Example Here‘s fill the current row using width :area_x, height :row_height, and starting in :limit_left.

 doc.background_row :color => '#35F6A3'

Specifies size and where will start of background

 doc.background_row :start_in => 2, :size => 5.5, :color => 0.8

Public Instance methods

[Validate]