Class: ShenmeGUI::Control::Textline
- Defined in:
- lib/shenmegui/controls.rb
Instance Attribute Summary
Attributes inherited from Base
#children, #events, #id, #parent, #properties
Instance Method Summary collapse
Methods inherited from Base
#add_hook, default, default_properties, #focus, #initialize, property, #render, shortcut, #sync, #sync_events, #update_properties, #validate
Constructor Details
This class inherits a constructor from ShenmeGUI::Control::Base
Instance Method Details
#text=(v) ⇒ Object
133 134 135 136 |
# File 'lib/shenmegui/controls.rb', line 133 def text=(v) update_properties({text: v, selection: [v.size]*2 }) sync end |