/* We use the x and y parts of extents for situations where *we'renotsupposedtodrawtotheentiresurface. *Forexample,duringapainteventaprogramwillget *aDCthathasbeenclippedtothedirtyregion. *AcairosurfaceconstructedforthatDCwillhaveextents *thatmatchboundsoftheclippedregion.
*/
cairo_rectangle_int_t extents;
/* Offset added to extents, used when the extents start with a negative *offset,whichcanoccuronWindowsfor,andonlyfor,desktopDC.This *occurswhenyouhavemultiplemonitors,andatleastonemonitor *extendstotheleft,orabove,theprimatymonitor.Theprimary *monitoronWindowsalwaysstartswithoffset(0,0),andanyotherpoints *totheleft,orabove,havenegativeoffsets.Sothe'desktopDC'is *infacta'virtualdesktop'whichcanstartwithextentsinthenegative *range. * *Whyusenewvariables,andnotthedevicetransform?Simplybecausesince *thedevicetransformfunctionsareexposed,alotof3rdpartylibraries *simplyoverwritethose,disregardingthepriorcontent,insteadofactually *addingtheoffset.GTKforexamplesimplyresetsthedevicetransformofthe *desktopcairosurfacetozero.Somakesomeprivatemembervariablesfor *this,whichwillnotbefiddledwithexternally.
*/ int x_ofs, y_ofs;
} cairo_win32_surface_t; #define to_win32_surface(S) ((cairo_win32_surface_t *)(S))
/* We create off-screen surfaces as DIBs or DDBs, based on what we created
* originally */
HBITMAP bitmap;
cairo_bool_t is_dib;
/* Used to save the initial 1x1 monochrome bitmap for the DC to *selectbackintotheDCbeforedeletingtheDCandour *bitmap.ForWindowsXP,thisdoesn'tseemtobenecessary *...wecanjustdeletetheDCandthatautomaticallyunselects *ourbitmap.Butit'sstandardpracticesoapparentlyisneeded *onsomeversionsofWindows.
*/
HBITMAP saved_dc_bitmap;
cairo_surface_t *image;
cairo_surface_t *fallback;
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-10-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.