summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_spin_private.h
blob: a8065dc64722e1263a5f8867cce401f0662a3b96 (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
#ifndef EFL_UI_SPIN_PRIVATE_H
#define EFL_UI_SPIN_PRIVATE_H

#include "Elementary.h"

typedef enum _Efl_Ui_Spin_Format_Type
{
   SPIN_FORMAT_FLOAT,
   SPIN_FORMAT_INT,
   SPIN_FORMAT_INVALID
} Efl_Ui_Spin_Format_Type;

typedef struct _Efl_Ui_Spin_Data    Efl_Ui_Spin_Data;
struct _Efl_Ui_Spin_Data
{
   const char           *templates;
   double                val, val_min, val_max;
   double                step; /**< step for the value change. 1 by default. */
   int                   decimal_points;
   Ecore_Timer          *spin_timer; /**< a timer for a repeated spin value change on mouse down */
   Efl_Ui_Spin_Format_Type format_type;

   Efl_Ui_Format_Func_Cb format_cb;
   Eina_Free_Cb          format_free_cb;
   void                  *format_cb_data;
   Eina_Strbuf           *format_strbuf;
};

#endif