Add powerbox hook
[gtk-with-powerbox.git] / tests / testprintfileoperation.h
blob40472fdf9450918bdf48e90fbec9302e86978507
1 #ifndef __TEST_PRINT_FILE_OPERATION_H__
2 #define __TEST_PRINT_FILE_OPERATION_H__
4 #include <gtk/gtk.h>
6 G_BEGIN_DECLS
8 #define TEST_TYPE_PRINT_FILE_OPERATION (test_print_file_operation_get_type ())
9 #define TEST_PRINT_FILE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_PRINT_FILE_OPERATION, TestPrintFileOperation))
10 #define TEST_IS_PRINT_FILE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_PRINT_FILE_OPERATION))
12 typedef struct _TestPrintFileOperationClass TestPrintFileOperationClass;
13 typedef struct _TestPrintFileOperationPrivate TestPrintFileOperationPrivate;
14 typedef struct _TestPrintFileOperation TestPrintFileOperation;
16 struct _TestPrintFileOperation
18 GtkPrintOperation parent_instance;
20 /* < private > */
21 char *filename;
22 double font_size;
23 int lines_per_page;
26 char **lines;
27 int num_lines;
28 int num_pages;
31 struct _TestPrintFileOperationClass
33 GtkPrintOperationClass parent_class;
36 GType test_print_file_operation_get_type (void);
37 TestPrintFileOperation *test_print_file_operation_new (const char *filename);
38 void test_print_file_operation_set_font_size (TestPrintFileOperation *op,
39 double points);
41 G_END_DECLS
43 #endif /* __TEST_PRINT_FILE_OPERATION_H__ */