Methods

Included Modules

Class/Module Index [+]

Quicksearch

Origami::Destination::RectangleFit

Class representing a Destination fitting the view on a rectangle in a Page.

Public Class Methods

new(pageref, left = 0, bottom = 0, right = 0, top = 0) click to toggle source

Creates a new rectangle fit Destination.

pageref

A Reference to a Page.

left, bottom, right, top

The rectangle to fit in.

# File lib/origami/destinations.rb, line 143
def initialize(pageref, left = 0, bottom = 0, right = 0, top = 0)
  
  @left, @bottom, @right, @top = left, bottom, right, top
  super([pageref, :FitR, left, bottom, right, top])
  
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.