diff options
author | Hermet Park <hermet@hermet.pe.kr> | 2016-11-09 20:06:14 +0900 |
---|---|---|
committer | Hermet Park <hermet@hermet.pe.kr> | 2016-11-09 20:07:18 +0900 |
commit | 4cd8dbf7a006a4213866d386dccd2c6909baed39 (patch) | |
tree | 188fd98bf10b193355466849aa13e1018d849d09 | |
parent | b8903b87d89e9da4064137cadc176229af3cfac1 (diff) | |
download | efl-4cd8dbf7a006a4213866d386dccd2c6909baed39.tar.gz |
efl interface: define own FILL/EXPAND values.
efl interface shouldn't rely on Evas.
-rw-r--r-- | src/lib/efl/interfaces/efl_gfx_size_hint.eo | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_size_hint.eo b/src/lib/efl/interfaces/efl_gfx_size_hint.eo index fcd3f9480f..2a6a79a7ec 100644 --- a/src/lib/efl/interfaces/efl_gfx_size_hint.eo +++ b/src/lib/efl/interfaces/efl_gfx_size_hint.eo @@ -1,5 +1,10 @@ import efl_gfx_types; +const Efl.Gfx.Size.Hint.Expand: int = 1; [[Use with efl_gfx_size_hint_weight_set(), + efl_gfx_size_hint_weight_get()]] +const Efl.Gfx.Size.Hint.Fill: int = -1; [[Use with efl_gfx_size_hint_align_set(), + efl_gfx_size_hint_align_get()]] + interface Efl.Gfx.Size.Hint { [[Efl graphics size hint interface]] @@ -190,7 +195,7 @@ interface Efl.Gfx.Size.Hint 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 + 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 weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the @@ -215,7 +220,7 @@ interface Efl.Gfx.Size.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 + 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 case, maximum size hints should be enforced with higher priority, if they are set. Also, any padding hint set on @@ -240,9 +245,9 @@ interface Efl.Gfx.Size.Hint */ values { x: double; [[Double, ranging from 0.0 to 1.0 or with the special value - #EVAS_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 - #EVAS_HINT_FILL, to use as vertical alignment hint.]] + #EFL_GFX_SIZE_HINT_FILL, to use as vertical alignment hint.]] } } @property hint_display_mode { |