Module: WxExtensions::AuiToolBar
- Defined in:
- lib/reactive-wx/wx_ext/aui_toolbar.rb
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
:nodoc:
3 4 5 6 |
# File 'lib/reactive-wx/wx_ext/aui_toolbar.rb', line 3 def self.included(base) #:nodoc: # base.send :alias_method_chain, :initialize, :extension base.send :alias_method_chain, :add_tool, :extension end |
Instance Method Details
#add_tool_with_extension(*args, &block) ⇒ Object
16 17 18 19 20 |
# File 'lib/reactive-wx/wx_ext/aui_toolbar.rb', line 16 def add_tool_with_extension(*args, &block) item = add_tool_without_extension(*args) evt_tool(item.get_id, &block) if block item end |
#initialize_with_extension(*args) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/reactive-wx/wx_ext/aui_toolbar.rb', line 8 def initialize_with_extension(*args) initialize_without_extension(*args) if block_given? yield self realize end end |