Class: Gtk::RadioButton

Inherits:
Object
  • Object
show all
Extended by:
GLib::Deprecatable
Defined in:
lib/gtk3/deprecated.rb,
lib/gtk3/radio-button.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ RadioButton

Returns a new instance of RadioButton.



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/gtk3/radio-button.rb', line 20

def initialize(options={})
  group         = options[:group]
  label         = options[:label]
  member        = options[:member]
  use_underline = options[:use_underline]

  if label
    if member
      if use_underline
        initialize_new_with_mnemonic_from_widget(member, label)
      else
        initialize_new_with_label_from_widget(member, label)
      end
    else
      if use_underline
        initialize_new_with_mnemonic(group, label)
      else
        initialize_new_with_label(group, label)
      end
    end
  else
    if member
      initialize_new_from_widget(member)
    else
      initialize_raw
    end
  end
end

Instance Method Details

#initialize_rawObject



19
# File 'lib/gtk3/radio-button.rb', line 19

alias_method :initialize_raw, :initialize