Download

Support

lib/ewl_grid.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Data Structures

struct  Ewl_Grid
 Inherit from Ewl_Container and extend to privide a grid layout widget. More...
struct  Ewl_Grid_Child
 Contains information about a grid child. More...
struct  Ewl_Grid_Info
 Contains information about a row or column of Ewl_Grid. More...

Defines

#define EWL_GRID(grid)   ((Ewl_Grid *)grid)
#define EWL_GRID_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_GRID_TYPE))
#define EWL_GRID_TYPE   "grid"

Typedefs

typedef struct Ewl_Grid Ewl_Grid
typedef struct Ewl_Grid_Child Ewl_Grid_Child
typedef struct Ewl_Grid_Info Ewl_Grid_Info

Functions

void ewl_grid_cb_child_add (Ewl_Container *p, Ewl_Widget *c)
void ewl_grid_cb_child_remove (Ewl_Container *p, Ewl_Widget *c, int idx)
void ewl_grid_cb_child_resize (Ewl_Container *p, Ewl_Widget *child, int size, Ewl_Orientation o)
void ewl_grid_cb_child_show (Ewl_Container *p, Ewl_Widget *child)
void ewl_grid_cb_configure (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_grid_cb_destroy (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_grid_child_position_get (Ewl_Grid *g, Ewl_Widget *child, 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 *child, 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 *col, int *row)
 get the number of columns and rows
void ewl_grid_dimensions_set (Ewl_Grid *g, int col, int row)
 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_Widgetewl_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 col)
 use the preferred size of the row
float ewl_grid_row_relative_h_get (Ewl_Grid *g, int col)
 Get the user set relative height of a row.
void ewl_grid_row_relative_h_set (Ewl_Grid *g, int col, 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.

Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:50:01 2008