Ewl_Cell: The Cell Container, Layout for a Single Widget
Detailed Description
Defines a container to layout a single child with all of it's available space.
- Remarks:
- Inherits from Ewl_Container.
Data Structures | |
struct | Ewl_Cell |
Inherits from Ewl_Container for packing widgets inside a cell. More... | |
Defines | |
#define | EWL_CELL(t) ((Ewl_Cell *)t) |
#define | EWL_CELL_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_CELL_TYPE)) |
#define | EWL_CELL_TYPE "cell" |
Typedefs | |
typedef struct Ewl_Cell | Ewl_Cell |
Functions | |
void | ewl_cell_cb_child_resize (Ewl_Container *c, Ewl_Widget *w, int size, Ewl_Orientation o) |
void | ewl_cell_cb_child_show (Ewl_Container *c, Ewl_Widget *w) |
void | ewl_cell_cb_configure (Ewl_Widget *w, void *ev_data, void *user_data) |
int | ewl_cell_init (Ewl_Cell *cell) |
Initialize the cell fields of an inheriting object. | |
Ewl_Widget * | ewl_cell_new (void) |
Allocate and initialize a new cell. | |
void | ewl_cell_state_change_cb_add (Ewl_Cell *cell) |
void | ewl_cell_state_change_cb_del (Ewl_Cell *cell) |
Removes the callback to send state changes on to the cell's children. |
Define Documentation
#define EWL_CELL | ( | t | ) | ((Ewl_Cell *)t) |
Typecast a pointer to an Ewl_Cell pointer.
Referenced by ewl_cell_new(), ewl_combo_cell_init(), ewl_embed_init(), and ewl_list_cb_configure().
#define EWL_CELL_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_CELL_TYPE)) |
Returns TRUE if the widget is an Ewl_Cell, FALSE otherwise
#define EWL_CELL_TYPE "cell" |
- Widget Theme Keys:
- /cell/file
- Widget Theme Keys:
- /cell/group
Referenced by ewl_cell_cb_child_resize(), ewl_cell_cb_child_show(), ewl_cell_cb_configure(), ewl_cell_init(), ewl_cell_state_change_cb_add(), ewl_cell_state_change_cb_del(), and ewl_table_col_row_get().
Typedef Documentation
Function Documentation
void ewl_cell_cb_child_resize | ( | Ewl_Container * | c, | |
Ewl_Widget * | w, | |||
int | size, | |||
Ewl_Orientation | o | |||
) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_CELL_TYPE, EWL_OBJECT, ewl_object_preferred_h_get(), ewl_object_preferred_inner_size_set(), ewl_object_preferred_w_get(), and EWL_WIDGET_TYPE.
Referenced by ewl_cell_init(), and ewl_popup_cb_child_resize().
void ewl_cell_cb_child_show | ( | Ewl_Container * | c, | |
Ewl_Widget * | w | |||
) |
References Ewl_Container::children, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_CELL_TYPE, ewl_container_child_remove(), EWL_OBJECT, ewl_object_preferred_h_get(), ewl_object_preferred_inner_size_set(), ewl_object_preferred_w_get(), and EWL_WIDGET_TYPE.
Referenced by ewl_cell_init(), and ewl_popup_cb_child_show().
void ewl_cell_cb_configure | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
References Ewl_Container::children, CURRENT_H, CURRENT_W, CURRENT_X, CURRENT_Y, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_CELL_TYPE, EWL_CONTAINER, ewl_object_place(), and UNMANAGED.
Referenced by ewl_cell_init().
int ewl_cell_init | ( | Ewl_Cell * | cell | ) |
Initialize the cell fields of an inheriting object.
- Parameters:
-
cell,: the cell object to initialize
- Returns:
- Returns TRUE on success, FALSE on failure. The fields of the cell object are initialized to their defaults.
References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, ewl_callback_append(), EWL_CALLBACK_CONFIGURE, EWL_CALLBACK_FOCUS_IN, EWL_CALLBACK_FOCUS_OUT, ewl_cell_cb_child_resize(), ewl_cell_cb_child_show(), ewl_cell_cb_configure(), EWL_CELL_TYPE, EWL_CONTAINER, ewl_container_callback_notify(), ewl_container_init(), ewl_container_resize_notify_set(), ewl_container_show_notify_set(), EWL_FLAG_FILL_FILL, EWL_FLAG_FILL_HSHRINK, EWL_OBJECT, ewl_object_fill_policy_set(), EWL_WIDGET, ewl_widget_appearance_set(), and ewl_widget_inherit().
Referenced by ewl_cell_new(), ewl_combo_cell_init(), and ewl_embed_init().
Ewl_Widget* ewl_cell_new | ( | void | ) |
Allocate and initialize a new cell.
- Returns:
- Returns a newly allocated cell on success, NULL on failure.
References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_CELL, ewl_cell_init(), FREE, and NEW.
Referenced by ewl_dialog_init(), ewl_list_cb_configure(), ewl_table_add(), ewl_table_init(), and ewl_table_reset().
void ewl_cell_state_change_cb_add | ( | Ewl_Cell * | cell | ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_callback_append(), EWL_CALLBACK_STATE_CHANGED, EWL_CELL_TYPE, and EWL_WIDGET.
Referenced by ewl_list_cb_configure().
void ewl_cell_state_change_cb_del | ( | Ewl_Cell * | cell | ) |
Removes the callback to send state changes on to the cell's children.
- Parameters:
-
cell,: The cell to work with
- Returns:
- : Returns no value
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_callback_del(), EWL_CALLBACK_STATE_CHANGED, EWL_CELL_TYPE, and EWL_WIDGET.