lib/ewl_box.c File Reference
#include "ewl_base.h"
#include "ewl_box.h"
#include "ewl_macros.h"
#include "ewl_private.h"
#include "ewl_debug.h"

Data Structures | |
| struct | Ewl_Box_Orientation |
| Provides information on the orientation of a box. More... | |
Functions | |
| void | ewl_box_cb_child_hide (Ewl_Container *c, Ewl_Widget *w) |
| void | ewl_box_cb_child_homogeneous_resize (Ewl_Container *c, Ewl_Widget *w __UNUSED__, int size __UNUSED__, Ewl_Orientation o) |
| void | ewl_box_cb_child_homogeneous_show (Ewl_Container *c, Ewl_Widget *w __UNUSED__) |
| void | ewl_box_cb_child_resize (Ewl_Container *c, Ewl_Widget *w __UNUSED__, int size, Ewl_Orientation o) |
| void | ewl_box_cb_child_show (Ewl_Container *c, Ewl_Widget *w) |
| void | ewl_box_cb_configure (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_box_cb_configure_homogeneous (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| unsigned int | ewl_box_homogeneous_get (Ewl_Box *b) |
| Retrieves the layout of the box. | |
| void | ewl_box_homogeneous_set (Ewl_Box *b, unsigned int h) |
| Change the homogeneous layout of the box, setting TRUE will give all children the same size. | |
| int | ewl_box_init (Ewl_Box *b) |
| Initialize the box to starting values. | |
| Ewl_Widget * | ewl_box_new (void) |
| Allocate and initialize a new box with given orientation. | |
| Ewl_Orientation | ewl_box_orientation_get (Ewl_Box *b) |
| Retrieves the orientation of the box. | |
| void | ewl_box_orientation_set (Ewl_Box *b, Ewl_Orientation o) |
| Change the specified box's orientation. | |
| void | ewl_box_spacing_set (Ewl_Box *b, int s) |
| Changes the spacing between the objects in the box. | |
| Ewl_Widget * | ewl_hbox_new (void) |
| Allocate and initialize a new box with horizontal orientation. | |
| Ewl_Widget * | ewl_vbox_new (void) |
| Allocate and initialize a new box with vertical orientation. | |
Function Documentation
| void ewl_box_cb_child_homogeneous_resize | ( | Ewl_Container * | c, | |
| Ewl_Widget *w | __UNUSED__, | |||
| int size | __UNUSED__, | |||
| Ewl_Orientation | o | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_BOX, ewl_box_cb_child_homogeneous_show(), EWL_BOX_TYPE, and ewl_container_largest_prefer().
Referenced by ewl_box_homogeneous_set().
| void ewl_box_cb_child_homogeneous_show | ( | Ewl_Container * | c, | |
| Ewl_Widget *w | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_BOX, ewl_container_child_count_visible_get(), ewl_container_largest_prefer(), EWL_CONTAINER_TYPE, EWL_OBJECT, ewl_object_preferred_inner_h_set(), ewl_object_preferred_inner_w_set(), EWL_ORIENTATION_HORIZONTAL, EWL_ORIENTATION_VERTICAL, PREFERRED_H, and PREFERRED_W.
Referenced by ewl_box_cb_child_homogeneous_resize(), and ewl_box_homogeneous_set().
| void ewl_box_cb_child_resize | ( | Ewl_Container * | c, | |
| Ewl_Widget *w | __UNUSED__, | |||
| int | size, | |||
| Ewl_Orientation | o | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_BOX, EWL_BOX_TYPE, ewl_container_largest_prefer(), EWL_OBJECT, EWL_ORIENTATION_HORIZONTAL, Ewl_Box_Orientation::pref_fill_set, PREFERRED_H, and PREFERRED_W.
Referenced by ewl_box_homogeneous_set(), and ewl_box_init().
| void ewl_box_cb_configure | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References alloca(), CURRENT_H, CURRENT_W, CURRENT_X, CURRENT_Y, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, EWL_BOX, EWL_BOX_TYPE, EWL_CONTAINER, ewl_container_child_count_visible_get(), EWL_ORIENTATION_HORIZONTAL, and Ewl_Box::orientation.
Referenced by ewl_box_homogeneous_set(), ewl_box_init(), and ewl_tree_node_init().
| void ewl_box_cb_configure_homogeneous | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References CURRENT_H, CURRENT_W, CURRENT_X, CURRENT_Y, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, EWL_BOX, EWL_BOX_TYPE, EWL_CONTAINER, ewl_container_child_count_visible_get(), ewl_object_place(), EWL_ORIENTATION_HORIZONTAL, Ewl_Box::orientation, Ewl_Box::spacing, and VISIBLE.
Referenced by ewl_box_homogeneous_set().