interface Efl.Gfx.Size.Hint
{
methods {
- /* FIXME prefix hint_ */
- @property base {
- set {
- [[Set the hint for an object's base size used with stepping calculation
+ @property hint_base {
+ [[Base size for objects with sizing restrictions.
- Base size + stepping is what is calculated for object sizing
- restrictions.
+ This is not a size enforcement in any way, it's just a hint
+ that should be used whenever appropriate.
- ]]
- }
- get {
- [[Get the base size of an object.
+ @.hint_base + N x @.hint_step is what is calculated for object
+ sizing restrictions.
- ]]
- }
+ See also @.hint_step.
+ ]]
values {
w: int; [[The base width.]]
h: int; [[The base height.]]
}
}
- /* FIXME prefix hint_ */
- @property step {
- set {
- [[Set the hint for an object stepping used with sizing calculation.
+ @property hint_step {
+ [[Step size for objects with sizing restrictions.
- Base size + stepping is what is calculated for object sizing
- restrictions.
+ This is not a size enforcement in any way, it's just a hint
+ that should be used whenever appropriate.
- ]]
- }
- get {
- [[Get the stepping of an object.
+ Set this to for an object to scale up by steps and not continuously.
- ]]
- }
+ @.hint_base + N x @.hint_step is what is calculated for object
+ sizing restrictions.
+ ]]
values {
w: int; [[The stepping width (0 disables).]]
h: int; [[The stepping height (0 disables).]]
}
}
- /* FIXME prefix hint_ */
- @property aspect {
+ @property hint_aspect {
[[Defines the aspect ratio to respect when scaling this object.
The aspect ratio is defined as the width / height ratio of the
]]
/*
@image html any-policy.png
- @image rtf any-policy.png
- @image latex any-policy.eps
-
@image html aspect-control-none-neither.png
- @image rtf aspect-control-none-neither.png
- @image latex aspect-control-none-neither.eps
-
@image html aspect-control-both.png
- @image rtf aspect-control-both.png
- @image latex aspect-control-both.eps
-
@image html aspect-control-horizontal.png
- @image rtf aspect-control-horizontal.png
- @image latex aspect-control-horizontal.eps
*/
values {
mode: Efl.Gfx.Size.Hint.Aspect; [[Mode of interpretation.]]
]]
/*
@image html padding-hints.png
- @image rtf padding-hints.png
- @image latex padding-hints.eps
*/
values {
l: int; [[Integer to specify left padding.]]
]]
/*
@image html alignment-hints.png
- @image rtf alignment-hints.png
- @image latex alignment-hints.eps
*/
values {
x: double; [[Double, ranging from 0.0 to 1.0 or with the special value
}
EOLIAN static void
-_efl_ui_win_efl_gfx_size_hint_aspect_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd,
- Efl_Gfx_Size_Hint_Aspect mode EINA_UNUSED, int w, int h)
+_efl_ui_win_efl_gfx_size_hint_hint_aspect_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd,
+ Efl_Gfx_Size_Hint_Aspect mode EINA_UNUSED, int w, int h)
{
pd->aspect_w = w;
pd->aspect_h = h;
}
EOLIAN static void
-_efl_ui_win_efl_gfx_size_hint_aspect_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd,
- Efl_Gfx_Size_Hint_Aspect *mode, int *w, int *h)
+_efl_ui_win_efl_gfx_size_hint_hint_aspect_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd,
+ Efl_Gfx_Size_Hint_Aspect *mode, int *w, int *h)
{
if (mode) *mode = EFL_GFX_SIZE_HINT_ASPECT_NONE;
if (w) *w = pd->aspect_w;
}
EOLIAN static void
-_efl_ui_win_efl_gfx_size_hint_base_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int w, int h)
+_efl_ui_win_efl_gfx_size_hint_hint_base_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int w, int h)
{
sd->size_base_w = w;
sd->size_base_h = h;
}
EOLIAN static void
-_efl_ui_win_efl_gfx_size_hint_base_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int *w, int *h)
+_efl_ui_win_efl_gfx_size_hint_hint_base_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int *w, int *h)
{
if (w) *w = sd->size_base_w;
if (h) *h = sd->size_base_h;
}
EOLIAN static void
-_efl_ui_win_efl_gfx_size_hint_step_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int w, int h)
+_efl_ui_win_efl_gfx_size_hint_hint_step_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int w, int h)
{
sd->size_step_w = w;
sd->size_step_h = h;
}
EOLIAN static void
-_efl_ui_win_efl_gfx_size_hint_step_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int *w, int *h)
+_efl_ui_win_efl_gfx_size_hint_hint_step_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int *w, int *h)
{
if (w) *w = sd->size_step_w;
if (h) *h = sd->size_step_h;
Efl.Screen.dpi.get;
Efl.Screen.rotation.get;
Efl.Screen.size.get;
- Efl.Gfx.Size.Hint.base.set;
- Efl.Gfx.Size.Hint.base.get;
- Efl.Gfx.Size.Hint.step.set;
- Efl.Gfx.Size.Hint.step.get;
- Efl.Gfx.Size.Hint.aspect.set;
- Efl.Gfx.Size.Hint.aspect.get;
+ Efl.Gfx.Size.Hint.hint_base.set;
+ Efl.Gfx.Size.Hint.hint_base.get;
+ Efl.Gfx.Size.Hint.hint_step.set;
+ Efl.Gfx.Size.Hint.hint_step.get;
+ Efl.Gfx.Size.Hint.hint_aspect.set;
+ Efl.Gfx.Size.Hint.hint_aspect.get;
Efl.Text.text.set;
Efl.Text.text.get;
}
Efl.Gfx.Stack.stack_above;
Efl.Gfx.Stack.raise;
Efl.Gfx.Stack.lower;
- Efl.Gfx.Size.Hint.aspect.set;
- Efl.Gfx.Size.Hint.aspect.get;
+ Efl.Gfx.Size.Hint.hint_aspect.set;
+ Efl.Gfx.Size.Hint.hint_aspect.get;
Efl.Gfx.Size.Hint.hint_align.set;
Efl.Gfx.Size.Hint.hint_align.get;
Efl.Gfx.Size.Hint.hint_content_min.set;
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_aspect_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Efl_Gfx_Size_Hint_Aspect *aspect, Evas_Coord *w, Evas_Coord *h)
+_evas_object_efl_gfx_size_hint_hint_aspect_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Efl_Gfx_Size_Hint_Aspect *aspect, Evas_Coord *w, Evas_Coord *h)
{
if ((!obj->size_hints) || obj->delete_me)
{
}
EOLIAN static void
-_evas_object_efl_gfx_size_hint_aspect_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Efl_Gfx_Size_Hint_Aspect aspect, Evas_Coord w, Evas_Coord h)
+_evas_object_efl_gfx_size_hint_hint_aspect_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Efl_Gfx_Size_Hint_Aspect aspect, Evas_Coord w, Evas_Coord h)
{
if (obj->delete_me)
return;