Module: Gtk::Lib
- Extended by:
- FFI::Library
- Defined in:
- lib/gtk.rb,
lib/gtk.rb,
lib/gtk.rb,
lib/gtk/window.rb,
lib/gtk/container.rb,
lib/gtk/tree_path.rb,
lib/gtk/tree_view.rb,
lib/gtk/list_store.rb,
lib/gtk/tree_model.rb,
lib/gtk/tree_store.rb,
lib/gtk/cell_renderer.rb,
lib/gtk/style_context.rb,
lib/gtk/message_dialog.rb,
lib/gtk/tree_selection.rb,
lib/gtk/tree_view_column.rb,
lib/gtk/cell_renderer_text.rb
Defined Under Namespace
Classes: GTypeInfo, GTypeInstance
Class Method Summary
collapse
Class Method Details
.attach_method(method, args, ret) ⇒ Object
23
24
25
26
|
# File 'lib/gtk.rb', line 23
def self.attach_method method, args, ret
attached_methods[method] = { :name => method, :args => args, :ret => ret }
attach_function method,args.map{ |arg| arg.respond_to?(:superclass) && arg.superclass == Enums ? :long : arg },ret
end
|
.attached_methods ⇒ Object
19
20
21
|
# File 'lib/gtk.rb', line 19
def self.attached_methods
@attached_methods ||= {}
end
|