Class: XRC2Ruby::ObjectTypes::SpinButton

Inherits:
Window show all
Defined in:
lib/wx_sugar/xrc/xrc2ruby_types/buttons.rb

Constant Summary

Constants inherited from Window

Window::BASE_NAME

Instance Attribute Summary collapse

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

#args, #output

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

#maxObject

Returns the value of attribute max.



34
35
36
# File 'lib/wx_sugar/xrc/xrc2ruby_types/buttons.rb', line 34

def max
  @max
end

#minObject

Returns the value of attribute min.



34
35
36
# File 'lib/wx_sugar/xrc/xrc2ruby_types/buttons.rb', line 34

def min
  @min
end

#valueObject

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

#setupObject



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