1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 /* 3 * Copyright (C) 2002 CodeFactory AB 4 * Copyright (C) 2002 Richard Hult <richard@imendi.com> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of the 9 * License, or (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 GNU 14 * General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public 17 * License along with this program; if not, write to the 18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 19 * Boston, MA 02110-1301, USA. 20 */ 21 22 #ifndef __DRW_MONITOR_H__ 23 #define __DRW_MONITOR_H__ 24 25 #include <glib-object.h> 26 27 #define DRW_TYPE_MONITOR (drw_monitor_get_type ()) 28 #define DRW_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DRW_TYPE_MONITOR, DrwMonitor)) 29 #define DRW_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), DRW_TYPE_MONITOR, DrwMonitorClass)) 30 #define DRW_IS_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DRW_TYPE_MONITOR)) 31 #define DRW_IS_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DRW_TYPE_MONITOR)) 32 #define DRW_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DRW_TYPE_MONITOR, DrwMonitorClass)) 33 34 typedef struct _DrwMonitor DrwMonitor; 35 typedef struct _DrwMonitorClass DrwMonitorClass; 36 typedef struct _DrwMonitorPriv DrwMonitorPriv; 37 38 struct _DrwMonitor { 39 GObject parent; 40 41 DrwMonitorPriv *priv; 42 }; 43 44 struct _DrwMonitorClass { 45 GObjectClass parent_class; 46 }; 47 48 GType drw_monitor_get_type (void) G_GNUC_CONST; 49 DrwMonitor *drw_monitor_new (void); 50 51 #endif /* __DRW_MONITOR_H__ */ 52