class Languages::Epl2::Text
Attributes
font[RW]
position[RW]
text[RW]
Public Class Methods
new(opts = {})
click to toggle source
# File lib/languages/epl2/text.rb, line 6 def initialize(opts = {}) # FIXME @position = Languages::Epl2::Position[0,0] @font = opts[:font] || Epl2::Font.new @position = Languages::Epl2::Position.from_array(opts[:at]) if opts.has_key?(:at) @text = "" end
Public Instance Methods
render()
click to toggle source
# File lib/languages/epl2/text.rb, line 14 def render "A#{@position},#{@font.rotation},#{@font.name},#{@font.height},#{@font.width},N,\"#{@text}\"" end
x=(x)
click to toggle source
# File lib/languages/epl2/text.rb, line 18 def x=(x) @position.x = x end
y=(y)
click to toggle source
# File lib/languages/epl2/text.rb, line 22 def y=(y) @position.y = y end