-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpp_scaling.h
52 lines (38 loc) · 1.36 KB
/
pp_scaling.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
#ifndef __PP_SCALING_H__
#define __PP_SCALING_H__
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtktable.h>
#include <gtk/gtkvbox.h>
#include <gtk/gtkhbox.h>
#include <gtk/gtkcombo.h>
#include <gtk/gtkspinbutton.h>
#include "miscwidgets/simplecombo.h"
#include "imagesource/imagesource_util.h"
G_BEGIN_DECLS
#define PP_SCALING_TYPE (pp_scaling_get_type())
#define PP_SCALING(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PP_SCALING_TYPE, pp_Scaling))
#define PP_SCALING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PP_SCALING_TYPE, pp_ScalingClass))
#define IS_PP_SCALING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PP_SCALING_TYPE))
#define IS_PP_SCALING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PP_SCALING_TYPE))
typedef struct _pp_Scaling pp_Scaling;
typedef struct _pp_ScalingClass pp_ScalingClass;
struct _pp_Scaling
{
GtkVBox vbox;
GtkWidget *scaleselector;
GtkWidget *description;
};
struct _pp_ScalingClass
{
GtkVBoxClass parent_class;
void (*changed)(pp_Scaling *units);
};
GType pp_scaling_get_type (void);
GtkWidget* pp_scaling_new (IS_ScalingQuality scale);
void pp_scaling_refresh(pp_Scaling *ob);
void pp_scaling_set_scale(pp_Scaling *ob,IS_ScalingQuality scale);
IS_ScalingQuality pp_scaling_get_scale(pp_Scaling *ob);
IS_ScalingQuality pp_scaling_run_dialog(GtkWindow *parent,IS_ScalingQuality scale);
G_END_DECLS
#endif /* __PP_SCALING_H__ */