X11workbench Toolkit
1.0
|
Functions | |
Region | WBXImageToRegion (const XImage *pImage) |
Create a Region from an XImage. More... | |
XImage * | WBXImageFromRegion (Region rgnSource, int width, int height) |
Create a Region from an XImage. More... | |
int | WBXDrawPoint (XImage *pImage, WBGC hGC, int x, int y) |
XImage version for XDrawPoint() More... | |
int | WBXDrawPoints (XImage *pImage, WBGC hGC, XPoint *points, int npoints, int mode) |
XImage version for XDrawPoints() More... | |
int | WBXDrawLine (XImage *pImage, WBGC hGC, int x1, int y1, int x2, int y2) |
XImage version for XDrawLines() More... | |
int | WBXDrawLines (XImage *pImage, WBGC hGC, XPoint *points, int npoints, int mode) |
XImage version for XDrawLine() More... | |
int | WBXDrawRectangle (XImage *pImage, WBGC hGC, int x, int y, unsigned int width, unsigned int height) |
XImage version for XDrawRectangle() More... | |
int | WBXFillRectangle (XImage *pImage, WBGC hGC, int x, int y, unsigned int width, unsigned int height) |
XImage version for XFillRectangle() More... | |
int | WBXDrawArc (XImage *pImage, WBGC hGC, int x, int y, unsigned int width, unsigned int height, int angle1, int angle2) |
XImage version for XDrawArc() More... | |
int | WBXFillArc (XImage *pImage, WBGC hGC, int x, int y, unsigned int width, unsigned int height, int angle1, int angle2) |
XImage version for XFillArc() More... | |
int | WBXFillPolygon (XImage *pImage, WBGC hGC, XPoint *points, int npoints, int shape, int mode) |
XImage version for XFillPolygon() More... | |
int | WBXDrawString (XImage *pImage, WB_FONTC pFont, WBGC hGC, int x, int y, const char *string, int length) |
XImage version for XDrawString() or DTDrawString() More... | |
WBGC | WBCreateGC (Display *pDisplay, Drawable dw, unsigned long valuemask, const XGCValues *values) |
Creates a WBGC, wrapper for XCreateGC() More... | |
int | WBChangeGC (WBGC hGC, unsigned long valuemask, const XGCValues *values) |
Change a WBGC, a wrapper for XChangeGC() More... | |
Status | WBGetGCValues (WBGC hGC, unsigned long valuemask, XGCValues *values) |
Change a WBGC, a wrapper for XGetGCValues() More... | |
unsigned long | WBGetGCBGColor (WBGC gc) |
returns the currently assigned background color for a WBGC More... | |
unsigned long | WBGetGCFGColor (WBGC gc) |
returns the currently assigned foreground color for a WBGC More... | |
WB_FONTC | WBQueryGCFont (WBGC gc) |
return the WB_FONTC object that was assigned to a WBGC More... | |
WB_FONT | WBGetGCFont (Display *pDisplay, WBGC gc) |
return a copy of the WB_FONT object that was assigned to a WBGC More... | |
WBGC | WBCopyGC (WBGC hGCOrig) |
makes a copy of a WBGC, a more sensible wrapper for XCopyGC() More... | |
int | WBCopyGC2 (WBGC hGCOrig, unsigned long valuemask, WBGC hGCDest) |
makes a copy of a WBGC, a wrapper for XCopyGC() More... | |
WBGC | WBCopyDrawableGC (Display *pDisplay, Drawable dw, WBGC hGCOrig) |
makes a copy of the specified WBGC for the desired 'Drawable' More... | |
void | WBFreeGC (WBGC hGC) |
Free resources for a WBGC, wrapper for XFreeGC() More... | |
GContext | WBGContextFromGC (WBGC hGC) |
Free resources for a WBGC, wrapper for XGContextFromGC() More... | |
int | WBSetRegion (WBGC hGC, Region rgnClip) |
Assign clipping region, wrapper for XSetRegion() More... | |
int | WBSetClipOrigin (WBGC hGC, int clip_x_origin, int clip_y_origin) |
Set clip origin, a wrapper for XSetClipOrigin() More... | |
int | WBSetClipMask (WBGC hGC, Pixmap pixmap) |
Set clip mask, a wrapper for XSetClipMask() More... | |
int | WBSetFunction (WBGC hGC, int function) |
Set the 'function' for the WBGC, a wrapper for XSetFunction() More... | |
static __inline__ unsigned long | WBGetForeground (WBGC hGC) |
Get the (cached) foreground color for a WBGC. More... | |
int | WBSetForeground (WBGC hGC, unsigned long foreground) |
Assign foreground color, a wrapper for XSetForeground() More... | |
static __inline__ unsigned long | WBGetBackground (WBGC hGC) |
Get the (cached) background color for a WBGC. More... | |
int | WBSetBackground (WBGC hGC, unsigned long background) |
Assign background color, a wrapper for XSetBackground() More... | |
int | WBSetFont (WBGC hGC, WB_FONTC pFont) |
Assign font to a WBGC, a wrapper for XSetFont() More... | |
int | WBSetFontNoCopy (WBGC hGC, WB_FONT pFont) |
Assign font to a WBGC, a wrapper for XSetFont() More... | |
int | WBSetLineAttributes (WBGC hGC, unsigned int line_width, int line_style, int cap_style, int join_style) |
Assign font to a WBGC, a wrapper for XSetLineAttributes() More... | |
int | WBSetDashes (WBGC hGC, int dash_offset, const char dash_list[], int n) |
Assign font to a WBGC, a wrapper for XSetFont() More... | |
These functions provide a graphics-related 'Abstraction Layer' API for performance enhancement and cross-platform implementation of the toolkit. Rather than calling X11 library functions directly, you should use these equivalent API functions whenever possible.
int WBChangeGC | ( | WBGC | hGC, |
unsigned long | valuemask, | ||
const XGCValues * | values | ||
) |
Change a WBGC, a wrapper for XChangeGC()
hGC | The WBGC which is to be modified |
valuemask | A bitwise mask of values to assign to the new WBGC from 'values' |
values | A pointer to an XGCValues structure describing values to be assigned (may be NULL) |
Most of the cached GC values are stored in the 'values' member of the WBGC structure. It is safe to read this structure directly, though you should never assign anything to it without using one of the API functions (such as this one).
Header File: window_helper.h
Definition at line 676 of file graphical_api.c.
makes a copy of the specified WBGC for the desired 'Drawable'
pDisplay | A pointer to the 'Display' for the drawable. NULL implies the default display. |
dw | The 'Drawable' for which to copy the original WBGC (NULL/None uses the 'default' window) |
hGCOrig | The source 'WBGC' |
Makes a copy of the specified WBGC. Useful if you want to make temporary modifications to a WBGC for a particular drawing operation, but don't want to actually modify the original WBGC.
Header File: window_helper.h
Definition at line 1162 of file graphical_api.c.
makes a copy of a WBGC, a more sensible wrapper for XCopyGC()
hGCOrig | The WBGC which is to be copied |
Header File: window_helper.h
Definition at line 905 of file graphical_api.c.
makes a copy of a WBGC, a wrapper for XCopyGC()
hGCOrig | The WBGC which is to be copied |
unsigned | long valuemask A bitwise mask of values to assign to the new WBGC from the original |
hGCDest | The destination WBGC to copy to |
Header File: window_helper.h
Definition at line 958 of file graphical_api.c.
WBGC WBCreateGC | ( | Display * | pDisplay, |
Drawable | dw, | ||
unsigned long | valuemask, | ||
const XGCValues * | values | ||
) |
Creates a WBGC, wrapper for XCreateGC()
pDisplay | A pointer to the Display, or NULL to use the default Display |
Drawable | dw The Drawable for which to create the WBGC |
valuemask | A bitwise mask of values to assign to the new WBGC from 'values' |
values | A pointer to an XGCValues structure describing values to be assigned (may be NULL) |
Most of the cached GC values are stored in the 'values' member of the WBGC structure. It is safe to read this structure directly, though you should never assign anything to it without using one of the API functions.
Header File: window_helper.h
Definition at line 565 of file graphical_api.c.
void WBFreeGC | ( | WBGC | hGC | ) |
Free resources for a WBGC, wrapper for XFreeGC()
hGC | The WBGC which is to be freed |
Header File: window_helper.h
Definition at line 1218 of file graphical_api.c.
GContext WBGContextFromGC | ( | WBGC | hGC | ) |
Free resources for a WBGC, wrapper for XGContextFromGC()
hGC | The WBGC which is to be freed |
NOTE: this only preserves those things that XGContextFromGC will preserve; some things are only cached by the WBGC internally
Most of the cached GC values are stored in the 'values' member of the WBGC structure. It is safe to read this structure directly, though you should never assign anything to it without using one of the API functions.
Header File: window_helper.h
Definition at line 1291 of file graphical_api.c.
|
static |
Get the (cached) background color for a WBGC.
hGC | The WBGC to query the color of |
Header File: window_helper.h
Definition at line 3136 of file window_helper.h.
|
static |
Get the (cached) foreground color for a WBGC.
hGC | The WBGC to query the color of |
Header File: window_helper.h
Definition at line 3105 of file window_helper.h.
unsigned long WBGetGCBGColor | ( | WBGC | gc | ) |
returns the currently assigned background color for a WBGC
gc | The WBGC to be queried |
If the current background color cannot be determined, this function will return the pre-defined color for WHITE on the specified Display and default screen
Header File: window_helper.h
Definition at line 5886 of file window_helper.c.
unsigned long WBGetGCFGColor | ( | WBGC | gc | ) |
returns the currently assigned foreground color for a WBGC
gc | The WBGC to be queried |
If the current foreground color cannot be determined, this function will return the pre-defined color for BLACK on the specified Display and default screen
Header File: window_helper.h
Definition at line 5857 of file window_helper.c.
return a copy of the WB_FONT object that was assigned to a WBGC
pDisplay | A pointer to the Display |
gc | The WBGC to be queried |
Call this function to determine the font that has been assigned to a WBGC, and make a copy of it for subsequent use. If there has been NO font assigned, the system default font information will be returned.
The return value is always a new pointer to a WB_FONT, or NULL on error. The caller must free non-NULL return values via WBFreeFont().
Header File: window_helper.h
Definition at line 1314 of file graphical_api.c.
Status WBGetGCValues | ( | WBGC | hGC, |
unsigned long | valuemask, | ||
XGCValues * | values | ||
) |
Change a WBGC, a wrapper for XGetGCValues()
hGC | The WBGC which is to be queried |
valuemask | A bitwise mask of values to assign to the new WBGC from 'values' |
values | A pointer to an XGCValues structure describing values to be assigned (may be NULL) |
Most of the cached GC values are stored in the 'values' member of the WBGC structure. It is safe to read this structure directly, though you should never assign anything to it without using one of the API functions. This function will conveniently make a copy of that internal structure and write it to the pointer specified by 'values'.
Header File: window_helper.h
Definition at line 833 of file graphical_api.c.
return the WB_FONTC object that was assigned to a WBGC
gc | The WBGC to be queried |
Call this function to determine the font that has been assigned to a WBGC. If there has been NO font assigned, the system default font information will be returned. A value of NULL is returned on error, or if no font is assigned.
This function differs from WBGetGCFont() in that it does not create a new copy of an existing GC. Therefore, the return value is only valid within the context of the call to WBQueryGCFont() and should NOT be passed to WBFreeFont().
Header File: window_helper.h
Definition at line 1304 of file graphical_api.c.
int WBSetBackground | ( | WBGC | hGC, |
unsigned long | background | ||
) |
Assign background color, a wrapper for XSetBackground()
hGC | The WBGC to set the background color of |
background | The background color |
Most of the cached GC values are stored in the 'values' member of the WBGC structure. It is safe to read this structure directly, though you should never assign anything to it without using one of the API functions.
Header File: window_helper.h
Definition at line 1490 of file graphical_api.c.
int WBSetClipMask | ( | WBGC | hGC, |
Pixmap | pixmap | ||
) |
Set clip mask, a wrapper for XSetClipMask()
hGC | The WBGC to assign a clipping Region to |
pixmap | A pixmap containing the clipping mask |
Header File: window_helper.h
Definition at line 1436 of file graphical_api.c.
int WBSetClipOrigin | ( | WBGC | hGC, |
int | clip_x_origin, | ||
int | clip_y_origin | ||
) |
Set clip origin, a wrapper for XSetClipOrigin()
hGC | The WBGC to assign a clipping Region to |
clip_x_origin | The 'x' clipping origin |
clip_y_origin | The 'y' clipping origin |
Most of the cached GC values are stored in the 'values' member of the WBGC structure. It is safe to read this structure directly, though you should never assign anything to it without using one of the API functions.
Header File: window_helper.h
Definition at line 1422 of file graphical_api.c.
int WBSetDashes | ( | WBGC | hGC, |
int | dash_offset, | ||
const char | dash_list[], | ||
int | n | ||
) |
Assign font to a WBGC, a wrapper for XSetFont()
hGC | The WBGC to assign a clipping Region to |
dash_offset | The 'dash offset' for creating dashes |
dash_list | An array of 'char' values containing the dash info |
n | The number of entries in 'dash_list' |
Most of the cached GC values are stored in the 'values' member of the WBGC structure. It is safe to read this structure directly, though you should never assign anything to it without using one of the API functions.
Header File: window_helper.h
Definition at line 1582 of file graphical_api.c.
Assign font to a WBGC, a wrapper for XSetFont()
hGC | The WBGC to assign a clipping Region to |
pFont | The WB_FONTC to assign to the WBGC (makes a copy of it) |
Header File: window_helper.h
Definition at line 1503 of file graphical_api.c.
Assign font to a WBGC, a wrapper for XSetFont()
hGC | The WBGC to assign a clipping Region to |
pFont | The WB_FONT to assign to the WBGC directly without copying |
The assigned WB_FONT will be stored directly into the WBGC and not copied first. This means that the WBGC will 'take ownership' of the WB_FONT immediately after making this call. The caller must ensure that it is safe for the WBGC object to own such a WB_FONT.
Header File: window_helper.h
iRet &&
Definition at line 1532 of file graphical_api.c.
int WBSetForeground | ( | WBGC | hGC, |
unsigned long | foreground | ||
) |
Assign foreground color, a wrapper for XSetForeground()
hGC | The WBGC to set the foreground color of |
foreground | The foreground color |
Most of the cached GC values are stored in the 'values' member of the WBGC structure. It is safe to read this structure directly, though you should never assign anything to it without using one of the API functions.
Header File: window_helper.h
Definition at line 1477 of file graphical_api.c.
int WBSetFunction | ( | WBGC | hGC, |
int | function | ||
) |
Set the 'function' for the WBGC, a wrapper for XSetFunction()
hGC | The WBGC to assign a clipping Region to |
function | The 'function' for the GC - for more information, see XSetFunction() |
Most of the cached GC values are stored in the 'values' member of the WBGC structure. It is safe to read this structure directly, though you should never assign anything to it without using one of the API functions.
Header File: window_helper.h
Definition at line 1464 of file graphical_api.c.
int WBSetLineAttributes | ( | WBGC | hGC, |
unsigned int | line_width, | ||
int | line_style, | ||
int | cap_style, | ||
int | join_style | ||
) |
Assign font to a WBGC, a wrapper for XSetLineAttributes()
hGC | The WBGC to assign a clipping Region to |
line_width | The line width, in pixels |
line_style | The line style - see XSetLineAttributes() |
cap_style | The cap style - see XSetLineAttributes() |
join_style | The join style - see XSetLineAttributes() |
Most of the cached GC values are stored in the 'values' member of the WBGC structure. It is safe to read this structure directly, though you should never assign anything to it without using one of the API functions.
Header File: window_helper.h
Definition at line 1565 of file graphical_api.c.
int WBSetRegion | ( | WBGC | hGC, |
Region | rgnClip | ||
) |
Assign clipping region, wrapper for XSetRegion()
hGC | The WBGC to assign a clipping Region to |
rgnClip | The clipping region to assign to the WBGC |
Header File: window_helper.h
Definition at line 1382 of file graphical_api.c.
int WBXDrawArc | ( | XImage * | pImage, |
WBGC | hGC, | ||
int | x, | ||
int | y, | ||
unsigned int | width, | ||
unsigned int | height, | ||
int | angle1, | ||
int | angle2 | ||
) |
XImage version for XDrawArc()
pImage | A pointer to the XImage to draw to |
hGC | A WBGC that describes the device context (mostly for line width, clipping, etc.) |
x | The origin x of the operation |
y | The origin y of the operation |
width | The width of the arc's elipse |
height | The height of the arc's elipse |
angle1 | The starting angle of the arc |
angle2 | The ending angle of the arc |
This function draws an arc, similar to XDrawArc(), on the specified XImage, with the specified clipping and context.
The XImage should either have a monochrome (single plane) XYPixmap, or 24-bit color ZPixmap format.
Header File: pixmap_helper.h
Definition at line 2040 of file pixmap_helper.c.
int WBXDrawLine | ( | XImage * | pImage, |
WBGC | hGC, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
XImage version for XDrawLines()
pImage | A pointer to the XImage to draw to |
hGC | A WBGC that describes the device context (mostly for line width, clipping, etc.) |
x1 | The origin 'x' coordinate of the line |
y1 | The origin 'y' coordinate of the line |
x2 | The final 'x' coordinate of the line |
y2 | The final 'y' coordinate of the line |
This function draws a line, similar to XDrawLines(), on the specified XImage, with the specified clipping and context.
The XImage should either have a monochrome (single plane) XYPixmap, or 24-bit color ZPixmap format.
Header File: pixmap_helper.h
Definition at line 1927 of file pixmap_helper.c.
int WBXDrawLines | ( | XImage * | pImage, |
WBGC | hGC, | ||
XPoint * | points, | ||
int | npoints, | ||
int | mode | ||
) |
XImage version for XDrawLine()
pImage | A pointer to the XImage to draw to |
hGC | A WBGC that describes the device context (mostly for line width, clipping, etc.) |
points | A pointer to an array of XPoint structures describing the line vertices |
npoints | The number of entries in the 'points' array |
mode | A constant indicating the coordinate mode, either CoordModeOrigin or CoordModePrevious - see XDrawLines(). |
This function draws one or more lines, similar to XDrawLines(), on the specified XImage, with the specified clipping and context.
The XImage should either have a monochrome (single plane) XYPixmap, or 24-bit color ZPixmap format.
Header File: pixmap_helper.h
Definition at line 1962 of file pixmap_helper.c.
int WBXDrawPoint | ( | XImage * | pImage, |
WBGC | hGC, | ||
int | x, | ||
int | y | ||
) |
XImage version for XDrawPoint()
pImage | A pointer to the XImage to draw to |
hGC | A WBGC that describes the device context (mostly for line width, clipping, etc.) |
x | The origin 'x' coordinate of the line |
y | The origin 'y' coordinate of the line |
This function draws a point, similar to XDrawPoint(), on the specified XImage, with the specified clipping and context. A point is always a single pixel.
The XImage should either have a monochrome (single plane) XYPixmap, or 24-bit color ZPixmap format.
Header File: pixmap_helper.h
Definition at line 1850 of file pixmap_helper.c.
int WBXDrawPoints | ( | XImage * | pImage, |
WBGC | hGC, | ||
XPoint * | points, | ||
int | npoints, | ||
int | mode | ||
) |
XImage version for XDrawPoints()
pImage | A pointer to the XImage to draw to |
hGC | A WBGC that describes the device context (mostly for line width, clipping, etc.) |
points | A pointer to an array of XPoint structures describing the line vertices |
npoints | The number of entries in the 'points' array |
mode | A constant indicating the coordinate mode, either CoordModeOrigin or CoordModePrevious - see XDrawLines(). |
This function draws one or more points, similar to XDrawPoints(), on the specified XImage, with the specified clipping and context. A point is always a single pixel.
The XImage should either have a monochrome (single plane) XYPixmap, or 24-bit color ZPixmap format.
Header File: pixmap_helper.h
Definition at line 1874 of file pixmap_helper.c.
int WBXDrawRectangle | ( | XImage * | pImage, |
WBGC | hGC, | ||
int | x, | ||
int | y, | ||
unsigned int | width, | ||
unsigned int | height | ||
) |
XImage version for XDrawRectangle()
pImage | A pointer to the XImage to draw to |
hGC | A WBGC that describes the device context (mostly for line width, clipping, etc.) |
x | The origin x of the operation |
y | The origin y of the operation |
width | The width of the rectangle |
height | The height of the rectangle |
This function draws a rectangle, similar to XDrawRectangle(), on the specified XImage, with the specified clipping and context.
The XImage should either have a monochrome (single plane) XYPixmap, or 24-bit color ZPixmap format.
Header File: pixmap_helper.h
Definition at line 1985 of file pixmap_helper.c.
int WBXDrawString | ( | XImage * | pImage, |
WB_FONTC | pFont, | ||
WBGC | hGC, | ||
int | x, | ||
int | y, | ||
const char * | string, | ||
int | length | ||
) |
XImage version for XDrawString() or DTDrawString()
pImage | A pointer to the XImage to draw to |
pFont | A WB_FONTC to use for rendering text. May be NULL, in which case a default font set (based on the WBGC) will be used |
hGC | A WBGC that describes the device context (mostly for colors, clipping, etc.) |
x | The 'x' coordinate for the text alignment (left) |
y | The 'y' coordinate for the text alignment (bottom) |
string | A const pointer to a UTF-8 or multi-byte string |
length | The BYTE LENGTH of the UTF-8 or mult-byte string (not character length) |
Use this function in lieu of XDrawString() to draw text to an XImage using the specified font set, graphics context, and clipping, upon the specified 'XImage'. This function is the equivalent of the X11 library's XDrawString(). Internally, it is very similar to DTDrawString().
The XImage should either have a monochrome (single plane) XYPixmap, or 24-bit color ZPixmap format.
Header File: pixmap_helper.h
Definition at line 2107 of file pixmap_helper.c.
int WBXFillArc | ( | XImage * | pImage, |
WBGC | hGC, | ||
int | x, | ||
int | y, | ||
unsigned int | width, | ||
unsigned int | height, | ||
int | angle1, | ||
int | angle2 | ||
) |
XImage version for XFillArc()
pImage | A pointer to the XImage to draw to |
hGC | A WBGC that describes the device context (mostly for line width, clipping, etc.) |
x | The origin x of the operation |
y | The origin y of the operation |
width | The width of the arc's elipse |
height | The height of the arc's elipse |
angle1 | The starting angle of the arc |
angle2 | The ending angle of the arc |
This function draws a filled arc, similar to XFillArc(), on the specified XImage, with the specified clipping and context.
The XImage should either have a monochrome (single plane) XYPixmap, or 24-bit color ZPixmap format.
Header File: pixmap_helper.h
Definition at line 2071 of file pixmap_helper.c.
int WBXFillPolygon | ( | XImage * | pImage, |
WBGC | hGC, | ||
XPoint * | points, | ||
int | npoints, | ||
int | shape, | ||
int | mode | ||
) |
XImage version for XFillPolygon()
pImage | A pointer to the XImage to draw to |
hGC | A WBGC that describes the device context (mostly for line width, clipping, etc.) |
points | A pointer to an array of XPoint structures describing the polygon line vertices |
npoints | The number of entries in the 'points' array |
shape | A constant indicating the general shape, either Convex, Nonconvex, or Complex - see XFillPolygon() |
mode | A constant indicating the coordinate mode, either CoordModeOrigin or CoordModePrevious - see XFillPolygon(). |
This function draws a filled polygon, similar to XFillPolygon(), on the specified XImage, with the specified clipping and context.
The XImage should either have a monochrome (single plane) XYPixmap, or 24-bit color ZPixmap format.
Header File: pixmap_helper.h
Definition at line 2078 of file pixmap_helper.c.
int WBXFillRectangle | ( | XImage * | pImage, |
WBGC | hGC, | ||
int | x, | ||
int | y, | ||
unsigned int | width, | ||
unsigned int | height | ||
) |
XImage version for XFillRectangle()
pImage | A pointer to the XImage to draw to |
hGC | A WBGC that describes the device context (mostly for line width, clipping, etc.) |
x | The origin x of the operation |
y | The origin y of the operation |
width | The width of the rectangle |
height | The height of the rectangle |
This function draws a filled rectangle, similar to XFillRectangle(), on the specified XImage, with the specified clipping and context.
The XImage should either have a monochrome (single plane) XYPixmap, or 24-bit color ZPixmap format.
Header File: pixmap_helper.h
Definition at line 2006 of file pixmap_helper.c.
XImage* WBXImageFromRegion | ( | Region | rgnSource, |
int | width, | ||
int | height | ||
) |
Create a Region from an XImage.
pImage | The Region to create an XImage from |
width | The width of the resulting XImage |
height | The height of the resulting XImage |
This function creates an 'XYPixmap' single-plane XImage that contains a '1' bit for every point that is You will need to use WBXDestroyImage() to destroy the XImage returned by this function, rather than XDestroyImage(), to avoid any memory management conflicts.
Header File: pixmap_helper.h
Definition at line 1825 of file pixmap_helper.c.
Region WBXImageToRegion | ( | const XImage * | pImage | ) |
Create a Region from an XImage.
pImage | A const pointer to the XImage to create a Region from |
This function creates a Region from an XImage, assuming that it consists of a union of every 'non-zero' pixel in the XImage.
Header File: pixmap_helper.h
Definition at line 1801 of file pixmap_helper.c.