class Gtk::TreePath
Overrides for GtkTreePath
Public Class Methods
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
Source
# File lib/gir_ffi-gtk/tree_path.rb, line 33 def get_indices depth = get_depth ptr = Gtk::Lib.gtk_tree_path_get_indices self GirFFI::SizedArray.wrap(:gint32, depth, ptr) end
Source
# File lib/gir_ffi-gtk/tree_path.rb, line 21 def initialize_from_indices(indices) head, *rest = *indices args = rest.flat_map { |index| [:int, index] } ptr = Gtk::Lib.gtk_tree_path_new_from_indices(head, *args, :int, -1) store_pointer ptr end