In Files

Parent

Methods

Included Modules

Class Index [+]

Quicksearch

Magick::RVG::TextBase

Base class for Tspan, Tref and Text.

Public Instance Methods

d(x, y=0) click to toggle source

Add x and y to the current text position.

    # File lib/rvg/text.rb, line 39
39:             def d(x, y=0)
40:                 @dx, @dy = Magick::RVG.convert_to_float(x, y)
41:                 yield(self) if block_given?
42:                 self
43:             end
rotate(degrees) click to toggle source

Rotate the text about the current text position.

    # File lib/rvg/text.rb, line 46
46:             def rotate(degrees)
47:                 @rotation = Magick::RVG.convert_to_float(degrees)[0]
48:                 yield(self) if block_given?
49:                 self
50:             end
tspan(text, x=nil, y=nil) click to toggle source

Create a new text chunk. Each chunk can have its own initial position and styles. If x and y are omitted the text starts at the current text position.

    # File lib/rvg/text.rb, line 31
31:             def tspan(text, x=nil, y=nil)
32:                 tspan = Tspan.new(text, x, y)
33:                 tspan.parent = self
34:                 @tspans << tspan
35:                 return tspan
36:             end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.