comparison gtk/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 38856b5bb72e
children cf934fd39d03
comparison
equal deleted inserted replaced
1136:1a5b0908659b 1137:e24e5a13ff2c
11671 } 11671 }
11672 DW_MUTEX_UNLOCK; 11672 DW_MUTEX_UNLOCK;
11673 } 11673 }
11674 11674
11675 /* 11675 /*
11676 * Creates a new print object.
11677 * Parameters:
11678 * flags: Flags to initially configure the print object.
11679 * pages: Number of pages to print.
11680 * drawfunc: The pointer to the function to be used as the callback.
11681 * drawdata: User data to be passed to the handler function.
11682 * Returns:
11683 * A handle to the print object or NULL on failure.
11684 */
11685 HPRINT API dw_print_new(unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata)
11686 {
11687 return NULL;
11688 }
11689
11690 /*
11691 * Runs the print job, causing the draw page callbacks to fire.
11692 * Parameters:
11693 * print: Handle to the print object returned by dw_print_new().
11694 * flags: Flags to run the print job.
11695 * Returns:
11696 * DW_ERROR_UNKNOWN on error or DW_ERROR_NONE on success.
11697 */
11698 int API dw_print_run(HPRINT print, unsigned long flags)
11699 {
11700 return DW_ERROR_UNKNOWN;
11701 }
11702
11703 /*
11704 * Cancels the print job, typically called from a draw page callback.
11705 * Parameters:
11706 * print: Handle to the print object returned by dw_print_new().
11707 */
11708 void API dw_print_cancel(HPRINT print)
11709 {
11710 }
11711
11712 /*
11676 * Returns a pointer to a static buffer which containes the 11713 * Returns a pointer to a static buffer which containes the
11677 * current user directory. Or the root directory (C:\ on 11714 * current user directory. Or the root directory (C:\ on
11678 * OS/2 and Windows). 11715 * OS/2 and Windows).
11679 */ 11716 */
11680 char *dw_user_dir(void) 11717 char *dw_user_dir(void)