Class: Gtk::MessageDialog
- Defined in:
- lib/gtk/message_dialog.rb
Instance Attribute Summary
Attributes inherited from GObject
Instance Method Summary collapse
-
#initialize(options) ⇒ MessageDialog
constructor
A new instance of MessageDialog.
- #run ⇒ Object
Methods inherited from Widget
Methods inherited from GObject
#method_missing, #signal_connect, type_register, #unref
Constructor Details
#initialize(options) ⇒ MessageDialog
Returns a new instance of MessageDialog.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/gtk/message_dialog.rb', line 8 def initialize() @native = Lib.( [:parent], DialogFlags[[:flags]], MessageType[[:type]], ButtonsType[[:buttons_type]], "%s", :string, [:message] ) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Gtk::GObject
Instance Method Details
#run ⇒ Object
20 21 22 |
# File 'lib/gtk/message_dialog.rb', line 20 def run Lib.gtk_dialog_run(native) end |