1 /* 2 * Copyright (c) 2006 Jean-François Wauthy (pollux@xfce.org) 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU Library General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 */ 18 19 #ifndef __XFBURN_COMPOSITION_H__ 20 #define __XFBURN_COMPOSITION_H__ 21 22 #ifdef HAVE_CONFIG_H 23 #include <config.h> 24 #endif /* !HAVE_CONFIG_H */ 25 26 #include <gtk/gtk.h> 27 28 G_BEGIN_DECLS 29 30 #define XFBURN_TYPE_COMPOSITION (xfburn_composition_get_type ()) 31 #define XFBURN_COMPOSITION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFBURN_TYPE_COMPOSITION, XfburnComposition)) 32 #define XFBURN_IS_COMPOSITION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFBURN_TYPE_COMPOSITION)) 33 #define XFBURN_COMPOSITION_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), XFBURN_TYPE_COMPOSITION, XfburnCompositionInterface)) 34 35 typedef struct _XfburnCompositon XfburnComposition; /* dummy object */ 36 37 typedef struct { 38 GTypeInterface parent; 39 40 void (*show_custom_controls) (XfburnComposition *composition); 41 void (*hide_custom_controls) (XfburnComposition *composition); 42 43 void (*load) (XfburnComposition *composition, const gchar *file); 44 void (*save) (XfburnComposition *composition); 45 46 void (*name_changed) (XfburnComposition *composition, const gchar *name); 47 } XfburnCompositionInterface; 48 49 GType xfburn_composition_get_type (void); 50 51 void xfburn_composition_show_custom_controls (XfburnComposition *composition); 52 void xfburn_composition_hide_custom_controls (XfburnComposition *composition); 53 54 void xfburn_composition_load (XfburnComposition *composition, const gchar *file); 55 void xfburn_composition_save (XfburnComposition *composition); 56 57 G_END_DECLS 58 #endif /* __XFBURN_COMPOSITION_H__ */ 59