Class: Gtk::RadioButton

Inherits:
Object
  • Object
show all
Defined in:
lib/gir_ffi-gtk/gtk2/radio_button.rb

Overview

Overrides for GtkRadioButton

Class Method Summary collapse

Instance Method Summary collapse

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.gtk_radio_button_new(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.new_from_widget(*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 initialize_from_widget(radio_group_member)
  widget = Gtk::RadioButton.from(radio_group_member)
  ptr = Gtk::Lib.gtk_radio_button_new_from_widget(widget)
  store_pointer(ptr)
end

#old_initializeObject



19
# File 'lib/gir_ffi-gtk/gtk2/radio_button.rb', line 19

alias old_initialize initialize