Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_tree_model.h File Reference


Detailed Description


Data Structures

struct  Etk_Tree_Model
 A tree model defines the content of a tree's column, and how it should be displayed. More...

Functions

Etk_Tree_Model * etk_tree_model_text_new (void)
 Creates a tree model that displays a text.
Etk_Tree_Model * etk_tree_model_int_new (void)
 Creates a tree model that displays an integer value.
Etk_Tree_Model * etk_tree_model_double_new (void)
 Creates a tree model that displays a float value.
Etk_Tree_Model * etk_tree_model_image_new (void)
 Creates a tree model that displays an image.
Etk_Tree_Model * etk_tree_model_checkbox_new (void)
 Creates a tree model that displays an checkbox. Clicking on the checkbox toggles its state.
Etk_Tree_Model * etk_tree_model_progress_bar_new (void)
 Creates a tree model that displays an checkbox. Clicking on the checkbox toggles its state.
void etk_tree_model_free (Etk_Tree_Model *model)
 Frees a tree model. Usually, you don't need to call it, it's called automatically when the tree is destroyed.
void etk_tree_model_cache_remove (Etk_Tree_Model *model, const char *filename, const char *key)
 Removes an object from the model's cache.
void etk_tree_model_image_width_set (Etk_Tree_Model *model, int width, float alignment)
 Sets the max width allocated to the image in the image model. If the image's width is smaller than the max width, the image will be aligned according to alignment.
void etk_tree_model_image_width_get (Etk_Tree_Model *model, int *width, float *alignment)
 Gets the max width allocated to the image in the image model, and its alignment.