-
Notifications
You must be signed in to change notification settings - Fork 10
/
pp_layout_nup.h
57 lines (42 loc) · 1.45 KB
/
pp_layout_nup.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
#ifndef __PP_LAYOUT_NUP_H__
#define __PP_LAYOUT_NUP_H__
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtkvbox.h>
#include <gtk/gtkhbox.h>
#include <gtk/gtkspinbutton.h>
#include <gtk/gtksizegroup.h>
#include <gutenprint/gutenprint.h>
#include "stpui_widgets/units.h"
#include "pp_layout_nup_pageview.h"
G_BEGIN_DECLS
#define PP_LAYOUT_NUP_TYPE (pp_layout_nup_get_type())
#define PP_LAYOUT_NUP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PP_LAYOUT_NUP_TYPE, pp_Layout_NUp))
#define PP_LAYOUT_NUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PP_LAYOUT_NUP_TYPE, pp_Layout_NUpClass))
#define IS_PP_LAYOUT_NUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PP_LAYOUT_NUP_TYPE))
#define IS_PP_LAYOUT_NUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PP_LAYOUT_NUP_TYPE))
typedef struct _pp_Layout_NUp pp_Layout_NUp;
typedef struct _pp_Layout_NUpClass pp_Layout_NUpClass;
class PhotoPrint_State;
struct _pp_Layout_NUp
{
GtkHBox hbox;
GtkWidget *pageview;
GtkWidget *sigcontrol;
GtkWidget *pageextent;
GtkWidget *imagecontrol;
GtkWidget *page;
PhotoPrint_State *state;
};
struct _pp_Layout_NUpClass
{
GtkHBoxClass parent_class;
void (*changed)(pp_Layout_NUp *book);
void (*popupmenu)(pp_Layout_NUp *book);
};
GType pp_layout_nup_get_type (void);
GtkWidget* pp_layout_nup_new (PhotoPrint_State *state);
void pp_layout_nup_refresh(pp_Layout_NUp *ob);
void pp_layout_nup_set_unit(GtkWidget *wid,enum Units unit);
G_END_DECLS
#endif /* __PP_LAYOUT_NUP_H__ */