class Gtk::TreeView
Public Class Methods
new(model=nil)
click to toggle source
# File lib/gtk/tree_view.rb, line 10 def initialize(model=nil) @native = if model if model.is_a?(FFI::Pointer) model else Lib.gtk_tree_view_new_with_model(model.native) end else Lib.gtk_tree_view_new() end end
Public Instance Methods
get_cursor()
click to toggle source
# File lib/gtk/tree_view.rb, line 24 def get_cursor path = FFI::MemoryPointer.new :pointer column = FFI::MemoryPointer.new :pointer Lib.gtk_tree_view_get_cursor(native,path,column) path = path.get_pointer(0) column = column.get_pointer(0) [TreePath.new(path),TreeViewColumn.new(column)] end
get_selection()
click to toggle source
# File lib/gtk/tree_view.rb, line 21 def get_selection TreeSelection.new(Lib.gtk_tree_view_get_selection(native)) end