summaryrefslogblamecommitdiff
path: root/src/examples/eolian_cxx/colourable_stub.h
blob: e57d7f09b5693f10141acb2cbb852f16c4c35c4d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                 

                                                                       













                                                                                              
#ifndef EFL_EXAMPLE_EOLIAN_CXX_COLOURABLE_STUB_H
#define EFL_EXAMPLE_EOLIAN_CXX_COLOURABLE_STUB_H

#ifdef __cplusplus
extern "C" {
#endif

struct _Colourable_Data
{
   int r;
   int g;
   int b;
};
typedef struct _Colourable_Data  Colourable_Data;

Eo *_colourable_efl_object_constructor(Eo *obj, Colourable_Data *self);
void _colourable_efl_object_destructor(Eo *obj, Colourable_Data *self);
void _colourable_rgb_24bits_constructor(Eo *obj, Colourable_Data *self, int rgb);
void _colourable_print_colour(Eo *obj, Colourable_Data *self);
void _colourable_print_colour(Eo *obj, Colourable_Data *self);
int _colourable_colour_mask(Eo *obj, Colourable_Data *self, int mask);
void _colourable_composite_colour_get(Eo *obj, Colourable_Data *self, int* r, int* g, int* b);
void _colourable_composite_colour_set(Eo *obj, Colourable_Data *self, int r, int g, int b);
int _colourable_colour_get(Eo *obj, Colourable_Data *self);
void _colourable_colour_set(Eo *obj, Colourable_Data *self, int rgb);

#ifdef __cplusplus
}
#endif

#endif // EFL_EXAMPLE_EOLIAN_CXX_COLOURABLE_STUB_H