|
Data Structures |
struct | Ewl_Object |
| Provides facilities for sizing, position, alignment and fill policy. More...
|
struct | Ewl_Object |
| Provides facilities for sizing, position, alignment and fill policy. More...
|
Defines |
#define | EWL_OBJECT_MIN_SIZE (1) |
| The minimum possible size any object can receive.
|
#define | EWL_OBJECT(object) ((Ewl_Object *) object) |
| A typecast for accessing the inherited object fields.
|
#define | ewl_object_recursive_set(o, val) |
| Changes the recursive flag value to match val.
|
#define | ewl_object_recursive_get(o) |
| Retrieves the current setting of the recursive flag for o.
|
#define | ewl_object_toplevel_set(o, val) |
| Changes the top level flag value to match val.
|
#define | ewl_object_toplevel_get(o) |
| Retrieves the current setting of the top level flag for o.
|
#define | RECURSIVE(o) (EWL_OBJECT(o)->flags & EWL_FLAG_PROPERTY_RECURSIVE) |
| Used to test if a widget is recursive, aka.
|
#define | REALIZED(o) (EWL_OBJECT(o)->flags & EWL_FLAG_VISIBLE_REALIZED) |
| Used to test if a widget has been realized.
|
#define | VISIBLE(o) (EWL_OBJECT(o)->flags & EWL_FLAG_VISIBLE_SHOWN) |
| Used to test if a widget is visible.
|
#define | OBSCURED(o) (EWL_OBJECT(o)->flags & EWL_FLAG_VISIBLE_OBSCURED) |
| Used to determine if a widget is marked as obscured.
|
#define | HIDDEN(o) (!(EWL_OBJECT(o)->flags & EWL_FLAG_VISIBLE_SHOWN)) |
| Used to determine if a widget is hidden.
|
Typedefs |
typedef Ewl_Object | Ewl_Object |
| The base class inherited by all widgets.
|
Functions |
int | ewl_object_init (Ewl_Object *o) |
| Initialize the fields of an object.
|
void | ewl_object_current_geometry_get (Ewl_Object *o, int *x, int *y, int *w, int *h) |
| Retrieve the size and position of object.
|
void | ewl_object_current_size_get (Ewl_Object *o, int *w, int *h) |
| Retrieve the current size of an object.
|
int | ewl_object_current_x_get (Ewl_Object *o) |
| get the current x position of the object
|
int | ewl_object_current_y_get (Ewl_Object *o) |
| Get the current y position of the object.
|
int | ewl_object_current_w_get (Ewl_Object *o) |
| Get the current width of the object.
|
int | ewl_object_current_h_get (Ewl_Object *o) |
| Get the current height of the object.
|
void | ewl_object_preferred_inner_size_set (Ewl_Object *o, int w, int h) |
| Set the preferred size of the object.
|
void | ewl_object_preferred_inner_size_get (Ewl_Object *o, int *w, int *h) |
| Retrieve the preferred size of an object.
|
void | ewl_object_preferred_size_get (Ewl_Object *o, int *w, int *h) |
| Retrieve the preferred size of an object.
|
void | ewl_object_preferred_inner_w_set (Ewl_Object *o, int w) |
| Set the preferred width of the object.
|
int | ewl_object_preferred_w_get (Ewl_Object *o) |
| Get the preferred width of the object.
|
int | ewl_object_preferred_inner_w_get (Ewl_Object *o) |
| Get the preferred width of the object, ignoring padding and insets.
|
void | ewl_object_preferred_inner_h_set (Ewl_Object *o, int h) |
| Set the preferred height of the object.
|
int | ewl_object_preferred_inner_h_get (Ewl_Object *o) |
| Get the preferred height of the object.
|
int | ewl_object_preferred_h_get (Ewl_Object *o) |
| Get the preferred height of the object.
|
void | ewl_object_geometry_request (Ewl_Object *o, int x, int y, int w, int h) |
| Request a new geometry be applied to an object.
|
void | ewl_object_size_request (Ewl_Object *o, int w, int h) |
| Request a new size be applied to an object.
|
void | ewl_object_position_request (Ewl_Object *o, int x, int y) |
| Request a new position be applied to an object.
|
void | ewl_object_x_request (Ewl_Object *o, int x) |
| Request a new x position for an object.
|
void | ewl_object_y_request (Ewl_Object *o, int y) |
| Request a new y position for an object.
|
void | ewl_object_w_request (Ewl_Object *o, int w) |
| Request a new width for an object.
|
void | ewl_object_h_request (Ewl_Object *o, int h) |
| Request a new width for an object.
|
void | ewl_object_minimum_size_set (Ewl_Object *o, int w, int h) |
| Set the minimum size of an object.
|
void | ewl_object_minimum_w_set (Ewl_Object *o, int w) |
| Set the minimum width of an object.
|
void | ewl_object_minimum_h_set (Ewl_Object *o, int h) |
| Set the minimum height of an object.
|
void | ewl_object_minimum_size_get (Ewl_Object *o, int *w, int *h) |
| Retrieve the minimum dimensions of an object.
|
int | ewl_object_minimum_w_get (Ewl_Object *o) |
| Get the minimum width of an object.
|
int | ewl_object_minimum_h_get (Ewl_Object *o) |
| Get the minimum height of an object.
|
void | ewl_object_maximum_size_set (Ewl_Object *o, int w, int h) |
| Set the maximum size of an object.
|
void | ewl_object_maximum_w_set (Ewl_Object *o, int w) |
| Set the minimum width of an object.
|
void | ewl_object_maximum_h_set (Ewl_Object *o, int h) |
| Set the minimum height of an object.
|
void | ewl_object_maximum_size_get (Ewl_Object *o, int *w, int *h) |
| Retrieve the minimum dimensions of an object.
|
int | ewl_object_maximum_w_get (Ewl_Object *o) |
| Get the maximum width of an object.
|
int | ewl_object_maximum_h_get (Ewl_Object *o) |
| Get the maximum height of an object.
|
unsigned int | ewl_object_alignment_get (Ewl_Object *o) |
| Retrieves the current setting of the object alignment for o.
|
void | ewl_object_alignment_set (Ewl_Object *o, unsigned int align) |
| Change the alignment of the specified object.
|
void | ewl_object_place (Ewl_Object *o, int x, int y, int w, int h) |
| Assign a specific area to an object.
|
unsigned int | ewl_object_fill_policy_get (Ewl_Object *o) |
| Retrieves the current setting of the object fill policy for o.
|
void | ewl_object_fill_policy_set (Ewl_Object *o, unsigned int fill) |
| Change the fill policy of the specified object.
|
void | ewl_object_padding_set (Ewl_Object *o, int l, int r, int t, int b) |
| Set the padding around an objects edges.
|
void | ewl_object_padding_get (Ewl_Object *o, int *l, int *r, int *t, int *b) |
| Retrieve the edge padding of an object.
|
int | ewl_object_padding_top_get (Ewl_Object *o) |
| Get the top padding for the object.
|
int | ewl_object_padding_bottom_get (Ewl_Object *o) |
| Get the bottom padding for the object.
|
int | ewl_object_padding_left_get (Ewl_Object *o) |
| Get the left padding for the object.
|
int | ewl_object_padding_right_get (Ewl_Object *o) |
| Get the right padding for the object.
|
void | ewl_object_insets_set (Ewl_Object *o, int l, int r, int t, int b) |
| Set the insets around an objects edges.
|
void | ewl_object_insets_get (Ewl_Object *o, int *l, int *r, int *t, int *b) |
| Retrieve the edge insets of an object.
|
int | ewl_object_insets_top_get (Ewl_Object *o) |
| Get the top insets for the object.
|
int | ewl_object_insets_bottom_get (Ewl_Object *o) |
| Get the bottom insets for the object.
|
int | ewl_object_insets_left_get (Ewl_Object *o) |
| Get the left insets for the object.
|
int | ewl_object_insets_right_get (Ewl_Object *o) |
| Get the right insets for the object.
|
void | ewl_object_flags_add (Ewl_Object *o, unsigned int flags, unsigned int mask) |
| Add the set of flags specified in flags to o.
|
void | ewl_object_flags_remove (Ewl_Object *o, unsigned int flags, unsigned int mask) |
| Removes the set of state flags specified in flags from o.
|
unsigned int | ewl_object_flags_has (Ewl_Object *o, unsigned int flags, unsigned int mask) |
| Determines if an object has the requested flags set.
|
unsigned int | ewl_object_flags_get (Ewl_Object *o, unsigned int mask) |
| Retrieves the current setting of the object flags for o.
|