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
This commit is contained in:
Mike Blumenkrantz 2019-10-29 18:42:04 +01:00 committed by Xavi Artigas
parent 7b59fec40e
commit d8ea2eb2cd
1 changed files with 11 additions and 0 deletions

View File

@ -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.]]