Class: RuGUI::FrameworkAdapters::BaseFrameworkAdapter::BaseView

Inherits:
Base
  • Object
show all
Defined in:
lib/rugui/framework_adapters/base_framework_adapter.rb

Overview

Adapts the BaseView methods specific for the framework

Direct Known Subclasses

GTK::BaseView, Qt4::BaseView, Rubygame::BaseView

Instance Attribute Summary

Attributes inherited from Base

#adapted_object

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from RuGUI::FrameworkAdapters::BaseFrameworkAdapter::Base

Class Method Details

.builder_file_extensionObject

Returns the builder file extension to be used for this view class.



87
88
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 87

def builder_file_extension
end

Instance Method Details

#add_widget_to_container(widget, container_widget) ⇒ Object

Adds a widget to the given container widget.



48
49
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 48

def add_widget_to_container(widget, container_widget)
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.



65
66
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 65

def autoconnect_signals(view, other_target = nil)
end

#build_widgets_from(filename) ⇒ Object

Builds widgets from the given filename, using the proper builder.



78
79
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 78

def build_widgets_from(filename)
end

#connect_declared_signal(widget, signal, receiver, method) ⇒ Object

Connects the signal from the widget to the given receiver method.



74
75
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 74

def connect_declared_signal(widget, 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.



70
71
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 70

def connect_declared_signal_block(widget, signal, receiver, block)
end

#queue(&block) ⇒ Object

Queues the block call, so that it is only gets executed in the main thread.



44
45
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 44

def queue(&block)
end

#register_widgetsObject

Registers widgets as attributes of the view class.



82
83
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 82

def register_widgets
end

#remove_all_children(container_widget) ⇒ Object

Removes all children from the given container widget.



56
57
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 56

def remove_all_children(container_widget)
end

#remove_widget_from_container(widget, container_widget) ⇒ Object

Removes a widget from the given container widget.



52
53
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 52

def remove_widget_from_container(widget, container_widget)
end

#set_widget_name(widget, widget_name) ⇒ Object

Sets the widget name for the given widget if given.



60
61
# File 'lib/rugui/framework_adapters/base_framework_adapter.rb', line 60

def set_widget_name(widget, widget_name)
end