Class: Gtk::RadioButton
- Inherits:
-
Object
- Object
- Gtk::RadioButton
- Defined in:
- lib/gir_ffi-gtk/gtk2/radio_button.rb
Overview
Overrides for GtkRadioButton
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(group) ⇒ RadioButton
constructor
A new instance of RadioButton.
- #initialize_from_widget(radio_group_member) ⇒ Object
- #old_initialize ⇒ Object
Constructor Details
#initialize(group) ⇒ RadioButton
Returns a new instance of RadioButton.
21 22 23 24 25 |
# File 'lib/gir_ffi-gtk/gtk2/radio_button.rb', line 21 def initialize(group) list = GLib::SList.from(Gtk::RadioButton, group) ptr = Gtk::Lib.(list) store_pointer(ptr) end |
Class Method Details
.new_from_widget(*args) ⇒ Object
13 14 15 16 17 |
# File 'lib/gir_ffi-gtk/gtk2/radio_button.rb', line 13 def self.(*args) obj = allocate obj.send :initialize_from_widget, *args obj end |
Instance Method Details
#initialize_from_widget(radio_group_member) ⇒ Object
29 30 31 32 33 |
# File 'lib/gir_ffi-gtk/gtk2/radio_button.rb', line 29 def (radio_group_member) = Gtk::RadioButton.from(radio_group_member) ptr = Gtk::Lib.() store_pointer(ptr) end |
#old_initialize ⇒ Object
19 |
# File 'lib/gir_ffi-gtk/gtk2/radio_button.rb', line 19 alias old_initialize initialize |