![]() |
![]() |
![]() |
Exo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <exo/exo.h> ExoTreeView; GtkWidget * exo_tree_view_new (void
); gboolean exo_tree_view_get_single_click (const ExoTreeView *tree_view
); void exo_tree_view_set_single_click (ExoTreeView *tree_view
,gboolean single_click
); guint exo_tree_view_get_single_click_timeout (const ExoTreeView *tree_view
); void exo_tree_view_set_single_click_timeout (ExoTreeView *tree_view
,guint single_click_timeout
);
The ExoTreeView class derives from GtkTreeView and extends it with the ability to activate rows using single button clicks instead of the default double button clicks. It also works around a few shortcomings of GtkTreeView, i.e. ExoTreeView allows the user to drag around multiple selected rows.
typedef struct _ExoTreeView ExoTreeView;
The ExoIconView struct contains only private fields and should not be directly accessed.
GtkWidget * exo_tree_view_new (void
);
Allocates a new ExoTreeView instance.
Returns : |
the newly allocated ExoTreeView. |
Since 0.3.1.3
gboolean exo_tree_view_get_single_click (const ExoTreeView *tree_view
);
Returns TRUE
if tree_view
is in single-click mode, else FALSE
.
|
an ExoTreeView. |
Returns : |
whether tree_view is in single-click mode. |
Since 0.3.1.3
void exo_tree_view_set_single_click (ExoTreeView *tree_view
,gboolean single_click
);
If single_click
is TRUE
, tree_view
will use single-click mode, else
the default double-click mode will be used.
|
an ExoTreeView. |
|
TRUE to use single-click for tree_view , FALSE otherwise. |
Since 0.3.1.3
guint exo_tree_view_get_single_click_timeout
(const ExoTreeView *tree_view
);
Returns the amount of time in milliseconds after which the
item under the mouse cursor will be selected automatically
in single click mode. A value of 0
means that the behavior
is disabled and the user must alter the selection manually.
|
a ExoTreeView. |
Returns : |
the single click autoselect timeout or 0 if
the behavior is disabled. |
Since 0.3.1.5
void exo_tree_view_set_single_click_timeout (ExoTreeView *tree_view
,guint single_click_timeout
);
If single_click_timeout
is a value greater than zero, it specifies
the amount of time in milliseconds after which the item under the
mouse cursor will be selected automatically in single click mode.
A value of 0
for single_click_timeout
disables the autoselection
for tree_view
.
This setting does not have any effect unless the tree_view
is in
single-click mode, see exo_tree_view_set_single_click()
.
|
a ExoTreeView. |
|
the new timeout or 0 to disable. |
Since 0.3.1.5