Class: RuGUI::FrameworkAdapters::BaseFrameworkAdapter::BaseView
- Defined in:
- lib/rugui/framework_adapters/base_framework_adapter.rb
Overview
Adapts the BaseView methods specific for the framework
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
-
.builder_file_extension ⇒ Object
Returns the builder file extension to be used for this view class.
Instance Method Summary collapse
-
#add_widget_to_container(widget, container_widget) ⇒ Object
Adds a widget to the given container widget.
-
#autoconnect_signals(view, other_target = nil) ⇒ Object
Autoconnects signals handlers for the view.
-
#build_widgets_from(filename) ⇒ Object
Builds widgets from the given filename, using the proper builder.
-
#connect_declared_signal(widget, signal, receiver, method) ⇒ Object
Connects the signal from the widget to the given receiver method.
-
#connect_declared_signal_block(widget, signal, receiver, block) ⇒ Object
Connects the signal from the widget to the given receiver block.
-
#queue(&block) ⇒ Object
Queues the block call, so that it is only gets executed in the main thread.
-
#register_widgets ⇒ Object
Registers widgets as attributes of the view class.
-
#remove_all_children(container_widget) ⇒ Object
Removes all children from the given container widget.
-
#remove_widget_from_container(widget, container_widget) ⇒ Object
Removes a widget from the given container widget.
-
#set_widget_name(widget, widget_name) ⇒ Object
Sets the widget name for the given widget if given.
Methods inherited from Base
Constructor Details
This class inherits a constructor from RuGUI::FrameworkAdapters::BaseFrameworkAdapter::Base
Class Method Details
.builder_file_extension ⇒ Object
Returns the builder file extension to be used for this view class.
80 81 |
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 80 def builder_file_extension end |
Instance Method Details
#add_widget_to_container(widget, container_widget) ⇒ Object
Adds a widget to the given container widget.
41 42 |
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 41 def (, ) end |
#autoconnect_signals(view, other_target = nil) ⇒ Object
Autoconnects signals handlers for the view. If other_target
is given it is used instead of the view itself.
58 59 |
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 58 def autoconnect_signals(view, other_target = nil) end |
#build_widgets_from(filename) ⇒ Object
Builds widgets from the given filename, using the proper builder.
71 72 |
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 71 def (filename) end |
#connect_declared_signal(widget, signal, receiver, method) ⇒ Object
Connects the signal from the widget to the given receiver method.
67 68 |
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 67 def connect_declared_signal(, signal, receiver, method) end |
#connect_declared_signal_block(widget, signal, receiver, block) ⇒ Object
Connects the signal from the widget to the given receiver block. The block is executed in the context of the receiver.
63 64 |
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 63 def connect_declared_signal_block(, signal, receiver, block) end |
#queue(&block) ⇒ Object
Queues the block call, so that it is only gets executed in the main thread.
37 38 |
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 37 def queue(&block) end |
#register_widgets ⇒ Object
Registers widgets as attributes of the view class.
75 76 |
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 75 def end |
#remove_all_children(container_widget) ⇒ Object
Removes all children from the given container widget.
49 50 |
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 49 def remove_all_children() end |
#remove_widget_from_container(widget, container_widget) ⇒ Object
Removes a widget from the given container widget.
45 46 |
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 45 def (, ) end |
#set_widget_name(widget, widget_name) ⇒ Object
Sets the widget name for the given widget if given.
53 54 |
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 53 def (, ) end |