Class: Magick::RVG::Tref

Inherits:
TextBase show all
Includes:
TextLink
Defined in:
lib/rvg/text.rb

Overview

module TextLink

Instance Method Summary collapse

Methods included from TextLink

#add_primitives, #cx, #cx=, #cy, #cy=

Methods inherited from TextBase

#add_primitives, #d, #rotate, #tspan

Methods included from Duplicatable

#deep_copy

Methods included from Stylable

#styles

Constructor Details

#initialize(obj, x, y, parent) ⇒ Tref

Returns a new instance of Tref.



104
105
106
107
108
109
# File 'lib/rvg/text.rb', line 104

def initialize(obj, x, y, parent)
    @x, @y = Magick::RVG.convert_to_float(x, y, :allow_nil)
    super(nil)
    @tspans << obj
    @parent = parent
end