Class: RuGUI::FrameworkAdapters::GTK::BaseMainController

Inherits:
BaseController show all
Defined in:
lib/rugui/framework_adapters/GTK.rb

Instance Attribute Summary

Attributes inherited from BaseFrameworkAdapter::Base

#adapted_object

Instance Method Summary collapse

Methods inherited from BaseController

#queue

Methods inherited from BaseFrameworkAdapter::BaseController

#queue

Methods inherited from BaseFrameworkAdapter::Base

#initialize

Constructor Details

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

Instance Method Details

#quitObject



94
95
96
# File 'lib/rugui/framework_adapters/GTK.rb', line 94

def quit
  Gtk.main_quit
end

#refreshObject



90
91
92
# File 'lib/rugui/framework_adapters/GTK.rb', line 90

def refresh
  Gtk.main_iteration_do(false) while Gtk.events_pending?
end

#runObject



85
86
87
88
# File 'lib/rugui/framework_adapters/GTK.rb', line 85

def run
  Gtk.queue_timeout(RuGUI.configuration.queue_timeout)
  Gtk.main
end