Objects may carry hints, so that another object that acts as a manager (see Smart Object Functions) may know how to properly position and resize its subordinate objects. More...

#define evas_obj_size_hint_min_set(w, h)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_MIN_SET), EO_TYPECHECK(Evas_Coord, w), EO_TYPECHECK(Evas_Coord, h)
 
#define evas_obj_size_hint_min_get(w, h)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_MIN_GET), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h)
 
#define evas_obj_size_hint_max_set(w, h)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_MAX_SET), EO_TYPECHECK(Evas_Coord, w), EO_TYPECHECK(Evas_Coord, h)
 
#define evas_obj_size_hint_max_get(w, h)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_MAX_GET), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h)
 
#define evas_obj_size_hint_request_set(w, h)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_REQUEST_SET), EO_TYPECHECK(Evas_Coord, w), EO_TYPECHECK(Evas_Coord, h)
 
#define evas_obj_size_hint_request_get(w, h)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_REQUEST_GET), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h)
 
#define evas_obj_size_hint_aspect_set(aspect, w, h)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_ASPECT_SET), EO_TYPECHECK(Evas_Aspect_Control, aspect), EO_TYPECHECK(Evas_Coord, w), EO_TYPECHECK(Evas_Coord, h)
 
#define evas_obj_size_hint_aspect_get(aspect, w, h)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_ASPECT_GET), EO_TYPECHECK(Evas_Aspect_Control *, aspect), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h)
 
#define evas_obj_size_hint_align_set(x, y)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_ALIGN_SET), EO_TYPECHECK(double, x), EO_TYPECHECK(double, y)
 
#define evas_obj_size_hint_align_get(x, y)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_ALIGN_GET), EO_TYPECHECK(double *, x), EO_TYPECHECK(double *, y)
 
#define evas_obj_size_hint_weight_set(x, y)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_WEIGHT_SET), EO_TYPECHECK(double, x), EO_TYPECHECK(double, y)
 
#define evas_obj_size_hint_weight_get(x, y)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_WEIGHT_GET), EO_TYPECHECK(double *, x), EO_TYPECHECK(double *, y)
 
#define evas_obj_size_hint_padding_set(l, r, t, b)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_PADDING_SET), EO_TYPECHECK(Evas_Coord, l), EO_TYPECHECK(Evas_Coord, r), EO_TYPECHECK(Evas_Coord, t), EO_TYPECHECK(Evas_Coord, b)
 
#define evas_obj_size_hint_padding_get(l, r, t, b)   EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_PADDING_GET), EO_TYPECHECK(Evas_Coord *, l), EO_TYPECHECK(Evas_Coord *, r), EO_TYPECHECK(Evas_Coord *, t), EO_TYPECHECK(Evas_Coord *, b)
 
void evas_object_size_hint_min_get (const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
 Retrieves the hints for an object's minimum size. More...
 
void evas_object_size_hint_min_set (Evas_Object *obj, Evas_Coord w, Evas_Coord h)
 Sets the hints for an object's minimum size. More...
 
void evas_object_size_hint_max_get (const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
 Retrieves the hints for an object's maximum size. More...
 
void evas_object_size_hint_max_set (Evas_Object *obj, Evas_Coord w, Evas_Coord h)
 Sets the hints for an object's maximum size. More...
 
Evas_Display_Mode evas_object_size_hint_display_mode_get (const Evas_Object *obj)
 Retrieves the hints for an object's display mode. More...
 
void evas_object_size_hint_display_mode_set (Evas_Object *obj, Evas_Display_Mode dispmode)
 Sets the hints for an object's disply mode. More...
 
void evas_object_size_hint_request_get (const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
 Retrieves the hints for an object's optimum size. More...
 
void evas_object_size_hint_request_set (Evas_Object *obj, Evas_Coord w, Evas_Coord h)
 Sets the hints for an object's optimum size. More...
 
void evas_object_size_hint_aspect_get (const Evas_Object *obj, Evas_Aspect_Control *aspect, Evas_Coord *w, Evas_Coord *h)
 Retrieves the hints for an object's aspect ratio. More...
 
void evas_object_size_hint_aspect_set (Evas_Object *obj, Evas_Aspect_Control aspect, Evas_Coord w, Evas_Coord h)
 Sets the hints for an object's aspect ratio. More...
 
void evas_object_size_hint_align_get (const Evas_Object *obj, double *x, double *y)
 Retrieves the hints for on object's alignment. More...
 
void evas_object_size_hint_align_set (Evas_Object *obj, double x, double y)
 Sets the hints for an object's alignment. More...
 
void evas_object_size_hint_weight_get (const Evas_Object *obj, double *x, double *y)
 Retrieves the hints for an object's weight. More...
 
void evas_object_size_hint_weight_set (Evas_Object *obj, double x, double y)
 Sets the hints for an object's weight. More...
 
void evas_object_size_hint_padding_get (const Evas_Object *obj, Evas_Coord *l, Evas_Coord *r, Evas_Coord *t, Evas_Coord *b)
 Retrieves the hints for an object's padding space. More...
 
void evas_object_size_hint_padding_set (Evas_Object *obj, Evas_Coord l, Evas_Coord r, Evas_Coord t, Evas_Coord b)
 Sets the hints for an object's padding space. More...
 

Detailed Description

Objects may carry hints, so that another object that acts as a manager (see Smart Object Functions) may know how to properly position and resize its subordinate objects.

The Size Hints provide a common interface that is recommended as the protocol for such information.

For example, box objects use alignment hints to align its lines/columns inside its container, padding hints to set the padding between each individual child, etc.

Examples on their usage:

Macro Definition Documentation

#define evas_obj_size_hint_min_set (   w,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_MIN_SET), EO_TYPECHECK(Evas_Coord, w), EO_TYPECHECK(Evas_Coord, h)
Since
1.8

Sets the hints for an object's minimum size.

Parameters
[in]win
[in]hin
See also
evas_object_size_hint_min_set

Referenced by evas_object_size_hint_min_set().

#define evas_obj_size_hint_min_get (   w,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_MIN_GET), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h)
Since
1.8

Retrieves the hints for an object's minimum size.

Parameters
[out]wout
[out]hout
See also
evas_object_size_hint_min_get

Referenced by evas_object_size_hint_min_get().

#define evas_obj_size_hint_max_set (   w,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_MAX_SET), EO_TYPECHECK(Evas_Coord, w), EO_TYPECHECK(Evas_Coord, h)
Since
1.8

Sets the hints for an object's maximum size.

Parameters
[in]win
[in]hin
See also
evas_object_size_hint_max_set

Referenced by evas_object_size_hint_max_set().

#define evas_obj_size_hint_max_get (   w,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_MAX_GET), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h)
Since
1.8

Retrieves the hints for an object's maximum size.

Parameters
[out]wout
[out]hout
See also
evas_object_size_hint_max_get

Referenced by evas_object_size_hint_max_get().

#define evas_obj_size_hint_request_set (   w,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_REQUEST_SET), EO_TYPECHECK(Evas_Coord, w), EO_TYPECHECK(Evas_Coord, h)
Since
1.8

Sets the hints for an object's optimum size.

Parameters
[in]win
[in]hin
See also
evas_object_size_hint_request_set

Referenced by evas_object_size_hint_request_set().

#define evas_obj_size_hint_request_get (   w,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_REQUEST_GET), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h)
Since
1.8

Retrieves the hints for an object's optimum size.

Parameters
[out]wout
[out]hout
See also
evas_object_size_hint_request_get

Referenced by evas_object_size_hint_request_get().

#define evas_obj_size_hint_aspect_set (   aspect,
  w,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_ASPECT_SET), EO_TYPECHECK(Evas_Aspect_Control, aspect), EO_TYPECHECK(Evas_Coord, w), EO_TYPECHECK(Evas_Coord, h)
Since
1.8

Sets the hints for an object's aspect ratio.

Parameters
[in]aspectin
[in]win
[in]hin
See also
evas_object_size_hint_aspect_set

Referenced by evas_object_size_hint_aspect_set().

#define evas_obj_size_hint_aspect_get (   aspect,
  w,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_ASPECT_GET), EO_TYPECHECK(Evas_Aspect_Control *, aspect), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h)
Since
1.8

Retrieves the hints for an object's aspect ratio.

Parameters
[out]aspectout
[out]wout
[out]hout
See also
evas_object_size_hint_aspect_get

Referenced by evas_object_size_hint_aspect_get().

#define evas_obj_size_hint_align_set (   x,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_ALIGN_SET), EO_TYPECHECK(double, x), EO_TYPECHECK(double, y)
Since
1.8

Sets the hints for an object's alignment.

Parameters
[in]xin
[in]yin
See also
evas_object_size_hint_align_set

Referenced by evas_object_size_hint_align_set().

#define evas_obj_size_hint_align_get (   x,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_ALIGN_GET), EO_TYPECHECK(double *, x), EO_TYPECHECK(double *, y)
Since
1.8

Retrieves the hints for on object's alignment.

Parameters
[out]xout
[out]yout
See also
evas_object_size_hint_align_get

Referenced by evas_object_size_hint_align_get().

#define evas_obj_size_hint_weight_set (   x,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_WEIGHT_SET), EO_TYPECHECK(double, x), EO_TYPECHECK(double, y)
Since
1.8

Sets the hints for an object's weight.

Parameters
[in]xin
[in]yin
See also
evas_object_size_hint_weight_set

Referenced by evas_object_size_hint_weight_set().

#define evas_obj_size_hint_weight_get (   x,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_WEIGHT_GET), EO_TYPECHECK(double *, x), EO_TYPECHECK(double *, y)
Since
1.8

Retrieves the hints for an object's weight.

Parameters
[out]xout
[out]yout
See also
evas_object_size_hint_weight_get

Referenced by evas_object_size_hint_weight_get().

#define evas_obj_size_hint_padding_set (   l,
  r,
  t,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_PADDING_SET), EO_TYPECHECK(Evas_Coord, l), EO_TYPECHECK(Evas_Coord, r), EO_TYPECHECK(Evas_Coord, t), EO_TYPECHECK(Evas_Coord, b)
Since
1.8

Sets the hints for an object's padding space.

Parameters
[in]lin
[in]rin
[in]tin
[in]bin
See also
evas_object_size_hint_padding_set

Referenced by evas_object_size_hint_padding_set().

#define evas_obj_size_hint_padding_get (   l,
  r,
  t,
 
)    EVAS_OBJ_ID(EVAS_OBJ_SUB_ID_SIZE_HINT_PADDING_GET), EO_TYPECHECK(Evas_Coord *, l), EO_TYPECHECK(Evas_Coord *, r), EO_TYPECHECK(Evas_Coord *, t), EO_TYPECHECK(Evas_Coord *, b)
Since
1.8

Retrieves the hints for an object's padding space.

Parameters
[out]lout
[out]rout
[out]tout
[out]bout
See also
evas_object_size_hint_padding_get

Referenced by evas_object_size_hint_padding_get().

Function Documentation

void evas_object_size_hint_min_get ( const Evas_Object obj,
Evas_Coord *  w,
Evas_Coord *  h 
)

Retrieves the hints for an object's minimum size.

Parameters
objThe given Evas object to query hints from.
wPointer to an integer in which to store the minimum width.
hPointer to an integer in which to store the minimum height.

These are hints on the minimum sizes obj should have. This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

Note
Use NULL pointers on the hint components you're not interested in: they'll be ignored by the function.
See also
evas_object_size_hint_min_set() for an example

References evas_obj_size_hint_min_get.

void evas_object_size_hint_min_set ( Evas_Object obj,
Evas_Coord  w,
Evas_Coord  h 
)

Sets the hints for an object's minimum size.

Parameters
objThe given Evas object to query hints from.
wInteger to use as the minimum width hint.
hInteger to use as the minimum height hint.

This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

Values 0 will be treated as unset hint components, when queried by managers.

Example:

rect, r_data->min_ptr->w, r_data->min_ptr->h);
fprintf(stdout, "Changing min. size hints for %s rect. to (%d, %d)\n",
name, r_data->min_ptr->w, r_data->min_ptr->h);
return;

In this example the minimum size hints change the behavior of an Evas box when layouting its children. See the full example.

See also
evas_object_size_hint_min_get()
Examples:
edje-box2.c, edje-table.c, ephysics_logo.c, evas-box.c, evas-hints.c, and evas-table.c.

References evas_obj_size_hint_min_set.

Referenced by edje_extern_object_min_size_set().

void evas_object_size_hint_max_get ( const Evas_Object obj,
Evas_Coord *  w,
Evas_Coord *  h 
)

Retrieves the hints for an object's maximum size.

Parameters
objThe given Evas object to query hints from.
wPointer to an integer in which to store the maximum width.
hPointer to an integer in which to store the maximum height.

These are hints on the maximum sizes obj should have. This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

Note
Use NULL pointers on the hint components you're not interested in: they'll be ignored by the function.
See also
evas_object_size_hint_max_set()
Examples:
evas-hints.c.

References evas_obj_size_hint_max_get.

void evas_object_size_hint_max_set ( Evas_Object obj,
Evas_Coord  w,
Evas_Coord  h 
)

Sets the hints for an object's maximum size.

Parameters
objThe given Evas object to query hints from.
wInteger to use as the maximum width hint.
hInteger to use as the maximum height hint.

This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

Values -1 will be treated as unset hint components, when queried by managers.

Example:

rect, r_data->max_ptr->w, r_data->max_ptr->h);
fprintf(stdout, "Changing max. size hints for %s rect. to (%d, %d)\n",
name, r_data->max_ptr->w, r_data->max_ptr->h);
return;

In this example the maximum size hints change the behavior of an Evas box when layouting its children. See the full example.

See also
evas_object_size_hint_max_get()
Examples:
ephysics_logo.c, and evas-hints.c.

References evas_obj_size_hint_max_set.

Referenced by edje_extern_object_max_size_set().

Evas_Display_Mode evas_object_size_hint_display_mode_get ( const Evas_Object obj)

Retrieves the hints for an object's display mode.

Parameters
objThe given Evas object to query hints from.

These are hints on the display mode obj. This is not a size enforcement in any way, it's just a hint that can be used whenever appropriate. This mode can be used object's display mode like commpress or expand

See also
evas_object_size_hint_display_mode_set()

References EVAS_DISPLAY_MODE_NONE.

void evas_object_size_hint_display_mode_set ( Evas_Object obj,
Evas_Display_Mode  dispmode 
)

Sets the hints for an object's disply mode.

Parameters
objThe given Evas object to query hints from.
dispmodeto use as the display mode hint.

This is not a size enforcement in any way, it's just a hint that can be used whenever appropriate.

See also
evas_object_size_hint_display_mode_get()
void evas_object_size_hint_request_get ( const Evas_Object obj,
Evas_Coord *  w,
Evas_Coord *  h 
)

Retrieves the hints for an object's optimum size.

Parameters
objThe given Evas object to query hints from.
wPointer to an integer in which to store the requested width.
hPointer to an integer in which to store the requested height.

These are hints on the optimum sizes obj should have. This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

Note
Use NULL pointers on the hint components you're not interested in: they'll be ignored by the function.
See also
evas_object_size_hint_request_set()

References evas_obj_size_hint_request_get.

void evas_object_size_hint_request_set ( Evas_Object obj,
Evas_Coord  w,
Evas_Coord  h 
)

Sets the hints for an object's optimum size.

Parameters
objThe given Evas object to query hints from.
wInteger to use as the preferred width hint.
hInteger to use as the preferred height hint.

This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

Values 0 will be treated as unset hint components, when queried by managers.

See also
evas_object_size_hint_request_get()

References evas_obj_size_hint_request_set.

void evas_object_size_hint_aspect_get ( const Evas_Object obj,
Evas_Aspect_Control aspect,
Evas_Coord *  w,
Evas_Coord *  h 
)

Retrieves the hints for an object's aspect ratio.

Parameters
objThe given Evas object to query hints from.
aspectReturns the policy/type of aspect ratio applied to obj.
wPointer to an integer in which to store the aspect's width ratio term.
hPointer to an integer in which to store the aspect's height ratio term.

The different aspect ratio policies are documented in the Evas_Aspect_Control type. A container respecting these size hints would resize its children accordingly to those policies.

For any policy, if any of the given aspect ratio terms are 0, the object's container should ignore the aspect and scale obj to occupy the whole available area. If they are both positive integers, that proportion will be respected, under each scaling policy.

These images illustrate some of the Evas_Aspect_Control policies:

any-policy.png
aspect-control-none-neither.png
aspect-control-both.png
aspect-control-horizontal.png

This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

Note
Use NULL pointers on the hint components you're not interested in: they'll be ignored by the function.

Example:

if (strcmp(ev->key, "c") == 0) /* cycle aspect control on obj */
{
Evas_Coord w, h;
evas_object_size_hint_aspect_get(d.rect, &aspect, &w, &h);
aspect = (aspect + 1) % 5;
evas_object_size_hint_aspect_set(d.rect, aspect, w, h);
fprintf(stdout, "Changing aspect control to %s\n",
_get_aspect_name(aspect));
return;
}

See the full example.

See also
evas_object_size_hint_aspect_set()
Examples:
evas-aspect-hints.c.

References EVAS_ASPECT_CONTROL_NONE, and evas_obj_size_hint_aspect_get.

void evas_object_size_hint_aspect_set ( Evas_Object obj,
Evas_Aspect_Control  aspect,
Evas_Coord  w,
Evas_Coord  h 
)

Sets the hints for an object's aspect ratio.

Parameters
objThe given Evas object to query hints from.
aspectThe policy/type of aspect ratio to apply to obj.
wInteger to use as aspect width ratio term.
hInteger to use as aspect height ratio term.

This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

If any of the given aspect ratio terms are 0, the object's container will ignore the aspect and scale obj to occupy the whole available area, for any given policy.

See also
evas_object_size_hint_aspect_get() for more information.
Examples:
evas-aspect-hints.c.

References evas_obj_size_hint_aspect_set.

Referenced by edje_extern_object_aspect_set().

void evas_object_size_hint_align_get ( const Evas_Object obj,
double *  x,
double *  y 
)

Retrieves the hints for on object's alignment.

Parameters
objThe given Evas object to query hints from.
xPointer to a double in which to store the horizontal alignment hint.
yPointer to a double in which to store the vertical alignment hint.

This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

Note
Use NULL pointers on the hint components you're not interested in: they'll be ignored by the function.
If obj is invalid, then the hint components will be set with 0.5
See also
evas_object_size_hint_align_set() for more information
Examples:
evas-hints.c.

References evas_obj_size_hint_align_get.

void evas_object_size_hint_align_set ( Evas_Object obj,
double  x,
double  y 
)

Sets the hints for an object's alignment.

Parameters
objThe given Evas object to query hints from.
xDouble, ranging from 0.0 to 1.0 or with the special value EVAS_HINT_FILL, to use as horizontal alignment hint.
yDouble, ranging from 0.0 to 1.0 or with the special value EVAS_HINT_FILL, to use as vertical alignment hint.

These are hints on how to align an object inside the boundaries of a container/manager. Accepted values are in the 0.0 to 1.0 range, with the special value EVAS_HINT_FILL used to specify "justify" or "fill" by some users. In this case, maximum size hints should be enforced with higher priority, if they are set. Also, any padding hint set on objects should add up to the alignment space on the final scene composition.

See documentation of possible users: in Evas, they are the box and table smart objects.

For the horizontal component, 0.0 means to the left, 1.0 means to the right. Analogously, for the vertical component, 0.0 to the top, 1.0 means to the bottom.

See the following figure:

alignment-hints.png

This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

Note
Default alignment hint values are 0.5, for both axis.

Example:

rect, r_data->align_ptr->x, r_data->align_ptr->y);
fprintf(stdout, "Changing align hints for %s rect. to (%f, %f)\n",
name, r_data->align_ptr->x, r_data->align_ptr->y);
return;

In this example the alignment hints change the behavior of an Evas box when layouting its children. See the full example.

See also
evas_object_size_hint_align_get()
evas_object_size_hint_max_set()
evas_object_size_hint_padding_set()
Examples:
evas-hints.c.

References evas_obj_size_hint_align_set.

void evas_object_size_hint_weight_get ( const Evas_Object obj,
double *  x,
double *  y 
)

Retrieves the hints for an object's weight.

Parameters
objThe given Evas object to query hints from.
xPointer to a double in which to store the horizontal weight.
yPointer to a double in which to store the vertical weight.

Accepted values are zero or positive values. Some users might use this hint as a boolean, but some might consider it as a proportion, see documentation of possible users, which in Evas are the box and table smart objects.

This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

Note
Use NULL pointers on the hint components you're not interested in: they'll be ignored by the function.
If obj is invalid, then the hint components will be set with 0.0
See also
evas_object_size_hint_weight_set() for an example
Examples:
evas-hints.c.

References evas_obj_size_hint_weight_get.

void evas_object_size_hint_weight_set ( Evas_Object obj,
double  x,
double  y 
)

Sets the hints for an object's weight.

Parameters
objThe given Evas object to query hints from.
xNonnegative double value to use as horizontal weight hint.
yNonnegative double value to use as vertical weight hint.

This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

This is a hint on how a container object should resize a given child within its area. Containers may adhere to the simpler logic of just expanding the child object's dimensions to fit its own (see the EVAS_HINT_EXPAND helper weight macro) or the complete one of taking each child's weight hint as real weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the weights of its children (with weight hints), distribute the space it has to layout them by those factors – most weighted children get larger in this process than the least ones.

Example:

rect, r_data->weight_ptr->x, r_data->weight_ptr->y);
fprintf(stdout, "Changing weight hints for %s rect. to (%f, %f)\n",
name, r_data->weight_ptr->x, r_data->weight_ptr->y);
return;

In this example the weight hints change the behavior of an Evas box when layouting its children. See the full example.

Note
Default weight hint values are 0.0, for both axis.
See also
evas_object_size_hint_weight_get() for more information
Examples:
edje-table.c, and evas-hints.c.

References evas_obj_size_hint_weight_set.

void evas_object_size_hint_padding_get ( const Evas_Object obj,
Evas_Coord *  l,
Evas_Coord *  r,
Evas_Coord *  t,
Evas_Coord *  b 
)

Retrieves the hints for an object's padding space.

Parameters
objThe given Evas object to query hints from.
lPointer to an integer in which to store left padding.
rPointer to an integer in which to store right padding.
tPointer to an integer in which to store top padding.
bPointer to an integer in which to store bottom padding.

Padding is extra space an object takes on each of its delimiting rectangle sides, in canvas units. This space will be rendered transparent, naturally, as in the following figure:

padding-hints.png

This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

Note
Use NULL pointers on the hint components you're not interested in: they'll be ignored by the function.

Example:

rect, r_data->padding_ptr->l, r_data->padding_ptr->r,
r_data->padding_ptr->t, r_data->padding_ptr->b);
fprintf(stdout, "Changing padding size hints for %s rect."
" to (%d, %d, %d, %d)\n",
name, r_data->padding_ptr->l, r_data->padding_ptr->r,
r_data->padding_ptr->t, r_data->padding_ptr->b);
return;

In this example the padding hints change the behavior of an Evas box when layouting its children. See the full example.

See also
evas_object_size_hint_padding_set()
Examples:
evas-hints.c.

References evas_obj_size_hint_padding_get.

void evas_object_size_hint_padding_set ( Evas_Object obj,
Evas_Coord  l,
Evas_Coord  r,
Evas_Coord  t,
Evas_Coord  b 
)

Sets the hints for an object's padding space.

Parameters
objThe given Evas object to query hints from.
lInteger to specify left padding.
rInteger to specify right padding.
tInteger to specify top padding.
bInteger to specify bottom padding.

This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.

See also
evas_object_size_hint_padding_get() for more information
Examples:
evas-hints.c.

References evas_obj_size_hint_padding_set.