1 /* gtkam-preview.h 2 * 3 * Copyright 2001,2002 Lutz Mueller <lutz@users.sf.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef __GTKAM_PREVIEW_H__ 20 #define __GTKAM_PREVIEW_H__ 21 22 #include <gtkam-camera.h> 23 #include <gtkam-dialog.h> 24 25 #define GTKAM_TYPE_PREVIEW (gtkam_preview_get_type ()) 26 #define GTKAM_PREVIEW(o) (GTK_CHECK_CAST((o),GTKAM_TYPE_PREVIEW,GtkamPreview)) 27 #define GTKAM_IS_PREVIEW(o) (GTK_CHECK_TYPE((o),GTKAM_TYPE_PREVIEW)) 28 29 typedef struct _GtkamPreview GtkamPreview; 30 typedef struct _GtkamPreviewPrivate GtkamPreviewPrivate; 31 typedef struct _GtkamPreviewClass GtkamPreviewClass; 32 33 struct _GtkamPreview 34 { 35 GtkamDialog parent; 36 37 GtkamPreviewPrivate *priv; 38 }; 39 40 typedef struct _GtkamPreviewCapturedData GtkamPreviewCapturedData; 41 struct _GtkamPreviewCapturedData { 42 GtkamCamera *camera; 43 const gchar *folder; 44 const gchar *name; 45 }; 46 47 struct _GtkamPreviewClass 48 { 49 GtkamDialogClass parent_class; 50 51 /* Signals */ 52 void (* captured) (GtkamPreview *preview, GtkamPreviewCapturedData *); 53 }; 54 55 GtkType gtkam_preview_get_type (void); 56 GtkWidget *gtkam_preview_new (GtkamCamera *camera); 57 58 void gtkam_preview_set_angle (GtkamPreview *preview, guint angle); 59 guint gtkam_preview_get_angle (GtkamPreview *preview); 60 61 #endif /* __GTKAM_PREVIEW_H__ */ 62