-
Notifications
You must be signed in to change notification settings - Fork 10
/
pp_pageextent.h
62 lines (48 loc) · 1.58 KB
/
pp_pageextent.h
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
62
#ifndef __PP_PAGEEXTENT_H__
#define __PP_PAGEEXTENT_H__
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtktable.h>
#include <gtk/gtkvbox.h>
#include <gtk/gtkhbox.h>
#include <gtk/gtkexpander.h>
#include <gtk/gtkspinbutton.h>
#include <gtk/gtksizegroup.h>
#include <gutenprint/gutenprint.h>
#include "pageextent.h"
G_BEGIN_DECLS
#define PP_PAGEEXTENT_TYPE (pp_pageextent_get_type())
#define PP_PAGEEXTENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PP_PAGEEXTENT_TYPE, pp_PageExtent))
#define PP_PAGEEXTENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PP_PAGEEXTENT_TYPE, pp_PageExtentClass))
#define IS_PP_PAGEEXTENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PP_PAGEEXTENT_TYPE))
#define IS_PP_PAGEEXTENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PP_PAGEEXTENT_TYPE))
typedef struct _pp_PageExtent pp_PageExtent;
typedef struct _pp_PageExtentClass pp_PageExtentClass;
class PhotoPrint_State;
struct _pp_PageExtent
{
GtkExpander box;
GtkWidget *lmargin;
GtkWidget *rmargin;
GtkWidget *tmargin;
GtkWidget *bmargin;
GtkWidget *pagesize;
GtkWidget *customwidth;
GtkWidget *customwidthlabel;
GtkWidget *customheight;
GtkWidget *customheightlabel;
PageExtent *pe;
PhotoPrint_State *state;
bool blocksignals;
};
struct _pp_PageExtentClass
{
GtkExpanderClass parent_class;
void (*changed)(pp_PageExtent *sig);
};
GType pp_pageextent_get_type (void);
GtkWidget* pp_pageextent_new (PageExtent *pe,PhotoPrint_State *state);
void pp_pageextent_refresh(pp_PageExtent *ob);
void pp_pageextent_set_unit(pp_PageExtent *ob,enum Units unit);
G_END_DECLS
#endif /* __PP_PAGEEXTENT_H__ */