Class: Tgui::ComboBox::SignalItem

Inherits:
SignalItem show all
Defined in:
lib/white_gold/dsl/combo_box.rb

Instance Attribute Summary

Attributes inherited from ExternObject

#pointer

Instance Method Summary collapse

Methods inherited from SignalItem

#_abi_connect

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



37
38
39
40
41
42
43
44
# File 'lib/white_gold/dsl/combo_box.rb', line 37

def block_caller &b
  Fiddle::Closure::BlockCaller.new(0, [Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP]) do |str1, str2|
    id = @widget.abi_unpack_string(str2)
    @widget.page.upon! @widget do
      b.(@widget.self_get_object_by_id(id), @widget)
    end
  end
end