-
Notifications
You must be signed in to change notification settings - Fork 10
/
pp_layout_carousel.h
60 lines (46 loc) · 1.7 KB
/
pp_layout_carousel.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
#ifndef __PP_LAYOUT_CAROUSEL_H__
#define __PP_LAYOUT_CAROUSEL_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 "photoprint_state.h"
#include "pp_sigcontrol.h"
G_BEGIN_DECLS
#define PP_LAYOUT_CAROUSEL_TYPE (pp_layout_carousel_get_type())
#define PP_LAYOUT_CAROUSEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PP_LAYOUT_CAROUSEL_TYPE, pp_Layout_Carousel))
#define PP_LAYOUT_CAROUSEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PP_LAYOUT_CAROUSEL_TYPE, pp_Layout_CarouselClass))
#define IS_PP_LAYOUT_CAROUSEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PP_LAYOUT_CAROUSEL_TYPE))
#define IS_PP_LAYOUT_CAROUSEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PP_LAYOUT_CAROUSEL_TYPE))
typedef struct _pp_Layout_Carousel pp_Layout_Carousel;
typedef struct _pp_Layout_CarouselClass pp_Layout_CarouselClass;
struct _pp_Layout_Carousel
{
GtkHBox hbox;
GtkWidget *pageview;
GtkWidget *page;
GtkWidget *pageextent;
GtkWidget *segments;
GtkWidget *overlap;
GtkWidget *angleoffset;
GtkWidget *innerradius;
GtkWidget *imagecontrol;
PhotoPrint_State *state;
};
struct _pp_Layout_CarouselClass
{
GtkHBoxClass parent_class;
void (*changed)(pp_Layout_Carousel *book);
void (*popupmenu)(pp_Layout_Carousel *book);
void (*selection_changed)(pp_Layout_Carousel *book);
};
GType pp_layout_carousel_get_type (void);
GtkWidget* pp_layout_carousel_new (PhotoPrint_State *state);
void pp_layout_carousel_refresh(pp_Layout_Carousel *ob);
void pp_layout_carousel_set_unit(GtkWidget *wid,enum Units unit);
G_END_DECLS
#endif /* __PP_LAYOUT_CAROUSEL_H__ */