Ewl_Tree_View: A tree view
Detailed Description
The tree view class.
- Remarks:
- Inherits from Ewl_Box.
Data Structures | |
struct | Ewl_Tree_View |
Inherits from Ewl_Box and provides the base information for a tree view. More... | |
Defines | |
#define | EWL_TREE_VIEW(v) ((Ewl_Tree_View *)v) |
#define | EWL_TREE_VIEW_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TREE_VIEW_TYPE)) |
#define | EWL_TREE_VIEW_TYPE "tree_view" |
Typedefs | |
typedef Ewl_Tree_View | Ewl_Tree_View |
Functions | |
int | ewl_tree_view_init (Ewl_Tree_View *v) |
Initializes an Ewl_Tree_View to default values. | |
Ewl_Tree * | ewl_tree_view_tree_get (Ewl_Tree_View *v) |
Retrieves the tree parent set into the view. | |
void | ewl_tree_view_tree_set (Ewl_Tree_View *v, Ewl_Tree *t) |
Sets the t tree into the v view. |
Define Documentation
#define EWL_TREE_VIEW | ( | v | ) | ((Ewl_Tree_View *)v) |
Typecasts a pointer to an Ewl_Tree_View pointer
#define EWL_TREE_VIEW_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_TREE_VIEW_TYPE)) |
Returns TRUE if the widget is an Ewl_Tree_View, FALSE otherwise
#define EWL_TREE_VIEW_TYPE "tree_view" |
The type name for Ewl_Tree_View
Typedef Documentation
typedef struct Ewl_Tree_View Ewl_Tree_View |
A View on the tree
Function Documentation
int ewl_tree_view_init | ( | Ewl_Tree_View * | v | ) |
Initializes an Ewl_Tree_View to default values.
- Parameters:
-
v,: The view to initialize
- Returns:
- Returns TRUE on success or FALSE on failure
Ewl_Tree* ewl_tree_view_tree_get | ( | Ewl_Tree_View * | v | ) |
Retrieves the tree parent set into the view.
- Parameters:
-
v,: The view to work with
- Returns:
- Returns the Ewl_Tree parent
void ewl_tree_view_tree_set | ( | Ewl_Tree_View * | v, | |
Ewl_Tree * | t | |||
) |
Sets the t tree into the v view.
- Parameters:
-
v,: The view to work with t,: The tree to set
- Returns:
- Returns no value