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:



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

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

#cxObject



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

def cx()
    @parent.cx
end

#cx=(x) ⇒ Object



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

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

#cyObject



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

def cy()
    @parent.cy
end

#cy=(y) ⇒ Object



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

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