2014-07-18 05:38:25 -07:00
|
|
|
#ifndef _EFL_H
|
|
|
|
#define _EFL_H
|
|
|
|
|
2014-09-12 11:56:09 -07:00
|
|
|
#if defined ( __cplusplus )
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2014-07-18 05:38:25 -07:00
|
|
|
#include <Eo.h>
|
|
|
|
|
2014-08-26 03:04:47 -07:00
|
|
|
#ifdef EAPI
|
|
|
|
# undef EAPI
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
# ifdef EFL_EFL_BUILD
|
|
|
|
# ifdef DLL_EXPORT
|
|
|
|
# define EAPI __declspec(dllexport)
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif /* ! DLL_EXPORT */
|
|
|
|
# else
|
|
|
|
# define EAPI __declspec(dllimport)
|
|
|
|
# endif /* ! EFL_EFL_BUILD */
|
|
|
|
#else
|
|
|
|
# ifdef __GNUC__
|
|
|
|
# if __GNUC__ >= 4
|
|
|
|
# define EAPI __attribute__ ((visibility("default")))
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
#endif /* ! _WIN32 */
|
|
|
|
|
2015-04-03 07:14:54 -07:00
|
|
|
/**
|
|
|
|
* Path command enum.
|
|
|
|
*
|
|
|
|
* @since 1.13
|
2015-04-03 07:23:16 -07:00
|
|
|
* @ingroup Efl_Gfx_Shape
|
2015-04-03 07:14:54 -07:00
|
|
|
*/
|
2015-04-03 07:23:16 -07:00
|
|
|
typedef enum _Efl_Gfx_Path_Command
|
2015-04-03 07:14:54 -07:00
|
|
|
{
|
2015-04-03 07:23:16 -07:00
|
|
|
EFL_GFX_PATH_COMMAND_TYPE_END = 0, /**< End of the stream of command */
|
|
|
|
EFL_GFX_PATH_COMMAND_TYPE_MOVE_TO, /**< A move command type */
|
|
|
|
EFL_GFX_PATH_COMMAND_TYPE_LINE_TO, /**< A line command type */
|
|
|
|
EFL_GFX_PATH_COMMAND_TYPE_CUBIC_TO, /**< A cubic command type */
|
|
|
|
EFL_GFX_PATH_COMMAND_TYPE_CLOSE, /**< A close command type */
|
|
|
|
EFL_GFX_PATH_COMMAND_TYPE_LAST, /**< Not a valid command, but last one according to this version header */
|
|
|
|
} Efl_Gfx_Path_Command;
|
2015-04-03 07:14:54 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Type describing dash
|
|
|
|
* @since 1.13
|
|
|
|
*/
|
2015-04-03 07:23:16 -07:00
|
|
|
typedef struct _Efl_Gfx_Dash Efl_Gfx_Dash;
|
|
|
|
struct _Efl_Gfx_Dash
|
2015-04-03 07:14:54 -07:00
|
|
|
{
|
|
|
|
double length;
|
|
|
|
double gap;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Type defining how a line end.
|
|
|
|
* @since 1.13
|
|
|
|
*/
|
2015-04-03 07:23:16 -07:00
|
|
|
typedef enum _Efl_Gfx_Cap
|
2015-04-03 07:14:54 -07:00
|
|
|
{
|
2015-04-03 07:23:16 -07:00
|
|
|
EFL_GFX_CAP_BUTT,
|
|
|
|
EFL_GFX_CAP_ROUND,
|
|
|
|
EFL_GFX_CAP_SQUARE,
|
|
|
|
EFL_GFX_CAP_LAST
|
|
|
|
} Efl_Gfx_Cap;
|
2015-04-03 07:14:54 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Type defining how join between path are drawn.
|
|
|
|
* @since 1.13
|
|
|
|
*/
|
2015-04-03 07:23:16 -07:00
|
|
|
typedef enum _Efl_Gfx_Join
|
2015-04-03 07:14:54 -07:00
|
|
|
{
|
2015-04-03 07:23:16 -07:00
|
|
|
EFL_GFX_JOIN_MITER,
|
|
|
|
EFL_GFX_JOIN_ROUND,
|
|
|
|
EFL_GFX_JOIN_BEVEL,
|
|
|
|
EFL_GFX_JOIN_LAST
|
|
|
|
} Efl_Gfx_Join;
|
2015-04-03 07:14:54 -07:00
|
|
|
|
2015-04-03 07:15:03 -07:00
|
|
|
/**
|
|
|
|
* Type defining gradient stop.
|
|
|
|
* @since 1.13
|
|
|
|
*/
|
2015-04-03 07:23:16 -07:00
|
|
|
typedef struct _Efl_Gfx_Gradient_Stop Efl_Gfx_Gradient_Stop;
|
|
|
|
struct _Efl_Gfx_Gradient_Stop
|
2015-04-03 07:15:03 -07:00
|
|
|
{
|
|
|
|
double offset;
|
|
|
|
int r;
|
|
|
|
int g;
|
|
|
|
int b;
|
|
|
|
int a;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Type defining how the gradient spread after its limit.
|
|
|
|
* @since 1.13
|
|
|
|
*/
|
2015-04-03 07:23:16 -07:00
|
|
|
typedef enum _Efl_Gfx_Gradient_Spread
|
2015-04-03 07:15:03 -07:00
|
|
|
{
|
2015-04-03 07:23:16 -07:00
|
|
|
EFL_GFX_GRADIENT_SPREAD_PAD,
|
|
|
|
EFL_GFX_GRADIENT_SPREAD_REFLECT,
|
|
|
|
EFL_GFX_GRADIENT_SPREAD_REPEAT,
|
|
|
|
EFL_GFX_GRADIENT_SPREAD_LAST
|
|
|
|
} Efl_Gfx_Gradient_Spread;
|
2015-04-03 07:15:03 -07:00
|
|
|
|
2015-02-07 04:46:12 -08:00
|
|
|
#ifdef EFL_BETA_API_SUPPORT
|
|
|
|
|
2014-07-18 05:38:25 -07:00
|
|
|
/* Interfaces */
|
2014-08-07 04:51:36 -07:00
|
|
|
#include "interfaces/efl_control.eo.h"
|
2014-07-21 03:47:23 -07:00
|
|
|
#include "interfaces/efl_file.eo.h"
|
2014-07-23 09:03:40 -07:00
|
|
|
#include "interfaces/efl_image.eo.h"
|
2014-08-06 03:55:36 -07:00
|
|
|
#include "interfaces/efl_player.eo.h"
|
2014-07-24 09:42:09 -07:00
|
|
|
#include "interfaces/efl_text.eo.h"
|
2014-07-21 03:47:23 -07:00
|
|
|
#include "interfaces/efl_text_properties.eo.h"
|
2014-07-18 05:38:25 -07:00
|
|
|
|
2015-04-03 07:23:16 -07:00
|
|
|
#include "interfaces/efl_gfx_utils.h"
|
|
|
|
|
2015-04-03 07:23:17 -07:00
|
|
|
#include "interfaces/efl_gfx_base.eo.h"
|
2015-04-03 07:23:16 -07:00
|
|
|
#include "interfaces/efl_gfx_shape.eo.h"
|
|
|
|
#include "interfaces/efl_gfx_gradient.eo.h"
|
|
|
|
#include "interfaces/efl_gfx_gradient_linear.eo.h"
|
|
|
|
#include "interfaces/efl_gfx_gradient_radial.eo.h"
|
2015-04-03 07:14:54 -07:00
|
|
|
|
2015-02-07 04:46:12 -08:00
|
|
|
#endif
|
|
|
|
|
2014-09-12 11:56:09 -07:00
|
|
|
#if defined ( __cplusplus )
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-07-18 05:38:25 -07:00
|
|
|
#endif
|