class Gtk::TreePath

Overrides for GtkTreePath

Public Class Methods

new_from_indices(*args) click to toggle source
# File lib/gir_ffi-gtk/tree_path.rb, line 15
def self.new_from_indices(*args)
  obj = allocate
  obj.send :initialize_from_indices, *args
  obj
end

Public Instance Methods

get_indices() click to toggle source
# File lib/gir_ffi-gtk/tree_path.rb, line 32
def get_indices
  depth = get_depth
  ptr = Gtk::Lib.gtk_tree_path_get_indices self
  GirFFI::SizedArray.wrap(:gint32, depth, ptr)
end
initialize_from_indices(indices) click to toggle source
# File lib/gir_ffi-gtk/tree_path.rb, line 21
def initialize_from_indices(indices)
  args = indices.flat_map { |index| [:int, index] }
  ptr = Gtk::Lib.gtk_tree_path_new_from_indices(*args, :int, -1)
  store_pointer ptr
end