Class: Gtk::TreeModel
Overview
GInterface really
Instance Attribute Summary
Attributes inherited from GObject
Instance Method Summary collapse
-
#initialize(pointer) ⇒ TreeModel
constructor
A new instance of TreeModel.
- #iter_first ⇒ Object
Methods inherited from GObject
#method_missing, #signal_connect, type_register, #unref
Constructor Details
#initialize(pointer) ⇒ TreeModel
8 9 10 11 |
# File 'lib/gtk/tree_model.rb', line 8 def initialize(pointer) raise "hell" unless pointer.is_a?(FFI::Pointer) @native = pointer end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Gtk::GObject
Instance Method Details
#iter_first ⇒ Object
12 13 14 15 16 17 |
# File 'lib/gtk/tree_model.rb', line 12 def iter_first iter = TreeIter.new iter.owner = self Lib.gtk_tree_model_get_iter_first(native,iter.to_ptr) iter end |