aboutsummaryrefslogtreecommitdiff
path: root/lib/smart_slider.h
blob: 41a6bf40a8a8ec05ebac364bdee5dee8f64df45d (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
52
53
/*
 * Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 */

#ifndef _SYNTHPOD_SMART_SLIDER_H
#define _SYNTHPOD_SMART_SLIDER_H

#include <Evas.h>

#define SMART_SLIDER_UI "/synthpod/smart_slider/ui"

Evas_Object *
smart_slider_add(Evas *e);

void
smart_slider_range_set(Evas_Object *o, float min, float max, float dflt);
void
smart_slider_range_get(Evas_Object *o, float *min, float *max, float *dflt);

void
smart_slider_value_set(Evas_Object *o, float value);
float
smart_slider_value_get(Evas_Object *o);

void
smart_slider_format_set(Evas_Object *o, const char *format);

void
smart_slider_unit_set(Evas_Object *o, const char *unit);

void
smart_slider_color_set(Evas_Object *o, int col);

void
smart_slider_integer_set(Evas_Object *o, int integer);

void
smart_slider_disabled_set(Evas_Object *o, int disabled);

#endif // _SYNTHPOD_SMART_SLIDER_H