2
* mx-slider.c: Slider widget
4
* Copyright 2009 Intel Corporation.
6
* This program is free software; you can redistribute it and/or modify it
7
* under the terms and conditions of the GNU Lesser General Public License,
8
* version 2.1, as published by the Free Software Foundation.
10
* This program is distributed in the hope it will be useful, but WITHOUT ANY
11
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with this program; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
19
* Written by: Damien Lespiau <damien.lespiau@intel.com>
23
#if !defined(MX_H_INSIDE) && !defined(MX_COMPILATION)
24
#error "Only <mx/mx.h> can be included directly.h"
27
#ifndef __MX_SLIDER_H__
28
#define __MX_SLIDER_H__
30
#include <glib-object.h>
31
#include <mx/mx-widget.h>
35
#define MX_TYPE_SLIDER mx_slider_get_type()
37
#define MX_SLIDER(obj) \
38
(G_TYPE_CHECK_INSTANCE_CAST ((obj), MX_TYPE_SLIDER, MxSlider))
40
#define MX_SLIDER_CLASS(klass) \
41
(G_TYPE_CHECK_CLASS_CAST ((klass), MX_TYPE_SLIDER, MxSliderClass))
43
#define MX_IS_SLIDER(obj) \
44
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), MX_TYPE_SLIDER))
46
#define MX_IS_SLIDER_CLASS(klass) \
47
(G_TYPE_CHECK_CLASS_TYPE ((klass), MX_TYPE_SLIDER))
49
#define MX_SLIDER_GET_CLASS(obj) \
50
(G_TYPE_INSTANCE_GET_CLASS ((obj), MX_TYPE_SLIDER, MxSliderClass))
52
typedef struct _MxSlider MxSlider;
53
typedef struct _MxSliderClass MxSliderClass;
54
typedef struct _MxSliderPrivate MxSliderPrivate;
59
* The contents of this structure are private and should only be accessed
60
* through the public API.
67
MxSliderPrivate *priv;
72
MxWidgetClass parent_class;
74
/* padding for future expansion */
75
void (*_padding_0) (void);
76
void (*_padding_1) (void);
77
void (*_padding_2) (void);
78
void (*_padding_3) (void);
79
void (*_padding_4) (void);
82
GType mx_slider_get_type (void) G_GNUC_CONST;
84
ClutterActor * mx_slider_new (void);
86
void mx_slider_set_value (MxSlider *bar,
88
gdouble mx_slider_get_value (MxSlider *bar);
92
#endif /* __MX_SLIDER_H__ */