Class: RuGUI::FrameworkAdapters::Rubygame::BaseView

Inherits:
BaseFrameworkAdapter::BaseView show all
Defined in:
lib/rugui/framework_adapters/Rubygame.rb

Instance Attribute Summary

Attributes inherited from BaseFrameworkAdapter::Base

#adapted_object

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseFrameworkAdapter::BaseView

#add_widget_to_container, #autoconnect_signals, #remove_all_children, #remove_widget_from_container, #set_widget_name

Methods inherited from BaseFrameworkAdapter::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.



57
58
# File 'lib/rugui/framework_adapters/Rubygame.rb', line 57

def builder_file_extension
end

Instance Method Details

#build_widgets_from(filename) ⇒ Object

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



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

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.



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

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.



40
41
# File 'lib/rugui/framework_adapters/Rubygame.rb', line 40

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.



34
35
36
# File 'lib/rugui/framework_adapters/Rubygame.rb', line 34

def queue(&block)
  block.call
end

#register_widgetsObject

Registers widgets as attributes of the view class.



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

def register_widgets
end