Class: XRC2Ruby::ObjectTypes::SpinButton
- Defined in:
- lib/wx_sugar/xrc/xrc2ruby_types/buttons.rb
Constant Summary
Constants inherited from Window
Instance Attribute Summary collapse
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Window
#bg, #enabled, #exstyle, #fg, #help, #hidden, #tooltip
Attributes inherited from Object
#centered, #name, #parent, #sub_class, #win_class
Instance Method Summary collapse
Methods inherited from Window
Methods included from InitArgs
#inherited, #init_arg, #init_args, #translatable_string_init_arg
Methods inherited from Object
#initialize, #inspect, next_id, #output, #var_name
Constructor Details
This class inherits a constructor from XRC2Ruby::ObjectTypes::Object
Instance Attribute Details
#max ⇒ Object
Returns the value of attribute max.
34 35 36 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/buttons.rb', line 34 def max @max end |
#min ⇒ Object
Returns the value of attribute min.
34 35 36 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/buttons.rb', line 34 def min @min end |
#value ⇒ Object
Returns the value of attribute value.
34 35 36 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/buttons.rb', line 34 def value @value end |
Instance Method Details
#setup ⇒ Object
35 36 37 38 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/buttons.rb', line 35 def setup "#{var_name}.set_range(#{min}, #{max})\n" + "#{var_name}.value = #{value}\n" end |