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

Functions | |
| void | ewl_grid_cb_child_add (Ewl_Container *p, Ewl_Widget *c __UNUSED__) |
| void | ewl_grid_cb_child_remove (Ewl_Container *c, Ewl_Widget *w, int idx __UNUSED__) |
| void | ewl_grid_cb_child_resize (Ewl_Container *p, Ewl_Widget *child __UNUSED__, int size __UNUSED__, Ewl_Orientation o __UNUSED__) |
| void | ewl_grid_cb_child_show (Ewl_Container *p, Ewl_Widget *child __UNUSED__) |
| void | ewl_grid_cb_configure (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_grid_cb_destroy (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_grid_child_position_get (Ewl_Grid *g, Ewl_Widget *w, int *start_col, int *end_col, int *start_row, int *end_row) |
| get the position of a child widget | |
| void | ewl_grid_child_position_set (Ewl_Grid *g, Ewl_Widget *w, int start_col, int end_col, int start_row, int end_row) |
| Give a child widget a fixed-postion in the grid. | |
| int | ewl_grid_column_current_w_get (Ewl_Grid *g, int col) |
| Get the current width of a column. | |
| int | ewl_grid_column_fixed_w_get (Ewl_Grid *g, int col) |
| Get the user set width of a column. | |
| void | ewl_grid_column_fixed_w_set (Ewl_Grid *g, int col, int width) |
| Set the fixed size of a column. | |
| void | ewl_grid_column_preferred_w_use (Ewl_Grid *g, int col) |
| use the preferred size of the column | |
| float | ewl_grid_column_relative_w_get (Ewl_Grid *g, int col) |
| Get the user set relative width of a column. | |
| void | ewl_grid_column_relative_w_set (Ewl_Grid *g, int col, float relw) |
| Set the relative width of a column. | |
| void | ewl_grid_column_w_remove (Ewl_Grid *g, int col) |
| remove the user set size | |
| void | ewl_grid_dimensions_get (Ewl_Grid *g, int *cols, int *rows) |
| get the number of columns and rows | |
| void | ewl_grid_dimensions_set (Ewl_Grid *g, int cols, int rows) |
| sets the new dimensions | |
| unsigned int | ewl_grid_hhomogeneous_get (Ewl_Grid *g) |
| Retrieves the horizontal homogeneous flag. | |
| void | ewl_grid_hhomogeneous_set (Ewl_Grid *g, unsigned int h) |
| Change the horizontal homogeneous layout of the box. | |
| void | ewl_grid_homogeneous_set (Ewl_Grid *g, unsigned int h) |
| Change the homogeneous layout of the grid. | |
| int | ewl_grid_init (Ewl_Grid *g) |
| Initializes an Ewl_Grid widget to default values. | |
| Ewl_Widget * | ewl_grid_new (void) |
| Create a new Ewl_Grid widget. | |
| Ewl_Orientation | ewl_grid_orientation_get (Ewl_Grid *g) |
| Retrieves the fill orientation flag. | |
| void | ewl_grid_orientation_set (Ewl_Grid *g, Ewl_Orientation orientation) |
| Change the fill orientation. | |
| int | ewl_grid_row_current_h_get (Ewl_Grid *g, int row) |
| Get the current height of a column. | |
| int | ewl_grid_row_fixed_h_get (Ewl_Grid *g, int row) |
| Get the user set height of a row. | |
| void | ewl_grid_row_fixed_h_set (Ewl_Grid *g, int row, int height) |
| Set the fixed size of a column. | |
| void | ewl_grid_row_h_remove (Ewl_Grid *g, int row) |
| remove the user set size | |
| void | ewl_grid_row_preferred_h_use (Ewl_Grid *g, int row) |
| use the preferred size of the row | |
| float | ewl_grid_row_relative_h_get (Ewl_Grid *g, int row) |
| Get the user set relative height of a row. | |
| void | ewl_grid_row_relative_h_set (Ewl_Grid *g, int row, float relh) |
| Set the relative height of a row. | |
| unsigned int | ewl_grid_vhomogeneous_get (Ewl_Grid *g) |
| Retrieves the vertical homogeneous flag. | |
| void | ewl_grid_vhomogeneous_set (Ewl_Grid *g, unsigned int h) |
| Change the vertical homogeneous layout of the box. | |
Function Documentation
| void ewl_grid_cb_child_add | ( | Ewl_Container * | p, | |
| Ewl_Widget *c | __UNUSED__ | |||
| ) |
| void ewl_grid_cb_child_resize | ( | Ewl_Container * | p, | |
| Ewl_Widget *child | __UNUSED__, | |||
| int size | __UNUSED__, | |||
| Ewl_Orientation o | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_GRID, EWL_GRID_TYPE, EWL_WIDGET, and ewl_widget_configure().
Referenced by ewl_grid_init().
| void ewl_grid_cb_child_show | ( | Ewl_Container * | p, | |
| Ewl_Widget *child | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_GRID, and EWL_GRID_TYPE.
Referenced by ewl_grid_init().
| void ewl_grid_cb_configure | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Grid::col_size, Ewl_Grid_Info::current_pos, Ewl_Grid_Info::current_size, Ewl_Grid::data_dirty, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_CONTAINER, EWL_GRID, EWL_GRID_TYPE, EWL_OBJECT, ewl_object_place(), EWL_ORIENTATION_HORIZONTAL, ewl_widget_configure(), ewl_widget_data_get(), Ewl_Grid::map, Ewl_Grid::orientation, Ewl_Grid::row_size, and UNMANAGED.
Referenced by ewl_grid_init().
| void ewl_grid_cb_destroy | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Grid::col_size, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_GRID, EWL_GRID_TYPE, IF_FREE, Ewl_Grid::map, and Ewl_Grid::row_size.
Referenced by ewl_grid_init().