module GtkApp
Constants
- Version
Public Class Methods
add_timeout(time_in_milliseconds, controller, callback)
click to toggle source
Establish a controller method to be invoked at regular intervals. @param [Fixnum] time_in_milliseconds Time between calls to the receiver method. @param [Object] controller The class in which the method exists. @param [String] callback Receiver method name.
# File lib/gtk_app.rb, line 38 def self.add_timeout(time_in_milliseconds, controller, callback) GLib::Timeout.add(time_in_milliseconds){ controller.method(:"#{callback}") } end
quit()
click to toggle source
Stop the main Gtk
loop.
# File lib/gtk_app.rb, line 24 def self.quit Gtk::main_quit end
refresh()
click to toggle source
Run a single iteration of the main loop while there are pending events without blocking.
# File lib/gtk_app.rb, line 30 def self.refresh Gtk::main_iteration_do(false) while Gtk::events_pending? end
run()
click to toggle source
Start the main Gtk
loop.
# File lib/gtk_app.rb, line 19 def self.run Gtk::main end