lib/ewl_tree.h File Reference
#include "ewl_mvc.h"
#include "ewl_row.h"
Include dependency graph for ewl_tree.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
struct | Ewl_Tree |
Inherits from Ewl_MVC and extends to provide a tree widget. More... | |
struct | Ewl_Tree_Node |
Inherits from Ewl_Container and extends to hold information on a row of the tree. More... | |
Defines | |
#define | EWL_TREE(t) ((Ewl_Tree *)t) |
#define | EWL_TREE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TREE_TYPE)) |
#define | EWL_TREE_NODE(n) ((Ewl_Tree_Node *)n) |
#define | EWL_TREE_NODE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TREE_NODE_TYPE)) |
#define | EWL_TREE_NODE_TYPE "node" |
#define | EWL_TREE_TYPE "tree" |
Typedefs | |
typedef struct Ewl_Tree | Ewl_Tree |
typedef struct Ewl_Tree_Node | Ewl_Tree_Node |
Functions | |
unsigned int | ewl_tree_alternate_row_colors_get (Ewl_Tree *tree) |
Retrieve if the row colours are being alternated. | |
void | ewl_tree_alternate_row_colors_set (Ewl_Tree *tree, unsigned char alternate) |
Toggle if the rows alternate in colour. | |
void | ewl_tree_cb_column_sort (Ewl_Widget *w, void *ev, void *data) |
void | ewl_tree_cb_configure (Ewl_Widget *w, void *ev, void *data) |
void | ewl_tree_cb_destroy (Ewl_Widget *w, void *ev, void *data) |
void | ewl_tree_cb_node_child_add (Ewl_Container *c, Ewl_Widget *w) |
void | ewl_tree_cb_node_child_del (Ewl_Container *c, Ewl_Widget *w, int idx) |
void | ewl_tree_cb_node_child_hide (Ewl_Container *c, Ewl_Widget *w) |
void | ewl_tree_cb_node_child_show (Ewl_Container *c, Ewl_Widget *w) |
void | ewl_tree_cb_node_configure (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_tree_cb_node_data_unref (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_tree_cb_node_realize (Ewl_Widget *w, void *ev, void *data) |
void | ewl_tree_cb_node_resize (Ewl_Container *c, Ewl_Widget *w, int size, Ewl_Orientation o) |
void | ewl_tree_cb_node_toggle (Ewl_Widget *w, void *ev_data, void *user_data) |
unsigned int | ewl_tree_column_count_get (Ewl_Tree *tree) |
Retrives the number of columns in the tree. | |
void | ewl_tree_column_count_set (Ewl_Tree *tree, unsigned int count) |
Sets the number of columns in the tree. | |
unsigned int | ewl_tree_column_fixed_size_get (Ewl_Tree *tree, unsigned int col) |
void | ewl_tree_column_fixed_size_set (Ewl_Tree *tree, unsigned int col, unsigned int fixed) |
Set the fixed size flag of the give column. | |
int | ewl_tree_column_initial_size_get (Ewl_Tree *tree, unsigned int col) |
void | ewl_tree_column_initial_size_set (Ewl_Tree *tree, unsigned int col, int size) |
Set the initial size of the give column. | |
Ewl_View * | ewl_tree_content_view_get (Ewl_Tree *tree) |
Retrives the view used to generate the tree content area. | |
void | ewl_tree_content_view_set (Ewl_Tree *tree, const Ewl_View *view) |
Sets the view to use to generate the content area. | |
Ewl_Widget * | ewl_tree_content_widget_get (Ewl_Tree *tree) |
Retrieves the widget containing the tree rows. | |
unsigned int | ewl_tree_fixed_rows_get (Ewl_Tree *tree) |
Retrieve the fixed row size of the tree. | |
void | ewl_tree_fixed_rows_set (Ewl_Tree *tree, unsigned int fixed) |
Set the fixed row size of the tree. | |
unsigned int | ewl_tree_headers_visible_get (Ewl_Tree *tree) |
Retrieve if the header is visible in the tree. | |
void | ewl_tree_headers_visible_set (Ewl_Tree *tree, unsigned char visible) |
Toggle if the header is visible in the tree. | |
int | ewl_tree_init (Ewl_Tree *tree) |
Initialize the contents of a tree widget. | |
double | ewl_tree_kinetic_dampen_get (Ewl_Tree *tree) |
Gets the multiplier used to reduce the velocity of kinetic scrolling. | |
void | ewl_tree_kinetic_dampen_set (Ewl_Tree *tree, double d) |
Sets the multiplier to reduce the velocity of kinetic scrolling. | |
int | ewl_tree_kinetic_fps_get (Ewl_Tree *tree) |
Gets the number of times per second the tree scrolling is updated. | |
void | ewl_tree_kinetic_fps_set (Ewl_Tree *tree, int fps) |
Sets the number of times per second the tree scrolling is updated. | |
double | ewl_tree_kinetic_max_velocity_get (Ewl_Tree *tree) |
Gets the maximum velocity for kinetic scrolling. | |
void | ewl_tree_kinetic_max_velocity_set (Ewl_Tree *tree, double v) |
Sets the maximum velocity for kinetic scrolling. | |
double | ewl_tree_kinetic_min_velocity_get (Ewl_Tree *tree) |
Gets the minimum velocity for kinetic scrolling. | |
void | ewl_tree_kinetic_min_velocity_set (Ewl_Tree *tree, double v) |
Sets the minimum velocity for kinetic scrolling. | |
Ewl_Kinetic_Scroll | ewl_tree_kinetic_scrolling_get (Ewl_Tree *tree) |
Gets the type of kinetic scrolling used. | |
void | ewl_tree_kinetic_scrolling_set (Ewl_Tree *tree, Ewl_Kinetic_Scroll type) |
Sets up the tree to use kinetic scrolling. | |
Ewl_Widget * | ewl_tree_new (void) |
Allocate and initialize a new tree widget. | |
void | ewl_tree_node_collapse (Ewl_Tree_Node *node) |
void | ewl_tree_node_expand (Ewl_Tree_Node *node) |
unsigned int | ewl_tree_node_expandable_get (Ewl_Tree_Node *node) |
void | ewl_tree_node_expandable_set (Ewl_Tree_Node *node, unsigned int expandable) |
unsigned int | ewl_tree_node_expanded_is (Ewl_Tree_Node *node) |
int | ewl_tree_node_init (Ewl_Tree_Node *node) |
Ewl_Widget * | ewl_tree_node_new (void) |
void | ewl_tree_node_row_set (Ewl_Tree_Node *node, Ewl_Row *row) |
void | ewl_tree_row_collapse (Ewl_Tree *tree, void *data, unsigned int row) |
Sets the given row to collapsed for the given data in tree. | |
void | ewl_tree_row_expand (Ewl_Tree *tree, void *data, unsigned int row) |
When the tree displays the data in data it will expand the give row. This data is the parent of the expansion row. | |
unsigned int | ewl_tree_row_expanded_is (Ewl_Tree *tree, void *data, unsigned int row) |
Checks if row is expanded in data of tree. | |
Ewl_Tree_Selection_Type | ewl_tree_selection_type_get (Ewl_Tree *tree) |
Get the selection type from the tree. | |
void | ewl_tree_selection_type_set (Ewl_Tree *tree, Ewl_Tree_Selection_Type type) |
Set the mode of the tree. |