class MyButton

Public Class Methods

new(label = nil) click to toggle source
Calls superclass method Gtk::Button.new
# File glib2/sample/type-register.rb, line 18
def initialize(label = nil)
  # XXX: 
  # When type_register() is used.
  # super is equivalent to GLib::Object#initialize.
  super("label" => label)
  @fuga = 0
end

Public Instance Methods

fuga() click to toggle source

implementation of the property “fuga”

# File glib2/sample/type-register.rb, line 58
def fuga
  puts "MyButton#fuga is called"
  @fuga
end
fuga=(arg) click to toggle source
# File glib2/sample/type-register.rb, line 62
def fuga=(arg)
  puts "MyButton#fuga= is called"
  @fuga = arg
  notify("fuga")
end
get_hoge(child) click to toggle source

implementation of the property “hoge”

# File gtk2/sample/misc/properties.rb, line 59
def get_hoge(child)
  puts "MyButton#get_hoge is called"
  @hoge
end
set_hoge(child, arg) click to toggle source
# File gtk2/sample/misc/properties.rb, line 63
def set_hoge(child, arg)
  puts "MyButton#set_hoge is called"
  @hoge = arg
end
signal_do_clicked(*args) click to toggle source

override existing default handler of “clicked” signal.

Calls superclass method
# File glib2/sample/type-register.rb, line 27
def signal_do_clicked(*args)
  puts "MyButton#signal_do_clicked enter"
  #p caller
  super
  puts "MyButton#signal_do_clicked leave"
end
signal_do_hoge(a, b) click to toggle source

define default handler of “hoge” signal

# File glib2/sample/type-register.rb, line 42
def signal_do_hoge(a, b)
  puts "MyButton#signal_do_hoge enter"
  #p caller
  puts "MyButton#signal_do_hoge leave"
end