root/sweep/trunk/src/levelmeter.h

Revision 703, 1.6 kB (checked in by erikd, 2 years ago)

Replace deprecated GTK_CHECK_CLASS_CAST with G_TYPE_CHECK_CLASS_CAST.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /*
2  * Sweep, a sound wave editor.
3  *
4  * Copyright (C) 2000 Conrad Parker
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __LEVELMETER_H__
22 #define __LEVELMETER_H__
23
24 #include <gdk/gdk.h>
25 #include <gtk/gtkwidget.h>
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #define LEVELMETER(obj) GTK_CHECK_CAST(obj, levelmeter_get_type (), LevelMeter)
32 #define LEVELMETER_CLASS(klass) G_TYPE_CHECK_CLASS_CAST(klass, levelmeter_get_type (), LevelMeterClass)
33 #define IS_LEVELMETER(obj) GTK_CHECK_TYPE(obj, levelmeter_get_type())
34
35 typedef struct _LevelMeter LevelMeter;
36 typedef struct _LevelMeterClass LevelMeterClass;
37
38 struct _LevelMeter {
39   GtkWidget widget;
40
41   guint level;
42 };
43
44 struct _LevelMeterClass {
45   GtkWidgetClass parent_class;
46 };
47
48 GtkWidget *levelmeter_new(guint state);
49 GType levelmeter_get_type(void);
50 guint levelmeter_get_level(LevelMeter * levelmeter);
51 void levelmeter_set_level(LevelMeter * levelmeter, guint level);
52
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif /* __LEVELMETER_H__ */
Note: See TracBrowser for help on using the browser.