_
ViewSee extended documentation in Gtk.Tree_View_Column and Gtk.Tree_Store.
Widget Hierarchy |
---|
GObject (see section Package Glib.Object)
Gtk_Object (see section Package Gtk.Object)
\___ Gtk_Widget (see section Package Gtk.Widget)
\___ Gtk_Container (see section Package Gtk.Container)
\___ Gtk_Tree_View (see section Package Gtk.Tree
|
Signals |
---|
Types |
---|
type Gtk_Tree_View_Drop_Position is (Tree_View_Drop_Before, Tree_View_Drop_After, Tree_View_Drop_Into_Or_Before, Tree_View_Drop_Into_Or_After); | |
|
Subprograms |
---|
procedure Gtk_New (Widget : out Gtk_Tree_View); | ||
| ||
function Get_Type return Gtk.Gtk_Type; | ||
Return the internal value associated with this widget.
| ||
procedure Gtk_New (Widget : out Gtk_Tree_View; Model : access Gtk.Tree_Model.Gtk_Tree_Model_Record'Class); | ||
| ||
function Get_Model (Tree_View : access Gtk_Tree_View_Record) return Gtk.Tree_Model.Gtk_Tree_Model; | ||
Returns the model the the Gtk_Tree_View is based on. Returns Null if | ||
procedure Set_Model (Tree_View : access Gtk_Tree_View_Record; Model : Gtk.Tree_Model.Gtk_Tree_Model); | ||
Sets the model for a Gtk_Tree_View. If the Tree_View already has a | ||
function Get_Selection (Tree_View : access Gtk_Tree_View_Record) return Gtk.Tree_Selection.Gtk_Tree_Selection; | ||
Gets the Gtk_Tree_Selection associated with Tree_View.
| ||
function Get_Hadjustment (Tree_View : access Gtk_Tree_View_Record) return Gtk.Adjustment.Gtk_Adjustment; | ||
Sets the Gtk_Adjustment for the current horizontal aspect.
| ||
procedure Set_Hadjustment (Tree_View : access Gtk_Tree_View_Record; Adjustment : access Gtk.Adjustment.Gtk_Adjustment_Record'Class); | ||
Sets the Gtk_Adjustment for the current horizontal aspect.
| ||
function Get_Vadjustment (Tree_View : access Gtk_Tree_View_Record) return Gtk.Adjustment.Gtk_Adjustment; | ||
Gets the Gtk_Adjustment currently being used for the vertical aspect.
| ||
procedure Set_Vadjustment (Tree_View : access Gtk_Tree_View_Record; Adjustment : access Gtk.Adjustment.Gtk_Adjustment_Record'Class); | ||
Sets the Gtk_Adjustment for the current vertical aspect.
| ||
Column and header operations | ||
function Get_Headers_Visible (Tree_View : access Gtk_Tree_View_Record) return Boolean; | ||
Returns True if the headers on the Tree_View are visible.
| ||
procedure Set_Headers_Visible (Tree_View : access Gtk_Tree_View_Record; Headers_Visible : Boolean); | ||
Sets the the visibility state of the headers.
| ||
procedure Columns_Autosize (Tree_View : access Gtk_Tree_View_Record); | ||
Resizes all columns to their optimal width.
| ||
procedure Set_Headers_Clickable (Tree_View : access Gtk_Tree_View_Record; Setting : Boolean); | ||
Allow the column title buttons to be clicked.
| ||
procedure Set_Rules_Hint (Tree_View : access Gtk_Tree_View_Record; Setting : Boolean); | ||
This function tells GtkAda that the user interface for your | ||
function Get_Rules_Hint (Tree_View : access Gtk_Tree_View_Record) return Boolean; | ||
Get the setting set by Set_Rules_Hint.
| ||
Public Column functions | ||
function Append_Column (Tree_View : access Gtk_Tree_View_Record; Column : Gtk.Tree_View_Column.Gtk_Tree_View_Column) return Gint; | ||
Append Column to the list of columns.
| ||
function Remove_Column (Tree_View : access Gtk_Tree_View_Record; Column : Gtk.Tree_View_Column.Gtk_Tree_View_Column) return Gint; | ||
Remove Column from Tree_View. | ||
function Insert_Column (Tree_View : access Gtk_Tree_View_Record; Column : Gtk.Tree_View_Column.Gtk_Tree_View_Column; Position : Gint := -1) return Gint; | ||
Insert the Column into the Tree_View at Position. | ||
function Get_Column (Tree_View : access Gtk_Tree_View_Record; N : Gint) return Gtk.Tree_View_Column.Gtk_Tree_View_Column; | ||
Gets the Gtk_Tree_ViewColumn at the given position in the Tree_View.
| ||
function Get_Columns (Tree_View : access Gtk_Tree_View_Record) return Gtk.Tree_View_Column.Column_List.Glist; | ||
Return a list of all the Gtk_Tree_View_Column s currently in Tree_View. | ||
procedure Move_Column_After (Tree_View : access Gtk_Tree_View_Record; Column : Gtk.Tree_View_Column.Gtk_Tree_View_Column; Base_Column : Gtk.Tree_View_Column.Gtk_Tree_View_Column); | ||
Move Column to be after to Base_Column. If Base_Column is Null, then | ||
procedure Set_Expander_Column (Tree_View : access Gtk_Tree_View_Record; Column : Gtk.Tree_View_Column.Gtk_Tree_View_Column); | ||
Set the column to draw the expander arrow at. It must be in Tree_View. | ||
function Get_Expander_Column (Tree_View : access Gtk_Tree_View_Record) return Gtk.Tree_View_Column.Gtk_Tree_View_Column; | ||
Return the column that is the current expander column. | ||
procedure Scroll_To_Point (Tree_View : access Gtk_Tree_View_Record; Tree_X : Gint; Tree_Y : Gint); | ||
Scroll the tree view such that the top-left corner of the visible | ||
procedure Scroll_To_Cell (Tree_View : access Gtk_Tree_View_Record; Path : Gtk.Tree_Model.Gtk_Tree_Path; Column : Gtk.Tree_View_Column.Gtk_Tree_View_Column; Use_Align : Boolean; Row_Align : Gfloat; Col_Align : Gfloat); | ||
Move the alignments of Tree_View to the position specified by Column and | ||
procedure Row_Activated (Tree_View : access Gtk_Tree_View_Record; Path : Gtk.Tree_Model.Gtk_Tree_Path; Column : Gtk.Tree_View_Column.Gtk_Tree_View_Column); | ||
Activate the cell determined by Path and Column.
| ||
procedure Expand_All (Tree_View : access Gtk_Tree_View_Record); | ||
Recursively expand all nodes in the Tree_View.
| ||
procedure Collapse_All (Tree_View : access Gtk_Tree_View_Record); | ||
Recursively collapse all visible, expanded nodes in Tree_View.
| ||
function Expand_Row (Tree_View : access Gtk_Tree_View_Record; Path : Gtk.Tree_Model.Gtk_Tree_Path; Open_All : Boolean) return Boolean; | ||
Open the row so its children are visible | ||
function Collapse_Row (Tree_View : access Gtk_Tree_View_Record; Path : Gtk.Tree_Model.Gtk_Tree_Path) return Boolean; | ||
Collapse a row (hides its child rows, if they exist.)
| ||
function Row_Expanded (Tree_View : access Gtk_Tree_View_Record; Path : Gtk.Tree_Model.Gtk_Tree_Path) return Boolean; | ||
Return True if the node pointed to by Path is expanded in Tree_View.
| ||
procedure Set_Reorderable (Tree_View : access Gtk_Tree_View_Record; Reorderable : Boolean); | ||
This function is a convenience function to allow you to reorder models
| ||
function Get_Reorderable (Tree_View : access Gtk_Tree_View_Record) return Boolean; | ||
Retrieve whether the user can reorder the tree via drag-and-drop. | ||
procedure Set_Cursor (Tree_View : access Gtk_Tree_View_Record; Path : Gtk.Tree_Model.Gtk_Tree_Path; Focus_Column : Gtk.Tree_View_Column.Gtk_Tree_View_Column; Start_Editing : Boolean); | ||
Sets the current keyboard focus to be at Path, and selects it. This is | ||
procedure Get_Cursor (Tree_View : access Gtk_Tree_View_Record; Path : out Gtk.Tree_Model.Gtk_Tree_Path; Focus_Column : out Gtk.Tree_View_Column.Gtk_Tree_View_Column); | ||
Fills in Path and Focus_Column with the current path and focus column. | ||
function Get_Bin_Window (Tree_View : access Gtk_Tree_View_Record) return Gdk.Window.Gdk_Window; | ||
Return the window that Tree_View renders to. | ||
procedure Get_Path_At_Pos (Tree_View : access Gtk_Tree_View_Record; X : Gint; Y : Gint; Path : out Gtk.Tree_Model.Gtk_Tree_Path; Column : out Gtk.Tree_View_Column.Gtk_Tree_View_Column; Cell_X : out Gint; Cell_Y : out Gint; Row_Found : out Boolean); | ||
Find the path at the point (X, Y) relative to Window. | ||
procedure Get_Cell_Area (Tree_View : access Gtk_Tree_View_Record; Path : Gtk.Tree_Model.Gtk_Tree_Path; Column : Gtk.Tree_View_Column.Gtk_Tree_View_Column; Rect : out Gdk.Rectangle.Gdk_Rectangle); | ||
Fills the bounding rectangle in tree window coordinates for the cell at | ||
procedure Get_Background_Area (Tree_View : access Gtk_Tree_View_Record; Path : Gtk.Tree_Model.Gtk_Tree_Path; Column : Gtk.Tree_View_Column.Gtk_Tree_View_Column; Rect : Gdk.Rectangle.Gdk_Rectangle); | ||
Fills the bounding rectangle in tree window coordinates for the cell | ||
procedure Get_Visible_Rect (Tree_View : access Gtk_Tree_View_Record; Visible_Rect : out Gdk.Rectangle.Gdk_Rectangle); | ||
Fills Visible_Rect with the currently-visible region of the | ||
procedure Widget_To_Tree_Coords (Tree_View : access Gtk_Tree_View_Record; Wx : Gint; Wy : Gint; Tx : out Gint; Ty : out Gint); | ||
Converts widget coordinates to coordinates for the | ||
procedure Tree_To_Widget_Coords (Tree_View : access Gtk_Tree_View_Record; Tx : Gint; Ty : Gint; Wx : out Gint; Wy : out Gint); | ||
Converts tree coordinates (coordinates in full scrollable area of | ||
procedure Unset_Rows_Drag_Source (Tree_View : access Gtk_Tree_View_Record); | ||
| ||
procedure Unset_Rows_Drag_Dest (Tree_View : access Gtk_Tree_View_Record); | ||
| ||
function Create_Row_Drag_Icon (Tree_View : access Gtk_Tree_View_Record; Path : Gtk.Tree_Model.Gtk_Tree_Path) return Gdk.Pixmap.Gdk_Pixmap; | ||
| ||
procedure Set_Enable_Search (Tree_View : access Gtk_Tree_View_Record; Enable_Search : Boolean); | ||
| ||
function Get_Enable_Search (Tree_View : access Gtk_Tree_View_Record) return Boolean; | ||
| ||
function Get_Search_Column (Tree_View : access Gtk_Tree_View_Record) return Gint; | ||
| ||
procedure Set_Search_Column (Tree_View : access Gtk_Tree_View_Record; Column : Gint); | ||
|