module Metasm::Gui
Public Class Methods
idle_add(&b)
click to toggle source
register a proc to be run whenever the gui loop is idle if the proc returns nil/false, delete it
# File metasm/gui/gtk.rb, line 991 def self.idle_add(&b) Gtk.idle_add(&b) end
main()
click to toggle source
start the Gui
main loop
# File metasm/gui/gtk.rb, line 980 def self.main Gtk.main end
main_iter()
click to toggle source
run a single iteration of the main_loop e.g. call this from time to time when doing heavy computation, to keep the UI somewhat responsive
# File metasm/gui/gtk.rb, line 997 def self.main_iter Gtk.main_iteration_do(false) end
main_quit()
click to toggle source
ends the Gui
main loop
# File metasm/gui/gtk.rb, line 985 def self.main_quit Gtk.main_quit end