summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_gfx_color.eo
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-12-21 14:48:41 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2017-12-22 13:29:20 +0900
commite2cb16c78b6dff0ce7d06a24447a8340aff8b1fa (patch)
tree4b8ebeb5e7b0bede38c0afec34a6691374268590 /src/lib/efl/interfaces/efl_gfx_color.eo
parent9db0ec554bf3f92c8e0c8e1733455955e2351e51 (diff)
Efl.Gfx.Color: add color_code{}
color_code allows user to pass/get the color hex string (e.g. efl_gfx_color_code_set(o, "#FFAA22CC")) Also make this interface as mixin class.
Diffstat (limited to 'src/lib/efl/interfaces/efl_gfx_color.eo')
-rw-r--r--src/lib/efl/interfaces/efl_gfx_color.eo20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_color.eo b/src/lib/efl/interfaces/efl_gfx_color.eo
index d6e06f2532..2c2dd4d858 100644
--- a/src/lib/efl/interfaces/efl_gfx_color.eo
+++ b/src/lib/efl/interfaces/efl_gfx_color.eo
@@ -1,6 +1,7 @@
1interface Efl.Gfx.Color 1mixin Efl.Gfx.Color
2{ 2{
3 [[Efl Gfx Color interface class]] 3 [[Efl Gfx Color mixin class]]
4 data: null;
4 methods { 5 methods {
5 @property color @pure_virtual { 6 @property color @pure_virtual {
6 set { 7 set {
@@ -42,5 +43,20 @@ interface Efl.Gfx.Color
42 a: int; 43 a: int;
43 } 44 }
44 } 45 }
46 @property color_code {
47 set {
48 [[Set the color of given Evas object to the given hex color code(#RRGGBBAA).
49 e.g. efl_gfx_color_code_set(obj, "#FFCCAACC");
50 ]]
51 }
52 get {
53 [[Get hex color code of given Evas object.
54 This returns a short lived hex color code string.
55 ]]
56 }
57 values {
58 colorcode: string; [[the hex color code.]]
59 }
60 }
45 } 61 }
46} 62}