Class: XRC2Ruby::ObjectTypes::Gauge

Inherits:
Window show all
Defined in:
lib/wx_sugar/xrc/xrc2ruby_types/static.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

#valueObject

Returns the value of attribute value.



18
19
20
# File 'lib/wx_sugar/xrc/xrc2ruby_types/static.rb', line 18

def value
  @value
end

Instance Method Details

#setupObject



20
21
22
# File 'lib/wx_sugar/xrc/xrc2ruby_types/static.rb', line 20

def setup
  value ? "#{var_name}.value = #{value}\n" : ""
end