![]() |
![]() |
![]() |
libsexy Reference Manual | ![]() |
---|---|---|---|---|
SexyTreeView; GtkWidget* sexy_tree_view_new (void); void sexy_tree_view_set_tooltip_label_column (SexyTreeView *treeview, guint column);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkTreeView +----SexyTreeView
"get-tooltip" GtkWidget* user_function (SexyTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data) : Run last
SexyTreeView is a GtkTreeView which supports tooltips on individual cells. These tooltips can be either text (stored in a column of the tree model) or widgets, created through a signal handler.
typedef struct _SexyTreeView SexyTreeView;
The SexyTreeView struct contains private data only, and should be manipulated using the functions below.
GtkWidget* sexy_tree_view_new (void);
Creates a new SexyTreeView widget
Returns : | a new SexyTreeView |
void sexy_tree_view_set_tooltip_label_column (SexyTreeView *treeview, guint column);
Sets a column of the view's model to be used for the text in tooltips.
treeview : |
A SexyTreeView |
column : |
The column of the tree model to use for tooltip text. |
GtkWidget* user_function (SexyTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data) : Run last
The ::get-tooltip signal is emitted when the user's mouse hovers over a cell in the tree for longer than 500ms.
treeview : |
The treeview on which the signal is emitted. |
path : |
The path of the row on which the user is hovering. |
column : |
The column on which the user is hovering. |
user_data : |
user data set when the signal handler was connected. |
Returns : | a GtkWidget to put in the tooltip window. If NULL is returned, no tooltip will be shown. |