Mercurial > dwindows
comparison os2/dw.c @ 1137:e24e5a13ff2c
Added code to test the new print functions in dwtest.
GTK3 code mostly works except the for the text.
Added stub print functions to all platforms besides GTK3.
Need to decide what to do about GTK2; the GTK3 code will work
in GTK 2.10 and later, but will require switching to cairo.
Mac/Win/OS2 code coming soon. :)
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 09 Sep 2011 09:17:09 +0000 |
parents | 5a951cfd67ad |
children | 0c073534d722 |
comparison
equal
deleted
inserted
replaced
1136:1a5b0908659b | 1137:e24e5a13ff2c |
---|---|
10027 id = id; | 10027 id = id; |
10028 return dw_box_new(DW_HORZ, 0); | 10028 return dw_box_new(DW_HORZ, 0); |
10029 } | 10029 } |
10030 | 10030 |
10031 /* | 10031 /* |
10032 * Creates a new print object. | |
10033 * Parameters: | |
10034 * flags: Flags to initially configure the print object. | |
10035 * pages: Number of pages to print. | |
10036 * drawfunc: The pointer to the function to be used as the callback. | |
10037 * drawdata: User data to be passed to the handler function. | |
10038 * Returns: | |
10039 * A handle to the print object or NULL on failure. | |
10040 */ | |
10041 HPRINT API dw_print_new(unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata) | |
10042 { | |
10043 return NULL; | |
10044 } | |
10045 | |
10046 /* | |
10047 * Runs the print job, causing the draw page callbacks to fire. | |
10048 * Parameters: | |
10049 * print: Handle to the print object returned by dw_print_new(). | |
10050 * flags: Flags to run the print job. | |
10051 * Returns: | |
10052 * DW_ERROR_UNKNOWN on error or DW_ERROR_NONE on success. | |
10053 */ | |
10054 int API dw_print_run(HPRINT print, unsigned long flags) | |
10055 { | |
10056 return DW_ERROR_UNKNOWN; | |
10057 } | |
10058 | |
10059 /* | |
10060 * Cancels the print job, typically called from a draw page callback. | |
10061 * Parameters: | |
10062 * print: Handle to the print object returned by dw_print_new(). | |
10063 */ | |
10064 void API dw_print_cancel(HPRINT print) | |
10065 { | |
10066 } | |
10067 | |
10068 /* | |
10032 * Returns a pointer to a static buffer which containes the | 10069 * Returns a pointer to a static buffer which containes the |
10033 * current user directory. Or the root directory (C:\ on | 10070 * current user directory. Or the root directory (C:\ on |
10034 * OS/2 and Windows). | 10071 * OS/2 and Windows). |
10035 */ | 10072 */ |
10036 char * API dw_user_dir(void) | 10073 char * API dw_user_dir(void) |