Class: XRC2Ruby::ObjectTypes::ScrollBar

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

#pagesizeObject

Returns the value of attribute pagesize.



4
5
6
# File 'lib/wx_sugar/xrc/xrc2ruby_types/range.rb', line 4

def pagesize
  @pagesize
end

#rangeObject

Returns the value of attribute range.



4
5
6
# File 'lib/wx_sugar/xrc/xrc2ruby_types/range.rb', line 4

def range
  @range
end

#thumbsizeObject

Returns the value of attribute thumbsize.



4
5
6
# File 'lib/wx_sugar/xrc/xrc2ruby_types/range.rb', line 4

def thumbsize
  @thumbsize
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/wx_sugar/xrc/xrc2ruby_types/range.rb', line 4

def value
  @value
end

Instance Method Details

#setupObject



5
6
7
# File 'lib/wx_sugar/xrc/xrc2ruby_types/range.rb', line 5

def setup
  "#{var_name}.set_scrollbar(#{value}, #{thumbsize}, #{range}, #{pagesize})"
end