efl_eolian_legacy_files = \
lib/efl/interfaces/efl_gfx_fill.eo \
lib/efl/interfaces/efl_gfx.eo \
+ lib/efl/interfaces/efl_gfx_color.eo \
lib/efl/interfaces/efl_image.eo \
lib/efl/interfaces/efl_image_animated.eo \
lib/efl/interfaces/efl_input_device.eo \
/* Graphics */
#include "interfaces/efl_gfx.eo.h"
+#include "interfaces/efl_gfx_color.eo.h"
#include "interfaces/efl_gfx_buffer.eo.h"
#include "interfaces/efl_gfx_stack.eo.h"
#include "interfaces/efl_gfx_fill.eo.h"
rect: Eina.Rect; [[The X,Y position and W,H size, in pixels.]]
}
}
- @property color {
- set {
- [[Sets the general/main color of the given Evas object to the given
- one.
-
- See also @.color.get (for an example)
-
- These color values are expected to be premultiplied by alpha.
- ]]
- }
- get {
- [[Retrieves the general/main color of the given Evas object.
-
- Retrieves the main color's RGB component (and alpha channel)
- values, which range from 0 to 255. For the alpha channel,
- which defines the object's transparency level, 0 means totally
- transparent, while 255 means opaque. These color values are
- premultiplied by the alpha value.
-
- Usually youll use this attribute for text and rectangle objects,
- where the main color is their unique one. If set for objects
- which themselves have colors, like the images one, those colors
- get modulated by this one.
-
- All newly created Evas rectangles get the default color
- values of 255 255 255 255 (opaque white).
-
- Use null pointers on the components you're not interested
- in: they'll be ignored by the function.
-
- See the full \@ref Example_Evas_Object_Manipulation "example".
- ]]
- }
- values {
- r: int; [[The red component of the given color.]]
- g: int; [[The green component of the given color.]]
- b: int; [[The blue component of the given color.]]
- a: int; [[The alpha component of the given color.]]
- }
- }
@property visible {
[[The visibility of a canvas object.
[[A simple API to apply blur effects.
Those API's might use @Efl.Gfx.Filter internally. It might be necessary to
- also specify the color of the blur with @Efl.Gfx.color.
+ also specify the color of the blur with @Efl.Gfx.Color.color.
]]
methods {
@property radius {
whether or not to use alpha channel data. A value of $true
makes it use alpha channel data, and $false makes it ignore
that data. Note that this has nothing to do with an object's
- color as manipulated by @Efl.Gfx.color.set.
+ color as manipulated by @Efl.Gfx.Color.color.set.
]]
}
get {
--- /dev/null
+interface Efl.Gfx.Color
+{
+ [[Efl Gfx Color interface class]]
+ methods {
+ @property color @pure_virtual {
+ set {
+ [[Sets the general/main color of the given Evas object to the given
+ one.
+
+ See also @.color.get (for an example)
+
+ These color values are expected to be premultiplied by alpha.
+ ]]
+ }
+ get {
+ [[Retrieves the general/main color of the given Evas object.
+
+ Retrieves the main color's RGB component (and alpha channel)
+ values, which range from 0 to 255. For the alpha channel,
+ which defines the object's transparency level, 0 means totally
+ transparent, while 255 means opaque. These color values are
+ premultiplied by the alpha value.
+
+ Usually youll use this attribute for text and rectangle objects,
+ where the main color is their unique one. If set for objects
+ which themselves have colors, like the images one, those colors
+ get modulated by this one.
+
+ All newly created Evas rectangles get the default color
+ values of 255 255 255 255 (opaque white).
+
+ Use null pointers on the components you're not interested
+ in: they'll be ignored by the function.
+
+ See the full \@ref Example_Evas_Object_Manipulation "example".
+ ]]
+ }
+ values {
+ r: int;
+ g: int;
+ b: int;
+ a: int;
+ }
+ }
+ }
+}
#include "interfaces/efl_text_markup.eo.c"
#include "interfaces/efl_gfx.eo.c"
+#include "interfaces/efl_gfx_color.eo.c"
#include "interfaces/efl_gfx_buffer.eo.c"
#include "interfaces/efl_gfx_stack.eo.c"
#include "interfaces/efl_gfx_fill.eo.c"
}
EOLIAN static void
-_efl_ui_bg_widget_efl_gfx_color_set(Eo *obj EINA_UNUSED, Efl_Ui_Bg_Widget_Data *sd, int r, int g, int b, int a)
+_efl_ui_bg_widget_efl_gfx_color_color_set(Eo *obj EINA_UNUSED, Efl_Ui_Bg_Widget_Data *sd, int r, int g, int b, int a)
{
efl_gfx_color_set(sd->rect, r, g, b, a);
}
}
EOLIAN static void
-_efl_ui_bg_widget_efl_gfx_color_get(Eo *obj, Efl_Ui_Bg_Widget_Data *sd, int *r, int *g, int *b, int *a)
+_efl_ui_bg_widget_efl_gfx_color_color_get(Eo *obj, Efl_Ui_Bg_Widget_Data *sd, int *r, int *g, int *b, int *a)
{
if (!sd->rect)
efl_gfx_color_get(efl_super(obj, MY_CLASS), r, g, b, a);
Efl.Object.constructor;
Efl.File.file { get; set; }
Efl.File.mmap { get; set; }
- Efl.Gfx.color { get; set; }
+ Efl.Gfx.Color.color { get; set; }
Efl.Image.scale_type { get; set; }
Efl.Image.Load.load_size { get; set; }
}
}
EOLIAN static void
-_efl_ui_image_efl_gfx_color_set(Eo *obj, Efl_Ui_Image_Data *sd, int r, int g, int b, int a)
+_efl_ui_image_efl_gfx_color_color_set(Eo *obj, Efl_Ui_Image_Data *sd, int r, int g, int b, int a)
{
if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_COLOR_SET, 0, r, g, b, a))
return;
}
class Efl.Ui.Image (Elm.Widget, Efl.Ui.Clickable, Efl.Ui.Draggable,
- Efl.File, Efl.Image, Efl.Image.Load, Efl.Player, Efl.Gfx.View,
- Efl.Access.Image, Efl.Access.Widget.Action,
+ Efl.File, Efl.Image, Efl.Image.Load, Efl.Player, Efl.Gfx.View,
+ Efl.Access.Image, Efl.Access.Widget.Action, Efl.Gfx.Color,
Efl.Orientation, Efl.Flipable,
Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Layout.Calc,
Efl.Layout.Group, Efl.Layout.Signal)
Efl.Object.constructor;
Efl.File.file { get; set; }
Efl.File.mmap { set; }
- Efl.Gfx.color { set; }
+ Efl.Gfx.Color.color { set; }
Efl.Gfx.visible { set; }
Efl.Gfx.position { set; }
Efl.Gfx.size { set; }
-class Efl.Ui.Widget.Part_Bg (Efl.Ui.Widget.Part, Efl.Ui.Bg)
+class Efl.Ui.Widget.Part_Bg (Efl.Ui.Widget.Part, Efl.Gfx.Color, Efl.Ui.Bg)
{
[[Elementary widget internal part background class]]
data: null;
implements {
Efl.File.file { get; set; }
//Efl.File.mmap { get; set; }
- Efl.Gfx.color { set; get; }
+ Efl.Gfx.Color.color { set; get; }
Efl.Image.scale_type { get; set; }
}
}
-class Efl.Ui.Widget.Part_Shadow (Efl.Ui.Widget.Part, Efl.Gfx,
+class Efl.Ui.Widget.Part_Shadow (Efl.Ui.Widget.Part, Efl.Gfx, Efl.Gfx.Color,
Efl.Gfx.Blur, Efl.Gfx.Filter)
{
[[A drop-shadow or glow effect around any widget.
]]
data: null;
implements {
- Efl.Gfx.color { set; get; }
+ Efl.Gfx.Color.color { set; get; }
Efl.Gfx.Blur.radius { set; get; }
Efl.Gfx.Blur.offset { set; get; }
Efl.Gfx.Blur.grow { set; get; }
/* Efl.Part begin */
static void
-_efl_ui_win_part_efl_gfx_color_set(Eo *obj, void *_pd EINA_UNUSED, int r, int g, int b, int a)
+_efl_ui_win_part_efl_gfx_color_color_set(Eo *obj, void *_pd EINA_UNUSED, int r, int g, int b, int a)
{
Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
Efl_Ui_Win_Data *sd = efl_data_scope_get(pd->obj, MY_CLASS);
}
static void
-_efl_ui_win_part_efl_gfx_color_get(Eo *obj, void *_pd EINA_UNUSED, int *r, int *g, int *b, int *a)
+_efl_ui_win_part_efl_gfx_color_color_get(Eo *obj, void *_pd EINA_UNUSED, int *r, int *g, int *b, int *a)
{
Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
Efl_Ui_Win_Data *sd = efl_data_scope_get(pd->obj, MY_CLASS);
-class Efl.Ui.Win.Part (Efl.Ui.Widget.Part, Efl.Content, Efl.Gfx, Efl.File)
+class Efl.Ui.Win.Part (Efl.Ui.Widget.Part, Efl.Content, Efl.Gfx, Efl.Gfx.Color,
+ Efl.File)
{
[[Efl UI window interal part class]]
data: null;
implements {
Efl.Content.content { get; set; }
Efl.Content.content_unset;
- Efl.Gfx.color { get; set; }
+ Efl.Gfx.Color.color { get; set; }
Efl.File.file { get; set; }
}
}
}
EOLIAN static void
-_elm_widget_efl_gfx_color_set(Eo *obj, Elm_Widget_Smart_Data *pd, int r, int g, int b, int a)
+_elm_widget_efl_gfx_color_color_set(Eo *obj, Elm_Widget_Smart_Data *pd, int r, int g, int b, int a)
{
Eina_Iterator *it;
Evas_Object *o;
}
EOLIAN static void
-_efl_ui_widget_part_shadow_efl_gfx_color_set(Eo *obj, void *_pd EINA_UNUSED, int r, int g, int b, int a)
+_efl_ui_widget_part_shadow_efl_gfx_color_color_set(Eo *obj, void *_pd EINA_UNUSED, int r, int g, int b, int a)
{
Widget_Shadow *shadow = _widget_shadow_part_get(obj);
shadow->props.r = r;
}
EOLIAN static void
-_efl_ui_widget_part_shadow_efl_gfx_color_get(Eo *obj, void *_pd EINA_UNUSED, int *r, int *g, int *b, int *a)
+_efl_ui_widget_part_shadow_efl_gfx_color_color_get(Eo *obj, void *_pd EINA_UNUSED, int *r, int *g, int *b, int *a)
{
Widget_Shadow *shadow = _widget_shadow_part_get(obj);
if (r) *r = shadow->props.r;
}
EOLIAN static void
-_efl_ui_widget_part_bg_efl_gfx_color_set(Eo *obj, void *pd EINA_UNUSED, int r, int g, int b, int a)
+_efl_ui_widget_part_bg_efl_gfx_color_color_set(Eo *obj, void *pd EINA_UNUSED, int r, int g, int b, int a)
{
Evas_Object *bg_obj = efl_ui_widget_part_bg_get(obj);
}
EOLIAN static void
-_efl_ui_widget_part_bg_efl_gfx_color_get(Eo *obj, void *pd EINA_UNUSED, int *r, int *g, int *b, int *a)
+_efl_ui_widget_part_bg_efl_gfx_color_color_get(Eo *obj, void *pd EINA_UNUSED, int *r, int *g, int *b, int *a)
{
Evas_Object *bg_obj = efl_ui_widget_part_bg_get(obj);
Efl.Object.destructor;
Efl.Object.provider_find;
Efl.Object.debug_name_override;
- Efl.Gfx.color { set; }
+ Efl.Gfx.Color.color { set; }
Efl.Gfx.visible { set; }
Efl.Gfx.position { set; }
Efl.Gfx.size { set; }
Efl.Object.constructor;
Efl.Object.destructor;
Efl.Object.debug_name_override;
- Efl.Gfx.color { set; }
+ Efl.Gfx.Color.color { set; }
Efl.Gfx.visible { set; }
Efl.Gfx.position { set; }
Efl.Canvas.Object.clip { set; }
import efl_text_types;
import efl_animation_types;
-abstract Efl.Canvas.Object (Efl.Object, Efl.Gfx, Efl.Gfx.Stack, Efl.Animator,
+abstract Efl.Canvas.Object (Efl.Object, Efl.Gfx, Efl.Gfx.Color, Efl.Gfx.Stack, Efl.Animator,
Efl.Input.Interface, Efl.Gfx.Size.Hint,
Efl.Gfx.Map, Efl.Loop.Consumer, Efl.Ui.Base, Efl.Canvas.Pointer)
{
Efl.Object.del;
Efl.Object.debug_name_override;
Efl.Gfx.visible { get; set; }
- Efl.Gfx.color { get; set; }
+ Efl.Gfx.Color.color { get; set; }
Efl.Gfx.geometry { get; set; }
Efl.Gfx.position { get; set; }
Efl.Gfx.size { get; set; }
import eina_types;
-abstract Efl.VG (Efl.Object, Efl.Gfx, Efl.Gfx.Stack, Efl.Duplicate)
+abstract Efl.VG (Efl.Object, Efl.Gfx, Efl.Gfx.Color, Efl.Gfx.Stack, Efl.Duplicate)
{
[[Efl vector graphics abstract class]]
eo_prefix: efl_vg;
Efl.Object.constructor;
Efl.Object.destructor;
Efl.Gfx.visible { get; set; }
- Efl.Gfx.color { get; set; }
+ Efl.Gfx.Color.color { get; set; }
Efl.Gfx.size { get; }
Efl.Gfx.position { get; set; }
Efl.Gfx.geometry { get; }
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_color_set(Eo *eo_obj, Evas_Object_Protected_Data *obj,
+_efl_canvas_object_efl_gfx_color_color_set(Eo *eo_obj, Evas_Object_Protected_Data *obj,
int r, int g, int b, int a)
{
int prev_a;
}
EOLIAN static void
-_efl_canvas_object_efl_gfx_color_get(Eo *eo_obj EINA_UNUSED,
+_efl_canvas_object_efl_gfx_color_color_get(Eo *eo_obj EINA_UNUSED,
Evas_Object_Protected_Data *obj,
int *r, int *g, int *b, int *a)
{
}
EOLIAN static void
-_efl_canvas_group_efl_gfx_color_set(Eo *eo_obj, Evas_Smart_Data *o, int r, int g, int b, int a)
+_efl_canvas_group_efl_gfx_color_color_set(Eo *eo_obj, Evas_Smart_Data *o, int r, int g, int b, int a)
{
if (_evas_object_intercept_call(eo_obj, EVAS_OBJECT_INTERCEPT_CB_COLOR_SET, 0, r, g, b, a))
return;
}
static void
-_efl_vg_efl_gfx_color_set(Eo *obj EINA_UNUSED,
+_efl_vg_efl_gfx_color_color_set(Eo *obj EINA_UNUSED,
Efl_VG_Data *pd,
int r, int g, int b, int a)
{
}
static void
-_efl_vg_efl_gfx_color_get(Eo *obj EINA_UNUSED,
+_efl_vg_efl_gfx_color_color_get(Eo *obj EINA_UNUSED,
Efl_VG_Data *pd,
int *r, int *g, int *b, int *a)
{