efl: Remove eo struct Efl.Gfx.Color

So far this was protected behind ifdef EO_API_SUPPORT. It also
was not used internally. Dropping this before the release, since
we will soon have a (hopefully) better solution to handle various
color representations.
This commit is contained in:
Jean-Philippe Andre 2016-06-28 10:52:28 +09:00
parent b543f4c896
commit d931c53919
5 changed files with 0 additions and 71 deletions

View File

@ -104,9 +104,6 @@ dist_installed_eflheaders_DATA = \
lib/efl/Efl.h
installed_eflinterfacesdir = $(includedir)/efl-@VMAJ@/interfaces
dist_installed_eflinterfaces_DATA = \
lib/efl/interfaces/efl_gfx.x
nodist_installed_eflinterfaces_DATA = \
$(efl_eolian_files_h) \
$(efl_eolian_legacy_files_h)

View File

@ -112,19 +112,6 @@ EAPI extern const Eo_Event_Description _EFL_GFX_PATH_CHANGED;
#include "interfaces/efl_gfx_filter.eo.h"
#include "interfaces/efl_gfx_size_hint.eo.h"
#define EFL_GFX_COLOR_SET(value) (value << 8)
#define EFL_GFX_COLOR16_SET(value) (value)
static inline void efl_gfx_color_type_set(Efl_Gfx_Color *color,
unsigned char r, unsigned char g,
unsigned char b, unsigned char a);
static inline void efl_gfx_color16_type_set(Efl_Gfx_Color *color,
unsigned short r, unsigned short g,
unsigned short b, unsigned short a);
#include "interfaces/efl_gfx.x"
#include "interfaces/efl_canvas.eo.h"
/* Packing & containers */

View File

@ -82,9 +82,6 @@ Efl_Model_Common.h \
Efl.h
installed_eflinterfacesdir = $(includedir)/efl-@VMAJ@/interfaces
dist_installed_eflinterfaces_DATA = \
interfaces/efl_gfx.x
nodist_installed_eflinterfaces_DATA = \
$(efl_eolian_files_h) \
$(efl_eolian_legacy_files_h)

View File

@ -1,36 +0,0 @@
#ifndef EFL_GFX_X
# define EFL_GFX_X
static inline void
efl_gfx_color_type_set(Efl_Gfx_Color *color,
unsigned char r, unsigned char g,
unsigned char b, unsigned char a)
{
color->r = EFL_GFX_COLOR_SET(r);
color->g = EFL_GFX_COLOR_SET(g);
color->b = EFL_GFX_COLOR_SET(b);
color->a = EFL_GFX_COLOR_SET(a);
color->type = EFL_GFX_COLOR_TYPE_BITS8;
}
static inline void
efl_gfx_color16_type_set(Efl_Gfx_Color *color,
unsigned short r, unsigned short g,
unsigned short b, unsigned short a)
{
color->r = EFL_GFX_COLOR16_SET(r);
color->g = EFL_GFX_COLOR16_SET(g);
color->b = EFL_GFX_COLOR16_SET(b);
color->a = EFL_GFX_COLOR16_SET(a);
color->type = EFL_GFX_COLOR_TYPE_BITS16;
}
static inline Efl_Gfx_Color_Type
efl_gfx_color_type_get(Efl_Gfx_Color *color)
{
return color->type;
}
#endif

View File

@ -26,22 +26,6 @@ enum Efl.Gfx.Render_Op {
last
}
enum Efl.Gfx.Color_Type {
bits8, [[Color is encoded in the top 8 bits of the unsigned short as a unsigned char.]]
bits16, [[Color is encoded in the 16 bits as an unsigned short.]]
last
}
struct Efl.Gfx.Color {
[[Define an RGBA color.]]
r: ushort; [[The red component.]]
g: ushort; [[The green component.]]
b: ushort; [[The blue component.]]
a: ushort; [[The alpha component.]]
type: Efl.Gfx.Color_Type; [[Defines whether the color is 8-bit or 16-bit encoded.]]
}
enum Efl.Gfx.Path.Command_Type {
[[These values determine how the points are interpreted in a stream of points.
@since 1.14