summaryrefslogtreecommitdiff
path: root/src/examples/elementary/performance/tools_private.h
blob: 40d6f12afc02fa6dfbe6137ac9eea772fabf1bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>

#include <Eo.h>
#include <Evas.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
#include <Elementary.h>

#define COORDRANGE 1000
#define ANGLERANGE 360
#define axiskeys "xyz"
#define pb "panel_struct"

typedef struct _Panel_Struct
{
   Evas_Object *cspX, *cspY, *cspZ;
   Evas_Object *cspangle;
   Evas_Object *lspX, *lspY, *lspZ;
   Evas_Object *lspangle;
} Panel_Struct;

typedef struct _Axis_Key
{
   float x;
   float y;
   float z;
} Axis_Key;

/*callbacks*/
static void
_camera_light_changeX_cb(void *data, Evas_Object *obj, void *event_info);
static void
_camera_light_changeY_cb(void *data, Evas_Object *obj, void *event_info);
static void
_camera_light_changeZ_cb(void *data, Evas_Object *obj, void *event_info);
static void
_camera_light_angle_change_cb(void *data, Evas_Object *obj, void *event_info);
static void
_camera_light_axisX_change_cb(void *data, Evas_Object *obj, void *event_info);
static void
_camera_light_axisY_change_cb(void *data, Evas_Object *obj, void *event_info);
static void
_camera_light_axisZ_change_cb(void *data, Evas_Object *obj, void *event_info);