forked from enlightenment/efl
gfx_size_hint: Fix int vs. double (EO)
Thanks Sanghyeon for letting me know!
This commit is contained in:
parent
d0b8c41f92
commit
4b74ca477d
|
@ -1,9 +1,9 @@
|
||||||
import efl_gfx_types;
|
import efl_gfx_types;
|
||||||
|
|
||||||
const Efl.Gfx.Size.Hint.Expand: int = 1; [[Use with efl_gfx_size_hint_weight_set(),
|
const Efl.Gfx.Size.Hint.Expand: double = 1.0;
|
||||||
efl_gfx_size_hint_weight_get()]]
|
[[Use with $Efl.Gfx.Size.Hint.weight.]]
|
||||||
const Efl.Gfx.Size.Hint.Fill: int = -1; [[Use with efl_gfx_size_hint_align_set(),
|
const Efl.Gfx.Size.Hint.Fill: int = -1.0;
|
||||||
efl_gfx_size_hint_align_get()]]
|
[[Special value for $Efl.Gfx.Size.Hint.align.]]
|
||||||
|
|
||||||
interface Efl.Gfx.Size.Hint
|
interface Efl.Gfx.Size.Hint
|
||||||
{
|
{
|
||||||
|
@ -177,7 +177,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
|
||||||
|
@ -202,7 +202,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
|
||||||
|
@ -227,9 +227,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.]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue