Method: MiniGL::Component#initialize
- Defined in:
- lib/minigl/forms.rb
#initialize(x, y, font, text, text_color, disabled_text_color) ⇒ Component
:nodoc:
60 61 62 63 64 65 66 67 68 |
# File 'lib/minigl/forms.rb', line 60 def initialize(x, y, font, text, text_color, disabled_text_color) # :nodoc: @x = x @y = y @font = font @text = text @text_color = text_color @disabled_text_color = disabled_text_color @enabled = @visible = true end |