Class: Tgui::ChildWindow::SignalClosing

Inherits:
Signal show all
Defined in:
lib/white_gold/dsl/child_window.rb

Instance Attribute Summary

Attributes inherited from ExternObject

#pointer

Instance Method Summary collapse

Methods inherited from Signal

#_abi_connect, #_abi_disconnect, #_abi_is_enabled, #_abi_set_enabled, #connect, #disconnect, #initialize, #suppress

Methods inherited from ExternObject

abi_attr, abi_bit_enum, abi_def, abi_enum, #abi_pack, abi_signal, abi_static, #abi_unpack, callback_storage, callback_storage=, data_storage=, finalizer, global_callback_storage, global_callback_storage=, #initialize, #initialized, self_abi_def, self_abi_def_setter

Methods included from Packer

#abi_pack, #abi_packer, #abi_packer_method_name

Methods included from Unpacker

#abi_unpack, #abi_unpacker, #abi_unpacker_method_name

Methods included from BangDef

#def!

Constructor Details

This class inherits a constructor from Tgui::Signal

Instance Method Details

#block_caller(&b) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/white_gold/dsl/child_window.rb', line 8

def block_caller &b
  Fiddle::Closure::BlockCaller.new(0, [Fiddle::TYPE_VOIDP]) do |ptr|
    @widget.page.upon! @widget do
      b.(ptr, @widget)
    end
  end
end