Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Related Pages

Object: Basic Object Inherited by Ewl_Widget

Defines the Ewl_Object class along with methods and macros related to it. More...

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.


Detailed Description

Defines the Ewl_Object class along with methods and macros related to it.


Define Documentation

#define ewl_object_recursive_get  ) 
 

Value:

(ewl_object_flags_get(o, EWL_FLAGS_PROPERTY_MASK) & \ EWL_FLAG_PROPERTY_RECURSIVE)
Retrieves the current setting of the recursive flag for o.

Parameters:
o: the parameter to retrieve the current value of recursive flag
Returns:
Returns the current setting of the recursive flag for o.

#define ewl_object_recursive_set o,
val   ) 
 

Value:

(val ? ewl_object_flags_add(o, EWL_FLAG_PROPERTY_RECURSIVE, \ EWL_FLAGS_PROPERTY_MASK) : \ ewl_object_flags_remove(o, EWL_FLAG_PROPERTY_RECURSIVE, \ EWL_FLAGS_PROPERTY_MASK));
Changes the recursive flag value to match val.

Parameters:
o: the object to change the recursive flag
val: a boolean indicating the value of the recursive flag
Returns:
Returns no value.

#define ewl_object_toplevel_get  ) 
 

Value:

(ewl_object_flags_get(o, EWL_FLAGS_PROPERTY_MASK) & \ EWL_FLAG_PROPERTY_TOPLEVEL)
Retrieves the current setting of the top level flag for o.

Parameters:
o: the parameter to retrieve the current value of top level flag
Returns:
Returns the current setting of the top level flag for o.

#define ewl_object_toplevel_set o,
val   ) 
 

Value:

(val ? ewl_object_flags_add(o, EWL_FLAG_PROPERTY_TOPLEVEL, \ EWL_FLAGS_PROPERTY_MASK) : \ ewl_object_flags_remove(o, EWL_FLAG_PROPERTY_RECURSIVE, \ EWL_FLAGS_PROPERTY_MASK));
Changes the top level flag value to match val.

Parameters:
o: the object to change the top level flag
val: a boolean indicating the value of the top level flag
Returns:
Returns no value.

#define RECURSIVE  )     (EWL_OBJECT(o)->flags & EWL_FLAG_PROPERTY_RECURSIVE)
 

Used to test if a widget is recursive, aka.

an Ewl_Container


Typedef Documentation

typedef struct Ewl_Object Ewl_Object
 

The base class inherited by all widgets.

Provides methods for size and position.


Function Documentation

unsigned int ewl_object_alignment_get Ewl_Object o  ) 
 

Retrieves the current setting of the object alignment for o.

Parameters:
o: the parameter to retrieve the current value of object alignment
Returns:
Returns the current setting of the object alignment for o.

void ewl_object_alignment_set Ewl_Object o,
unsigned int  align
[inline]
 

Change the alignment of the specified object.

Parameters:
o: the object to change alignment
align: the new alignment for the object
Returns:
Returns no value.
Stores the new alignment value into the object for use when laying out the 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.

Parameters:
o: the object to retrieve size and position
x: a pointer to the integer to store the x coordinate
y: a pointer to the integer to store the y coordinate
w: a pointer to the integer to store the width
h: a pointer to the integer to store the height
Returns:
Returns no value.
Examines o and stores it's size and position into the integers pointed to by the parameters x, y, w, and h.

int ewl_object_current_h_get Ewl_Object o  ) 
 

Get the current height of the object.

Parameters:
o: the object to retrieve the current height
Returns:
Returns 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.

Parameters:
o: the object to retrieve size information
w: a pointer to the integer to store the width of the object
h: a pointer to the integer to store the height of the object
Returns:
Returns no value.
Stores the width and height of the object into w and h respectively.

int ewl_object_current_w_get Ewl_Object o  ) 
 

Get the current width of the object.

Parameters:
o: the object to retrieve the current width
Returns:
Returns the current width of the object.

int ewl_object_current_x_get Ewl_Object o  ) 
 

get the current x position of the object

Parameters:
o: the object to retrieve the current x position
Returns:
Returns the current x position of the object o.

int ewl_object_current_y_get Ewl_Object o  ) 
 

Get the current y position of the object.

Parameters:
o: the object to retrieve the current y position
Returns:
Returns 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.

Parameters:
o: the parameter to retrieve the current value of object fill policy
Returns:
Returns the current setting of the object fill policy for o.

void ewl_object_fill_policy_set Ewl_Object o,
unsigned int  fill
[inline]
 

Change the fill policy of the specified object.

Parameters:
o: the object to change fill policy
fill: the new fill policy for the object
Returns:
Returns no value.
Stores the new fill policy value into the object for use when laying out 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.

Parameters:
o: the object to set the specified object flags
flags: a bitmask of new flags to be set in the object
mask: a bitmask limiting added flags to a certain set
Returns:
Returns no value.

unsigned int ewl_object_flags_get Ewl_Object o,
unsigned int  mask
 

Retrieves the current setting of the object flags for o.

Parameters:
o: the parameter to retrieve the current value of object flags
mask: get only the flags specified in mask
Returns:
Returns the current setting of the object flags for 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.

Parameters:
o: the object to check for a specified flags
flags: the bitmask of flags to check on the object
mask: get only the flags specified in mask
Returns:
Returns TRUE if the specified flags are set, FALSE otherwise.

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.

Parameters:
o: the object to remove specified state flags
flags: a bitmask of flags to be removed from the object
mask: a bitmask limiting removed flags to a certain set
Returns:
Returns no value.

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.

Parameters:
o: the object to request a new size
x: the x coordinate to request be applied to the object
y: the y coordinate to request be applied to the object
w: the width to request be applied to the object
h: the height to request be applied to the object
Returns:
Returns no value.
The given geometry is requested to be applied to the object. This is the usual method for requesting a new geometry for an object.

void ewl_object_h_request Ewl_Object o,
int  h
 

Request a new width for an object.

Parameters:
o: the object to request a new height
h: the new height to be applied to the object
Returns:
Returns no value.
The given height is stored to be applied to the object o at a later time.

int ewl_object_init Ewl_Object o  ) 
 

Initialize the fields of an object.

Parameters:
o: the object to initialize
Returns:
Returns no value.
Sets all of the fields of the object o to their default values. NEVER, EVER inherit directly from this class, inherit from the widget instead. The separation is really just a convenience factor, a Widget really is the lowest common class.

int ewl_object_insets_bottom_get Ewl_Object o  ) 
 

Get the bottom insets for the object.

Parameters:
o: the ewl object to retrieve the bottom insets
Returns:
Returns 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.

Parameters:
o: the object to retrieve insets
l: a pointer to an integer that receives the insets of the left side
r: a pointer to an integer that receives the insets of the right side
t: a pointer to an integer that receives the insets of the top side
b: a pointer to an integer that receives the insets of the bottom side
Returns:
Returns no value.
Stores the edge insets of the object o into the integer pointer parameters passed in.

int ewl_object_insets_left_get Ewl_Object o  ) 
 

Get the left insets for the object.

Parameters:
o: the ewl object to retrieve the left insets
Returns:
Returns the left insets for the object.

int ewl_object_insets_right_get Ewl_Object o  ) 
 

Get the right insets for the object.

Parameters:
o: the ewl object to retrieve the right insets
Returns:
Returns 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.

Parameters:
o: the object to change the insets
l: the new insets along the left side of the object
r: the new insets along the right side of the object
t: the new insets along the top side of the object
b: the new insets along the bottom side of the object
Returns:
Returns no value.
Stores the values of l, r, t and b into the object to be used for distancing it's edges from other widgets when laying out.

int ewl_object_insets_top_get Ewl_Object o  ) 
 

Get the top insets for the object.

Parameters:
o: the ewl object to retrieve the top insets
Returns:
Returns the top insets for the object.

int ewl_object_maximum_h_get Ewl_Object o  )  [inline]
 

Get the maximum height of an object.

Parameters:
o: the object to get the maximum height
Returns:
Returns the maximum height of the object.

void ewl_object_maximum_h_set Ewl_Object o,
int  h
[inline]
 

Set the minimum height of an object.

Parameters:
o: the object to change the maximum height
h: the new maximum height
Returns:
Returns no value.
Sets the maximum height of the object o to h. If the current height or minimum width are less than the new maximum, they are set to the new maximum height.

void ewl_object_maximum_size_get Ewl_Object o,
int *  w,
int *  h
 

Retrieve the minimum dimensions of an object.

Parameters:
o: the object to retrieve the maximum dimensions
w: a pointer to an integer to store the maximum width
h: a pointer to an integer to store the maximum height
Returns:
Returns no value.
Stores the maximum height and width of the object into the integers pointed to by w and h respectively.

void ewl_object_maximum_size_set Ewl_Object o,
int  w,
int  h
 

Set the maximum size of an object.

Parameters:
o: the object to change the maximum size
w: the new maximum width
h: the new maximum height
Returns:
Returns no value.
Sets the maximum size of the object o to w x h. If the current size or minimum size are less than the new maximum, they are set to the new maximum size.

int ewl_object_maximum_w_get Ewl_Object o  )  [inline]
 

Get the maximum width of an object.

Parameters:
o: the object to get the maximum width
Returns:
Returns the maximum width of the object.

void ewl_object_maximum_w_set Ewl_Object o,
int  w
[inline]
 

Set the minimum width of an object.

Parameters:
o: the object to change the maximum width
w: the new maximum width
Returns:
Returns no value.
Sets the maximum width of the object o to w. If the current width or minimum width are less than the new maximum, they are set to the new maximum width.

int ewl_object_minimum_h_get Ewl_Object o  )  [inline]
 

Get the minimum height of an object.

Parameters:
o: the object to get the minimum height
Returns:
Returns the minimum height of the object.

void ewl_object_minimum_h_set Ewl_Object o,
int  h
[inline]
 

Set the minimum height of an object.

Parameters:
o: the object to change the minimum height
h: the new minimum height
Returns:
Returns no value. Sets the minimum height of the object o to h. If the current height or maximum height are less than the new minimum, they are set to the new minimum height.

void ewl_object_minimum_size_get Ewl_Object o,
int *  w,
int *  h
 

Retrieve the minimum dimensions of an object.

Parameters:
o: the object to retrieve the minimum dimensions
w: a pointer to an integer to store the minimum width
h: a pointer to an integer to store the minimum height
Returns:
Returns no value.
Stores the minimum height and width of object o into the integers pointed to by w and h respectively.

void ewl_object_minimum_size_set Ewl_Object o,
int  w,
int  h
 

Set the minimum size of an object.

Parameters:
o: the object to change the minimum size
w: the new minimum width
h: the new minimum height
Returns:
Returns no value.
Sets the minimum size of the object o to w x h. If the current size or maximum size are less than the new minimum, they are set to the new minimum size.

int ewl_object_minimum_w_get Ewl_Object o  )  [inline]
 

Get the minimum width of an object.

Parameters:
o: the object to get the minimum width
Returns:
Returns the minimum width of the object o.

void ewl_object_minimum_w_set Ewl_Object o,
int  w
[inline]
 

Set the minimum width of an object.

Parameters:
o: the object to change the minimum width
w: the new minimum width
Returns:
Returns no value.
Sets the minimum width of the object o to w. If the current width or maximum width are less than the new minimum, they are set to the new minimum width.

int ewl_object_padding_bottom_get Ewl_Object o  ) 
 

Get the bottom padding for the object.

Parameters:
o: the ewl object to retrieve the bottom padding
Returns:
Returns 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.

Parameters:
o: the object to retrieve padding
l: a pointer to an integer that receives padding of the left side
r: a pointer to an integer that receives padding of the right side
t: a pointer to an integer that receives padding of the top side
b: a pointer to an integer that receives padding of the bottom side
Returns:
Returns no value.
Stores the edge padding of the object o into the integer pointer parameters passed in.

int ewl_object_padding_left_get Ewl_Object o  ) 
 

Get the left padding for the object.

Parameters:
o: the ewl object to retrieve the left padding
Returns:
Returns the left padding for the object.

int ewl_object_padding_right_get Ewl_Object o  ) 
 

Get the right padding for the object.

Parameters:
o: the ewl object to retrieve the right padding
Returns:
Returns 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.

Parameters:
o: the object to change the padding
l: the new padding along the left side of the object
r: the new padding along the right side of the object
t: the new padding along the top side of the object
b: the new padding along the bottom side of the object
Returns:
Returns no value.
Stores the values of l, r, t and b into the object to be used for distancing it's edges from other widgets when laying out.

int ewl_object_padding_top_get Ewl_Object o  ) 
 

Get the top padding for the object.

Parameters:
o: the ewl object to retrieve the top padding
Returns:
Returns the top padding for the object.

void ewl_object_place Ewl_Object o,
int  x,
int  y,
int  w,
int  h
 

Assign a specific area to an object.

Parameters:
o: the object to place
x: the x coordinate of the available area
y: the y coordinate of the available area
w: the width of the available area
h: the height of the available area
Returns:
Returns no value.
Attempts to fill the object to the specified area, aligns the object within that area.

void ewl_object_position_request Ewl_Object o,
int  x,
int  y
 

Request a new position be applied to an object.

Parameters:
o: the object to request a new size
x: the x coordinate to request be applied to the object
y: the y coordinate to request be applied to the object
Returns:
Returns no value.
The given position is requested to be applied to the object o at a later time. This is the usual method for requesting a new position for an object.

int ewl_object_preferred_h_get Ewl_Object o  ) 
 

Get the preferred height of the object.

Parameters:
o: the object to retrieve the preferred height
Returns:
Returns the preferred height of the object.

int ewl_object_preferred_inner_h_get Ewl_Object o  ) 
 

Get the preferred height of the object.

Parameters:
o: the object to retrieve the preferred height
Returns:
Returns 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.

Parameters:
o: the object to change preferred height
h: the value to use as the preferred height
Returns:
Returns no value.
Sets the preferred of o height to w or as close as possible according to the bounds.

void ewl_object_preferred_inner_size_get Ewl_Object o,
int *  w,
int *  h
 

Retrieve the preferred size of an object.

Parameters:
o: the object to retrieve size information
w: a pointer to the integer to store the width of the object
h: a pointer to the integer to store the height of the object
Returns:
Returns no value.
Stores the width and height of object o into w and h respectively, without the insets and padding added.

void ewl_object_preferred_inner_size_set Ewl_Object o,
int  w,
int  h
 

Set the preferred size of the object.

Parameters:
o: the object to change size
w: the new width of the object
h: the new height of the object
Returns:
Returns no value.
The dimensions of the object o are set to the values of the parameters w, and h unless these values are greater than the objects maximum value or smaller than the objects minimum value. If they are outside these bounds, the size is not altered.

int ewl_object_preferred_inner_w_get Ewl_Object o  ) 
 

Get the preferred width of the object, ignoring padding and insets.

Parameters:
o: the object to retrieve the preferred width
Returns:
Returns the preferred width of the object o.

void ewl_object_preferred_inner_w_set Ewl_Object o,
int  w
 

Set the preferred width of the object.

Parameters:
o: the object to change preferred width
w: the value to use as the preferred width
Returns:
Returns no value.
Sets the preferred of o width to w or as close as possible according to the bounds.

void ewl_object_preferred_size_get Ewl_Object o,
int *  w,
int *  h
 

Retrieve the preferred size of an object.

Parameters:
o: the object to retrieve size information
w: a pointer to the integer to store the width of the object
h: a pointer to the integer to store the height of the object
Returns:
Returns no value.
Stores the width and height of object o into w and h respectively.

int ewl_object_preferred_w_get Ewl_Object o  ) 
 

Get the preferred width of the object.

Parameters:
o: the object to retrieve the preferred width
Returns:
Returns the preferred width of the object o.

void ewl_object_size_request Ewl_Object o,
int  w,
int  h
 

Request a new size be applied to an object.

Parameters:
o: the object to request a new size
w: the width to request be applied to the object
h: the height to request be applied to the object
Returns:
Returns no value.
The given size is requested to be applied to the object o at a later time. This is the usual method for requesting a new size for an object.

void ewl_object_w_request Ewl_Object o,
int  w
 

Request a new width for an object.

Parameters:
o: the object to request a new width
w: the new width to be applied to the object
Returns:
Returns no value.
The given width is stored to be applied to the object o at a later time.

void ewl_object_x_request Ewl_Object o,
int  x
[inline]
 

Request a new x position for an object.

Parameters:
o: the object to request a new x position
x: the new x coordinate to be applied to the object
Returns:
Returns no value.
The given x coordinate is stored to be applied to the object o at a later time.

void ewl_object_y_request Ewl_Object o,
int  y
[inline]
 

Request a new y position for an object.

Parameters:
o: the object to request a new y position
y: the new y coordinate to be applied to the object
Returns:
Returns no value.
The given y coordinate is stored to be applied to the object o at a later time.