From 7cb32b5f15d99a62edb023c37939c734cadfa675 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 29 Oct 2019 18:42:04 +0100 Subject: [PATCH] efl/gfx: add Efl.Gfx.Align type Summary: this can be used to more explicitly specify that a double is intended to be a value of 0.0 to 1.0 for the purpose of aligning objects. it also avoids the need to copy and paste the same docs around everywhere Reviewers: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10554 --- src/lib/efl/interfaces/efl_gfx_types.eot | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/efl/interfaces/efl_gfx_types.eot b/src/lib/efl/interfaces/efl_gfx_types.eot index 0ca2b18..14542fb 100644 --- a/src/lib/efl/interfaces/efl_gfx_types.eot +++ b/src/lib/efl/interfaces/efl_gfx_types.eot @@ -1,5 +1,16 @@ import eina_types; +type Efl.Gfx.Align: double; [[Efl alignment type: + As a horizontal component, 0.0 means the start of the axis + in the direction that the current language reads, 1.0 means the end of the axis. + + As a vertical component, 0.0 is the top, 1.0 is the bottom. + + The default for this type is always 0.5 unless explicitly specified. + + @since 1.24 + ]] + enum @beta Efl.Gfx.Colorspace { [[Graphics colorspace type]] argb8888, [[ARGB 32 bits per pixel, high-byte is Alpha, accessed one 32bit word at a time.]] -- 2.7.4