garnacho / gtk-mpx

MPX-aware GTK+

This URL has Read+Write access

gtk-mpx / tests / mpx / testphotoalbumwidget.h
100644 61 lines (46 sloc) 2.387 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* Copyright (C) 2009 Carlos Garnacho <carlosg@gnome.org>
*
* This work is provided "as is"; redistribution and modification
* in whole or in part, in any medium, physical or electronic is
* permitted without restriction.
*
* This work is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* In no event shall the authors or contributors be liable for any
* direct, indirect, incidental, special, exemplary, or consequential
* damages (including, but not limited to, procurement of substitute
* goods or services; loss of use, data, or profits; or business
* interruption) however caused and on any theory of liability, whether
* in contract, strict liability, or tort (including negligence or
* otherwise) arising in any way out of the use of this software, even
* if advised of the possibility of such damage.
*/
 
#ifndef __TEST_PHOTO_ALBUM_WIDGET_H__
#define __TEST_PHOTO_ALBUM_WIDGET_H__
 
#include <gtk/gtk.h>
 
G_BEGIN_DECLS
 
#define TEST_TYPE_PHOTO_ALBUM_WIDGET (test_photo_album_widget_get_type ())
#define TEST_PHOTO_ALBUM_WIDGET(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TEST_TYPE_PHOTO_ALBUM_WIDGET, TestPhotoAlbumWidget))
#define TEST_PHOTO_ALBUM_WIDGET_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), TEST_TYPE_PHOTO_ALBUM_WIDGET, TestPhotoAlbumWidgetClass))
#define TEST_IS_PHOTO_ALBUM_WIDGET(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TEST_TYPE_PHOTO_ALBUM_WIDGET))
#define TEST_IS_PHOTO_ALBUM_WIDGET_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), TEST_TYPE_PHOTO_ALBUM_WIDGET))
#define TEST_PHOTO_ALBUM_WIDGET_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TEST_TYPE_PHOTO_ALBUM_WIDGET, TestPhotoAlbumWidgetClass))
 
typedef struct TestPhotoAlbumWidget TestPhotoAlbumWidget;
typedef struct TestPhotoAlbumWidgetClass TestPhotoAlbumWidgetClass;
 
struct TestPhotoAlbumWidget
{
  GtkDrawingArea parent_instance;
};
 
struct TestPhotoAlbumWidgetClass
{
  GtkDrawingAreaClass parent_class;
};
 
 
GType test_photo_album_widget_get_type (void) G_GNUC_CONST;
 
GtkWidget * test_photo_album_widget_new (void);
 
void test_photo_album_widget_add_image (TestPhotoAlbumWidget *album,
                                               GdkPixbuf *pixbuf);
 
 
G_END_DECLS
 
#endif /* __TEST_PHOTO_ALBUM_WIDGET_H__ */