Ewl_Expansion: The Expansion node for Tree
Detailed Description
Defines a widget for tree's expansion node
- Remarks:
- Inherits from Ewl_Check.
Data Structures | |
struct | Ewl_Expansion |
Inherits from Ewl_Check and extends it to provide a expanded state. More... | |
Defines | |
#define | EWL_EXPANSION(c) ((Ewl_Expansion *)c) |
#define | EWL_EXPANSION_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_EXPANSION_TYPE)) |
#define | EWL_EXPANSION_TYPE "expansion" |
Typedefs | |
typedef Ewl_Expansion | Ewl_Expansion |
Functions | |
void | ewl_expansion_cb_reveal (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_expansion_expandable_set (Ewl_Expansion *c, int expandable) |
Change the expandable status of the expansion. | |
int | ewl_expansion_init (Ewl_Expansion *c) |
Initialize the members and callbacks of a expansion. | |
int | ewl_expansion_is_expandable (Ewl_Expansion *c) |
Determine the expandable state of the expansion. | |
Ewl_Widget * | ewl_expansion_new (void) |
Allocate and initialize a new expansion. |
Define Documentation
#define EWL_EXPANSION | ( | c | ) | ((Ewl_Expansion *)c) |
Typecasts a pointer to an Ewl_Expansion pointer.
#define EWL_EXPANSION_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_EXPANSION_TYPE)) |
Returns TRUE if the widget is an Ewl_Expansion, FALSE otherwise
#define EWL_EXPANSION_TYPE "expansion" |
The type name for the Ewl_Expansion widget
Typedef Documentation
typedef struct Ewl_Expansion Ewl_Expansion |
A tree expansion handle.
Function Documentation
void ewl_expansion_cb_reveal | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_expansion_expandable_set | ( | Ewl_Expansion * | cb, | |
int | c | |||
) |
Change the expandable status of the expansion.
- Parameters:
-
cb,: the expansion to change the status c,: the new status of the expansion
- Returns:
- Returns no value.
int ewl_expansion_init | ( | Ewl_Expansion * | cb | ) |
Initialize the members and callbacks of a expansion.
- Parameters:
-
cb,: the expansion to initialize
- Returns:
- Returns TRUE on success, FALSE on failure.
int ewl_expansion_is_expandable | ( | Ewl_Expansion * | cb | ) |
Determine the expandable state of the expansion.
- Parameters:
-
cb,: the expansion to examine for it's expandable state
- Returns:
- Returns TRUE if the expansion is expandable, FALSE if not.
Ewl_Widget* ewl_expansion_new | ( | void | ) |
Allocate and initialize a new expansion.
- Returns:
- Returns the newly allocated expansion on success, NULL on failure.