Class: Gtk::TreeModel

Inherits:
GObject show all
Defined in:
lib/gtk/tree_model.rb

Overview

GInterface really

Instance Attribute Summary

Attributes inherited from GObject

#native, #type

Instance Method Summary collapse

Methods inherited from GObject

#method_missing, #signal_connect, type_register, #unref

Constructor Details

#initialize(pointer) ⇒ TreeModel

Returns a new instance of 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_firstObject



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