Class: Magick::RVG::Shape

Inherits:
Object
  • Object
show all
Includes:
Duplicatable, Stylable, Transformable
Defined in:
lib/rvg/embellishable.rb

Overview

Parent class of Circle, Ellipse, Text, etc.

Direct Known Subclasses

Circle, Ellipse, Line, Path, PolyShape, Rect

Instance Method Summary collapse

Methods included from Duplicatable

#deep_copy

Methods included from Transformable

#matrix, #rotate, #scale, #skewX, #skewY, #translate

Methods included from Stylable

#styles

Instance Method Details

#add_primitives(gc) ⇒ Object

Each shape can have its own set of transforms and styles.



14
15
16
17
18
19
20
# File 'lib/rvg/embellishable.rb', line 14

def add_primitives(gc)
  gc.push
  add_transform_primitives(gc)
  add_style_primitives(gc)
  gc.__send__(@primitive, *@args)
  gc.pop
end