Class: Gtk::Dialog
- Inherits:
-
Object
- Object
- Gtk::Dialog
- Defined in:
- lib/gir_ffi-gtk/dialog.rb
Overview
Overrides for GtkDialog
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new_with_buttons(*args) ⇒ Object
16 17 18 19 20 |
# File 'lib/gir_ffi-gtk/dialog.rb', line 16 def self.(*args) obj = allocate obj.send :initialize_with_buttons, *args obj end |
Instance Method Details
#initialize_with_buttons(title, parent, flags, buttons) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/gir_ffi-gtk/dialog.rb', line 22 def (title, parent, flags, ) = .flat_map do |, | [:string, , :int, Gtk::ResponseType.to_int()] end ptr = Gtk::Lib.(title, parent, flags, *, :string, nil) store_pointer(ptr) end |