Download

Support

lib/ewl_object.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_Object
 Provides facilities for sizing, position, alignment and fill policy. More...

Defines

#define CURRENT_H(o)   ((const Ewl_Object *)(o))->current.h
#define CURRENT_W(o)   ((const Ewl_Object *)(o))->current.w
#define CURRENT_X(o)   ((const Ewl_Object *)(o))->current.x
#define CURRENT_Y(o)   ((const Ewl_Object *)(o))->current.y
#define EWL_OBJECT(object)   ((Ewl_Object *) object)
#define ewl_object_custom_h_set(o, h)
#define ewl_object_custom_size_set(o, w, h)
#define ewl_object_custom_w_set(o, w)
#define EWL_OBJECT_MAX_SIZE   (INT_MAX)
#define EWL_OBJECT_MIN_SIZE   (1)
#define INSET_BOTTOM(o)   ((const Ewl_Object *)(o))->insets.b
#define INSET_HORIZONTAL(o)   (EWL_OBJECT(o)->insets.l + EWL_OBJECT(o)->insets.r)
#define INSET_LEFT(o)   ((const Ewl_Object *)(o))->insets.l
#define INSET_RIGHT(o)   ((const Ewl_Object *)(o))->insets.r
#define INSET_TOP(o)   ((const Ewl_Object *)(o))->insets.t
#define INSET_VERTICAL(o)   (EWL_OBJECT(o)->insets.t + EWL_OBJECT(o)->insets.b)
#define MAXIMUM_H(o)   ((const Ewl_Object *)(o))->maximum.h
#define MAXIMUM_W(o)   ((const Ewl_Object *)(o))->maximum.w
#define MINIMUM_H(o)   ((const Ewl_Object *)(o))->minimum.h
#define MINIMUM_W(o)   ((const Ewl_Object *)(o))->minimum.w
#define PADDING_BOTTOM(o)   ((const Ewl_Object *)(o))->pad.b
#define PADDING_HORIZONTAL(o)   (EWL_OBJECT(o)->pad.l + EWL_OBJECT(o)->pad.r)
#define PADDING_LEFT(o)   ((const Ewl_Object *)(o))->pad.l
#define PADDING_RIGHT(o)   ((const Ewl_Object *)(o))->pad.r
#define PADDING_TOP(o)   ((const Ewl_Object *)(o))->pad.t
#define PADDING_TYPE_BOTTOM(o)   ((const Ewl_Object *)(o))->pad_type_b
#define PADDING_TYPE_LEFT(o)   ((const Ewl_Object *)(o))->pad_type_l
#define PADDING_TYPE_RIGHT(o)   ((const Ewl_Object *)(o))->pad_type_r
#define PADDING_TYPE_TOP(o)   ((const Ewl_Object *)(o))->pad_type_t
#define PADDING_VERTICAL(o)   (EWL_OBJECT(o)->pad.t + EWL_OBJECT(o)->pad.b)
#define PREFERRED_H(o)   ((const Ewl_Object *)(o))->preferred.h
#define PREFERRED_W(o)   ((const Ewl_Object *)(o))->preferred.w

Typedefs

typedef Ewl_Object Ewl_Object

Functions

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_current_geometry_get (Ewl_Object *o, int *x, int *y, int *w, int *h)
 Retrieve the size and position of object.
int ewl_object_current_h_get (Ewl_Object *o)
 Get the current height of the 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_w_get (Ewl_Object *o)
 Get the current width of the 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.
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_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.
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_h_request (Ewl_Object *o, int h)
 Request a new width for an object.
int ewl_object_init (Ewl_Object *o)
int ewl_object_insets_bottom_get (Ewl_Object *o)
 Get the bottom insets for the object.
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_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_insets_set (Ewl_Object *o, int l, int r, int t, int b)
 Set the insets around an objects edges.
int ewl_object_insets_top_get (Ewl_Object *o)
 Get the top insets for the object.
int ewl_object_maximum_h_get (Ewl_Object *o)
 Get the maximum height 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.
void ewl_object_maximum_size_set (Ewl_Object *o, int w, int h)
 Set the maximum size of an object.
int ewl_object_maximum_w_get (Ewl_Object *o)
 Get the maximum width of an object.
void ewl_object_maximum_w_set (Ewl_Object *o, int w)
 Set 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_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.
void ewl_object_minimum_size_set (Ewl_Object *o, int w, int h)
 Set the minimum size of an object.
int ewl_object_minimum_w_get (Ewl_Object *o)
 Get the minimum width of an object.
void ewl_object_minimum_w_set (Ewl_Object *o, int w)
 Set the minimum width of an object.
int ewl_object_padding_bottom_get (Ewl_Object *o)
 Get the bottom padding for the object.
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_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_padding_set (Ewl_Object *o, int l, int r, int t, int b)
 Set the padding around an objects edges.
int ewl_object_padding_top_get (Ewl_Object *o)
 Get the top padding for the object.
void ewl_object_padding_type_bottom_set (Ewl_Object *o, Ewl_Padding_Type type)
 Set the padding type for the bottom side.
void ewl_object_padding_type_left_set (Ewl_Object *o, Ewl_Padding_Type type)
 Set the padding type for the left side.
void ewl_object_padding_type_right_set (Ewl_Object *o, Ewl_Padding_Type type)
 Set the padding type for the right side.
void ewl_object_padding_type_set (Ewl_Object *o, Ewl_Padding_Type type)
 Set the padding type for all sides.
void ewl_object_padding_type_top_set (Ewl_Object *o, Ewl_Padding_Type type)
 Set the padding type for the top side.
void ewl_object_place (Ewl_Object *o, int x, int y, int w, int h)
 Assign a specific area to an object.
void ewl_object_position_request (Ewl_Object *o, int x, int y)
 Request a new position be applied to an object.
int ewl_object_preferred_h_get (Ewl_Object *o)
 Get the preferred height of the object.
int ewl_object_preferred_inner_h_get (Ewl_Object *o)
 Get the preferred height of the object.
void ewl_object_preferred_inner_h_set (Ewl_Object *o, int h)
 Set the preferred height 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_inner_size_set (Ewl_Object *o, int w, int h)
 Set the preferred size 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_w_set (Ewl_Object *o, int w)
 Set the preferred width of the object.
void ewl_object_preferred_size_get (Ewl_Object *o, int *w, int *h)
 Retrieve the preferred size of an object.
int ewl_object_preferred_w_get (Ewl_Object *o)
 Get the preferred width of the 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_w_request (Ewl_Object *o, int w)
 Request a new width for 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.

Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sun Sep 27 01:49:26 2009