HACK: remove broken API

cannot correctly work
This commit is contained in:
Marcel Hollerbach 2020-04-14 02:43:52 +02:00
parent e0ce78e170
commit b14a85fd6c
5 changed files with 41 additions and 21 deletions

View File

@ -163,6 +163,31 @@ typedef Efl_Gfx_Path_Command_Type Efl_Gfx_Path_Command;
#include "interfaces/efl_gfx_stack.eo.h"
#include "interfaces/efl_gfx_fill.eo.h"
#include "interfaces/efl_gfx_view.eo.h"
/**
* @brief Set the list of commands and points to be used to create the content
* of path.
*
* @param[in] obj The object.
* @param[in] op Command list
* @param[in] points Point list
*
* @ingroup Efl_Gfx_Path
*/
EOAPI void efl_gfx_path_set(Eo *obj, const Efl_Gfx_Path_Command_Type *op, const double *points);
/**
* @brief Set the list of commands and points to be used to create the content
* of path.
*
* @param[in] obj The object.
* @param[out] op Command list
* @param[out] points Point list
*
* @ingroup Efl_Gfx_Path
*/
EOAPI void efl_gfx_path_get(const Eo *obj, const Efl_Gfx_Path_Command_Type **op, const double **points);
#include "interfaces/efl_gfx_path.eo.h"
#include "interfaces/efl_gfx_shape.eo.h"
#include "interfaces/efl_gfx_gradient.eo.h"

View File

@ -1542,4 +1542,12 @@ _efl_gfx_path_efl_object_destructor(Eo *obj, Efl_Gfx_Path_Data *pd)
efl_destructor(efl_super(obj, EFL_GFX_PATH_MIXIN));
}
EOAPI EFL_VOID_FUNC_BODYV(efl_gfx_path_set, EFL_FUNC_CALL(op, points), const Efl_Gfx_Path_Command_Type *op, const double *points);
EOAPI EFL_VOID_FUNC_BODYV_CONST(efl_gfx_path_get, EFL_FUNC_CALL(op, points), const Efl_Gfx_Path_Command_Type **op, const double **points);
#define EFL_GFX_PATH_EXTRA_OPS \
EFL_OBJECT_OP_FUNC(efl_gfx_path_set, _efl_gfx_path_path_set), \
EFL_OBJECT_OP_FUNC(efl_gfx_path_get, _efl_gfx_path_path_get),
#include "interfaces/efl_gfx_path.eo.c"

View File

@ -1,23 +1,9 @@
import eina_types;
import efl_gfx_types;
mixin @beta Efl.Gfx.Path requires Efl.Object
{
[[EFL graphics path object interface]]
methods {
@property path {
[[Set the list of commands and points to be used to create the
content of path.
]]
set {
}
get {
}
values {
op: ptr(const(Efl.Gfx.Path_Command_Type)); [[Command list]]
points: ptr(const(double)); [[Point list]]
}
}
@property length {
[[Path length property]]
get {

View File

@ -1,4 +1,5 @@
import eina_types;
import efl_gfx_types;
abstract @beta Efl.Canvas.Vg.Node extends Efl.Object
implements Efl.Gfx.Entity, Efl.Gfx.Color, Efl.Gfx.Stack, Efl.Duplicate, Efl.Gfx.Path