Module: Magick::RVG::TextLink

Included in:
Tref, Tspan
Defined in:
lib/rvg/text.rb

Overview

Tspan and Tref shared methods - read/update @cx, @cy in parent Text object.

Instance Method Summary collapse

Instance Method Details

#add_primitives(gc) ⇒ Object

:nodoc:



81
82
83
84
85
# File 'lib/rvg/text.rb', line 81

def add_primitives(gc)
    @parent.cx = @x if @x
    @parent.cy = @y if @y
    super
end

#cxObject



87
88
89
# File 'lib/rvg/text.rb', line 87

def cx()
    @parent.cx
end

#cx=(x) ⇒ Object



95
96
97
# File 'lib/rvg/text.rb', line 95

def cx=(x)
    @parent.cx = x
end

#cyObject



91
92
93
# File 'lib/rvg/text.rb', line 91

def cy()
    @parent.cy
end

#cy=(y) ⇒ Object



99
100
101
# File 'lib/rvg/text.rb', line 99

def cy=(y)
    @parent.cy = y
end