Module: WxSugar
- Defined in:
- lib/wx_sugar/class_definitions.rb,
lib/wx_sugar/layout.rb,
lib/wx_sugar/version.rb,
lib/wx_sugar/itemdata.rb
Overview
The WxExtensions defines a number of contants which are groups of available WxRuby classes.
ALL_CLASSES : As it sounds
FRAME_CLASSES : All available WxWidgets that are standalone frames
DIALOG_CLASSES : All available dialog classes
MISC_WINDOW_CLASSES : Things that are displayed, but aren't 'controls'
CONTROL_CLASSES : Controls that accept user input
SIZER_CLASSES : Sizers
Defined Under Namespace
Modules: Arranger, EnumerableControl, HashLikeItemData, ItemData, ListLikeItemData
Constant Summary collapse
- VERSION =
'0.1.22'
- ALL_CLASSES =
helper function to check what widgets are available
Wx::constants.collect { | c | Wx::const_get(c) }.grep(Class)
Class Method Summary collapse
-
.define_class_group(const_name, *possibles) ⇒ Object
named constant groups.
Class Method Details
.define_class_group(const_name, *possibles) ⇒ Object
named constant groups
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/wx_sugar/class_definitions.rb', line 16 def self.define_class_group(const_name, *possibles) klasses = [] possibles.each do | poss | begin klasses << Wx.const_get(poss) rescue NameError next end end const_set(const_name, klasses) end |