class Gtk::TreeView
Public Instance Methods
enable_model_drag_dest(targets, actions)
click to toggle source
# File gtk3/lib/gtk3/tree-view.rb, line 36 def enable_model_drag_dest(targets, actions) targets = ensure_drag_targets(targets) enable_model_drag_dest_raw(targets, actions) end
Also aliased as: enable_model_drag_dest_raw
enable_model_drag_source(flags, targets, actions)
click to toggle source
# File gtk3/lib/gtk3/tree-view.rb, line 30 def enable_model_drag_source(flags, targets, actions) targets = ensure_drag_targets(targets) enable_model_drag_source_raw(flags, targets, actions) end
Also aliased as: enable_model_drag_source_raw
get_path_at_pos(x, y)
click to toggle source
# File gtk3/lib/gtk3/tree-view.rb, line 20 def get_path_at_pos(x, y) found, *info = get_path_at_pos_raw(x, y) if found info else nil end end
Also aliased as: get_path_at_pos_raw
insert_column(*args, &block)
click to toggle source
# File gtk3/lib/gtk3/tree-view.rb, line 42 def insert_column(*args, &block) case args.size when 2 column, position = args insert_column_raw(column, position) when 3 position, title, cell = args insert_column_with_data_func(position, title, cell, &block) when 4 position, title, cell, attributes = args column = TreeViewColumn.new column.sizing = :fixed if fixed_height_mode? column.title = title column.pack_start(cell, true) attributes.each do |name, column_id| column.add_attribute(cell, name, column_id) end insert_column_raw(column, position) else raise ArgumentError, "wrong number of arguments (#{args.size} for 2..4)" end end
Also aliased as: insert_column_raw