File: screem-view.h

package info (click to toggle)
screem 0.12.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,728 kB
  • ctags: 8,333
  • sloc: ansic: 98,234; sh: 8,278; xml: 2,278; makefile: 1,054
file content (53 lines) | stat: -rw-r--r-- 1,379 bytes parent folder | download
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
#ifndef SCREEM_VIEW_H
#define SCREEM_VIEW_H

#include <gtk/gtkbin.h>

#define SCREEM_TYPE_VIEW  (screem_view_get_type())
#define SCREEM_VIEW(obj)  (G_TYPE_CHECK_INSTANCE_CAST( ( obj ),   \
                                                SCREEM_TYPE_VIEW, \
                                                ScreemView ) )
#define SCREEM_IS_VIEW(obj)  (G_TYPE_CHECK_INSTANCE_TYPE( ( obj ), \
                                               SCREEM_TYPE_VIEW ) )

#ifndef SCREEM_WINDOW_DEFINED
#define SCREEM_WINDOW_DEFINED
typedef struct ScreemWindow ScreemWindow;
#endif

typedef struct ScreemViewPrivate ScreemViewPrivate;

typedef struct ScreemView ScreemView;

struct ScreemView {
	GtkBin parent;

	void (*window_set)( ScreemView *view );

	void (*display)( ScreemView *view );
	void (*print)( ScreemView *view, gboolean preview );

	void (*undo)( ScreemView *view );
	void (*redo)( ScreemView *view );

	ScreemViewPrivate *private;
};

typedef struct {
	GtkBinClass parent_class;

} ScreemViewClass;


GType screem_view_get_type( void );

void screem_view_display( ScreemView *view );
void screem_view_print( ScreemView *view, gboolean preview );

void screem_view_undo( ScreemView *view );
void screem_view_redo( ScreemView *view );

void screem_view_show_message( ScreemView *view, const gchar *msg );
void screem_view_show_error( ScreemView *view, const gchar *msg );

#endif