diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-12-28 20:24:50 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-12-28 20:24:50 +0100 |
commit | 09795a01ef859f072920de9df974d1b03b9ab9a4 (patch) | |
tree | 4d05907fc37f1bd781e506f5e196f7435aeec0ab /app/wlib/gtklib/gtkint.h | |
parent | 5b4163d8c76b03f0d31b09866aa4bd06b4d8d804 (diff) |
New upstream version 4.2.4aupstream/4.2.4a
Diffstat (limited to 'app/wlib/gtklib/gtkint.h')
-rw-r--r-- | app/wlib/gtklib/gtkint.h | 42 |
1 files changed, 32 insertions, 10 deletions
diff --git a/app/wlib/gtklib/gtkint.h b/app/wlib/gtklib/gtkint.h index 4cbeace..c27c70b 100644 --- a/app/wlib/gtklib/gtkint.h +++ b/app/wlib/gtklib/gtkint.h @@ -68,7 +68,7 @@ typedef void (*setTriggerCallback_p)( wControl_p b ); struct wWin_t { WOBJ_COMMON - GtkWidget *gtkwin; /**< GTK window */ + GtkWidget *gtkwin; /**< GTK window */ wPos_t lastX, lastY; wControl_p first, last; wWinCallBack_p winProc; /**< window procedure */ @@ -157,15 +157,10 @@ void gtkPrintColorMap( FILE *, int, int ); int gtkMapPixel( long ); /* psprint.c */ -typedef struct { - wIndex_t cmdOrFile; - FILE * f; - } wPrinterStream_t; -typedef wPrinterStream_t * wPrinterStream_p; - -wPrinterStream_p wPrinterOpen( void ); -void wPrinterWrite( wPrinterStream_p p, char * buff, int siz ); -void wPrinterClose( wPrinterStream_p ); + +void WlibApplySettings( GtkPrintOperation *op ); +void WlibSaveSettings( GtkPrintOperation *op ); + void psPrintLine( wPos_t, wPos_t, wPos_t, wPos_t, wDrawWidth, wDrawLineType_e, wDrawColor, wDrawOpts ); void psPrintArc( wPos_t, wPos_t, wPos_t, double, double, int, @@ -177,4 +172,31 @@ void psPrintFillRectangle( wPos_t, wPos_t, wPos_t, wPos_t, wDrawColor, wDrawOpts void psPrintFillPolygon( wPos_t [][2], int, wDrawColor, wDrawOpts ); void psPrintFillCircle( wPos_t, wPos_t, wPos_t, wDrawColor, wDrawOpts ); +struct wDraw_t { + WOBJ_COMMON + void * context; + wDrawActionCallBack_p action; + wDrawRedrawCallBack_p redraw; + + GdkPixmap * pixmap; + GdkPixmap * pixmapBackup; + + double dpi; + + GdkGC * gc; + wDrawWidth lineWidth; + wDrawOpts opts; + wPos_t maxW; + wPos_t maxH; + unsigned long lastColor; + wBool_t lastColorInverted; + const char * helpStr; + + wPos_t lastX; + wPos_t lastY; + + wBool_t delayUpdate; + cairo_t *printContext; + cairo_surface_t *curPrintSurface; + }; #endif |