class RILabel

Attributes

color[RW]
font[RW]
size[RW]
text[RW]
x[RW]
y[RW]

Public Class Methods

new(opts = {}) click to toggle source
# File lib/RIUI/RILabel.rb, line 3
def initialize(opts = {})
  @x = opts[:x] || 0
  @y = opts[:y] || 0
  @font = opts[:font] || ''
  @size = opts[:size] || 20
  @color = opts[:color] || 'black'
  @text = opts[:text] || 'RIUI Label'
  @label = Text.new(x: @x, y: @y, font: @font, size: @size, color: @color, text: @text)
end

Public Instance Methods

mouse_down_actions(x, y) click to toggle source
# File lib/RIUI/RILabel.rb, line 19
def mouse_down_actions(x, y); end
mouse_move_actions(x, y) click to toggle source
# File lib/RIUI/RILabel.rb, line 20
def mouse_move_actions(x, y); end
mouse_up_actions() click to toggle source
# File lib/RIUI/RILabel.rb, line 18
def mouse_up_actions; end
setText(opts = [:text]) click to toggle source
# File lib/RIUI/RILabel.rb, line 12
def setText(opts = [:text])
  @text = opts[:text]
  @label.remove
  @label = Text.new(x: @x, y: @y, font: @font, size: @size, color: @color, text: @text)
end
update_actions() click to toggle source
# File lib/RIUI/RILabel.rb, line 17
def update_actions; end