Efl.Gfx.Size_Hint* (from Efl.Gfx.Size.Hint*)

Ref https://phab.enlightenment.org/T6847

Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
This commit is contained in:
Xavi Artigas 2018-04-05 14:20:21 +02:00 committed by Cedric Bail
parent 4404649ced
commit 7be849c63e
6 changed files with 30 additions and 30 deletions

View File

@ -32,7 +32,7 @@ interface Efl.Gfx.Entity {
Note that setting the actual size of an object might be the job Note that setting the actual size of an object might be the job
of its container, so this function might have no effect. of its container, so this function might have no effect.
Look at @Efl.Gfx.Size.Hint instead, when manipulating Look at @Efl.Gfx.Size_Hint instead, when manipulating
widgets. widgets.
]] ]]
} }

View File

@ -1,12 +1,12 @@
import eina_types; import eina_types;
import efl_gfx_types; import efl_gfx_types;
const Efl.Gfx.Size.Hint.Expand: double = 1.0; const Efl.Gfx.Size_Hint_Expand: double = 1.0;
[[Use with @Efl.Gfx.Size.Hint.hint_weight.]] [[Use with @Efl.Gfx.Size_Hint.hint_weight.]]
const Efl.Gfx.Size.Hint.Fill: double = -1.0; const Efl.Gfx.Size_Hint_Fill: double = -1.0;
[[Special value for @Efl.Gfx.Size.Hint.hint_align.]] [[Special value for @Efl.Gfx.Size_Hint.hint_align.]]
interface Efl.Gfx.Size.Hint interface Efl.Gfx.Size_Hint
{ {
[[Efl graphics size hint interface]] [[Efl graphics size hint interface]]
event_prefix: efl_gfx_entity; event_prefix: efl_gfx_entity;
@ -59,7 +59,7 @@ interface Efl.Gfx.Size.Hint
@image html aspect-control-horizontal.png @image html aspect-control-horizontal.png
*/ */
values { values {
mode: Efl.Gfx.Size.Hint.Aspect; [[Mode of interpretation.]] mode: Efl.Gfx.Size_Hint_Aspect; [[Mode of interpretation.]]
sz: Eina.Size2D; [[Base size to use for aspecting.]] sz: Eina.Size2D; [[Base size to use for aspecting.]]
/* FIXME: do we want min/max like Edje instead?? /* FIXME: do we want min/max like Edje instead??
@ -178,7 +178,7 @@ interface Efl.Gfx.Size.Hint
This is a hint on how a container object should resize a given This is a hint on how a container object should resize a given
child within its area. Containers may adhere to the simpler child within its area. Containers may adhere to the simpler
logic of just expanding the child object's dimensions to fit logic of just expanding the child object's dimensions to fit
its own (see the @Efl.Gfx.Size.Hint.Expand helper weight macro) or its own (see the @Efl.Gfx.Size_Hint_Expand helper weight macro) or
the complete one of taking each child's weight hint as real 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 weights to how much of its size to allocate for them in each
axis. A container is supposed to, after normalizing the axis. A container is supposed to, after normalizing the
@ -203,7 +203,7 @@ interface Efl.Gfx.Size.Hint
These are hints on how to align an object inside the These are hints on how to align an object inside the
boundaries of a container/manager. Accepted values are in boundaries of a container/manager. Accepted values are in
the 0.0 to 1.0 range, with the special value @Efl.Gfx.Size.Hint.Fill the 0.0 to 1.0 range, with the special value @Efl.Gfx.Size_Hint_Fill
used to specify "justify" or "fill" by some users. In this used to specify "justify" or "fill" by some users. In this
case, maximum size hints should be enforced with higher case, maximum size hints should be enforced with higher
priority, if they are set. Also, any padding hint set on priority, if they are set. Also, any padding hint set on
@ -228,9 +228,9 @@ interface Efl.Gfx.Size.Hint
*/ */
values { values {
x: double; [[Double, ranging from 0.0 to 1.0 or with the special value x: double; [[Double, ranging from 0.0 to 1.0 or with the special value
@Efl.Gfx.Size.Hint.Fill, to use as horizontal alignment hint.]] @Efl.Gfx.Size_Hint_Fill, to use as horizontal alignment hint.]]
y: double; [[Double, ranging from 0.0 to 1.0 or with the special value y: double; [[Double, ranging from 0.0 to 1.0 or with the special value
@Efl.Gfx.Size.Hint.Fill, to use as vertical alignment hint.]] @Efl.Gfx.Size_Hint_Fill, to use as vertical alignment hint.]]
} }
} }
} }

View File

@ -169,11 +169,11 @@ struct Efl.Gfx.Event.Render_Post
updated in the canvas.]] updated in the canvas.]]
} }
enum Efl.Gfx.Size.Hint.Aspect enum Efl.Gfx.Size_Hint_Aspect
{ {
[[Aspect types/policies for scaling size hints. [[Aspect types/policies for scaling size hints.
See also @Efl.Gfx.Size.Hint.hint_aspect. See also @Efl.Gfx.Size_Hint.hint_aspect.
]] ]]
none = 0, [[No preference on either direction of the container none = 0, [[No preference on either direction of the container

View File

@ -6,7 +6,7 @@ class Efl.Ui.Panes.Part (Efl.Ui.Layout.Part_Content)
@property hint_min_allow { @property hint_min_allow {
[[Allows the user to set size hints to be respected and ignored combined [[Allows the user to set size hints to be respected and ignored combined
with a minimum size. If this flag is set, the minimum size set by with a minimum size. If this flag is set, the minimum size set by
@Efl.Gfx.Size.Hint.hint_min.set is respected forcefully. @Efl.Gfx.Size_Hint.hint_min.set is respected forcefully.
]] ]]
values { values {
allow: bool; [[If $true minimum size is forced]] allow: bool; [[If $true minimum size is forced]]
@ -15,7 +15,7 @@ class Efl.Ui.Panes.Part (Efl.Ui.Layout.Part_Content)
@property split_ratio_min { @property split_ratio_min {
[[Controls the relative minimum size of panes widget's part. [[Controls the relative minimum size of panes widget's part.
If @Efl.Gfx.Size.Hint.hint_min.set is also used along with If @Efl.Gfx.Size_Hint.hint_min.set is also used along with
@.split_ratio_min.set, maximum value is set as minimum size to part. @.split_ratio_min.set, maximum value is set as minimum size to part.
]] ]]
values { values {

View File

@ -157,7 +157,7 @@ enum Efl.Ui.Win.Move_Resize_Mode
class Efl.Ui.Win (Efl.Ui.Widget, Efl.Canvas.Scene, Efl.Canvas.Pointer, Efl.Access.Window, class Efl.Ui.Win (Efl.Ui.Widget, Efl.Canvas.Scene, Efl.Canvas.Pointer, Efl.Access.Window,
Efl.Access.Component, Efl.Access.Widget.Action, Efl.Access.Component, Efl.Access.Widget.Action,
Efl.Content, Efl.Input.State, Efl.Input.Interface, Efl.Screen, Efl.Content, Efl.Input.State, Efl.Input.Interface, Efl.Screen,
Efl.Gfx.Size.Hint, Efl.Text, Efl.Config_Global, Efl.Part, Efl.Gfx.Size_Hint, Efl.Text, Efl.Config_Global, Efl.Part,
Efl.Ui.Focus.Manager, Efl.Ui.Focus.Manager.Window_Root) Efl.Ui.Focus.Manager, Efl.Ui.Focus.Manager.Window_Root)
{ {
[[Efl UI window class]] [[Efl UI window class]]
@ -797,11 +797,11 @@ class Efl.Ui.Win (Efl.Ui.Widget, Efl.Canvas.Scene, Efl.Canvas.Pointer, Efl.Acces
Efl.Screen.screen_dpi { get; } Efl.Screen.screen_dpi { get; }
Efl.Screen.screen_rotation { get; } Efl.Screen.screen_rotation { get; }
Efl.Screen.screen_size { get; } Efl.Screen.screen_size { get; }
Efl.Gfx.Size.Hint.hint_base { get; set; } Efl.Gfx.Size_Hint.hint_base { get; set; }
Efl.Gfx.Size.Hint.hint_step { get; set; } Efl.Gfx.Size_Hint.hint_step { get; set; }
Efl.Gfx.Size.Hint.hint_aspect { set; } Efl.Gfx.Size_Hint.hint_aspect { set; }
Efl.Gfx.Size.Hint.hint_weight { set; } Efl.Gfx.Size_Hint.hint_weight { set; }
Efl.Gfx.Size.Hint.hint_max { set; } Efl.Gfx.Size_Hint.hint_max { set; }
Efl.Text.text { get; set; } Efl.Text.text { get; set; }
Efl.Canvas.Scene.pointer_position { get; } Efl.Canvas.Scene.pointer_position { get; }
Efl.Canvas.Pointer.pointer_inside { get; } Efl.Canvas.Pointer.pointer_inside { get; }

View File

@ -2,7 +2,7 @@ import efl_text_types;
import efl_canvas_animation_types; import efl_canvas_animation_types;
abstract Efl.Canvas.Object (Efl.Object, Efl.Gfx.Entity, Efl.Gfx.Color, Efl.Gfx.Stack, Efl.Animator, abstract Efl.Canvas.Object (Efl.Object, Efl.Gfx.Entity, Efl.Gfx.Color, Efl.Gfx.Stack, Efl.Animator,
Efl.Input.Interface, Efl.Gfx.Size.Hint, Efl.Input.Interface, Efl.Gfx.Size_Hint,
Efl.Gfx.Map, Efl.Loop.Consumer, Efl.Ui.Base, Efl.Canvas.Pointer) Efl.Gfx.Map, Efl.Loop.Consumer, Efl.Ui.Base, Efl.Canvas.Pointer)
{ {
[[Efl canvas object abstract class]] [[Efl canvas object abstract class]]
@ -609,14 +609,14 @@ abstract Efl.Canvas.Object (Efl.Object, Efl.Gfx.Entity, Efl.Gfx.Color, Efl.Gfx.S
Efl.Gfx.Stack.stack_above; Efl.Gfx.Stack.stack_above;
Efl.Gfx.Stack.raise; Efl.Gfx.Stack.raise;
Efl.Gfx.Stack.lower; Efl.Gfx.Stack.lower;
Efl.Gfx.Size.Hint.hint_aspect { get; set; } Efl.Gfx.Size_Hint.hint_aspect { get; set; }
Efl.Gfx.Size.Hint.hint_align { get; set; } Efl.Gfx.Size_Hint.hint_align { get; set; }
Efl.Gfx.Size.Hint.hint_combined_min { get; } Efl.Gfx.Size_Hint.hint_combined_min { get; }
Efl.Gfx.Size.Hint.hint_restricted_min { get; set; } Efl.Gfx.Size_Hint.hint_restricted_min { get; set; }
Efl.Gfx.Size.Hint.hint_min { get; set; } Efl.Gfx.Size_Hint.hint_min { get; set; }
Efl.Gfx.Size.Hint.hint_max { get; set; } Efl.Gfx.Size_Hint.hint_max { get; set; }
Efl.Gfx.Size.Hint.hint_margin { get; set; } Efl.Gfx.Size_Hint.hint_margin { get; set; }
Efl.Gfx.Size.Hint.hint_weight { get; set; } Efl.Gfx.Size_Hint.hint_weight { get; set; }
Efl.Gfx.Entity.scale { set; get; } Efl.Gfx.Entity.scale { set; get; }
Efl.Input.Interface.seat_event_filter { get; set; } Efl.Input.Interface.seat_event_filter { get; set; }
Efl.Loop.Consumer.loop { get; } Efl.Loop.Consumer.loop { get; }