JX Application Framework
|
#include <jx-af/jcore/JPtrArray-JString.h>
#include <jx-af/jcore/JRect.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
Functions | |
XRectangle | JXJToXRect (const JRect &rect) |
JRect | JXXToJRect (const XRectangle &rect) |
Region | JXRectangleRegion (XRectangle *rectangle) |
Region | JXRectangleRegion (const JRect &rect) |
JRect | JXGetRegionBounds (Region region) |
bool | JXRegionIsRectangle (Region region, JRect *rect=nullptr) |
Region | JXCopyRegion (Region region) |
void | JXIntersectRectWithRegion (XRectangle *rectangle, Region src_region, Region dest_region) |
void | JXSubtractRectFromRegion (Region src_region, XRectangle *rectangle, Region dest_region) |
Pixmap | JXIntersection (JXDisplay *display, Region region, const JPoint ®ionOffset, const JXImageMask &pixmap, const JPoint &pixmapOffset, const JRect &resultRect) |
Pixmap | JXIntersection (JXDisplay *display, const JXImageMask &p1, const JPoint &p1Offset, const JXImageMask &p2, const JPoint &p2Offset, const JRect &resultRect) |
Pixmap | JXIntersection (JXDisplay *display, const JXImageMask &pixmap, const JPoint &pixmapOffset, Region region, const JPoint ®ionOffset, const JRect &resultRect) |
JString | JXPackStrings (const JPtrArray< JString > &strList, const JUtf8Byte *separator="\1", const JSize sepLength=1) |
void | JXUnpackStrings (const JUtf8Byte *data, const JSize byteCount, JPtrArray< JString > *strList, const JUtf8Byte *separator="\1", const JSize sepLength=1) |
JString | JXPackFileNames (const JPtrArray< JString > &fileNameList) |
void | JXUnpackFileNames (const JUtf8Byte *data, const JSize byteCount, JPtrArray< JString > *fileNameList, JPtrArray< JString > *urlList) |
void | JXReportUnreachableHosts (const JPtrArray< JString > &urlList) |
bool | JXFixBrokenURLs (const JUtf8Byte *data, const JSize byteCount, JXDisplay *display, const Window srcWindow, JString *newData) |
Region JXCopyRegion | ( | Region | region | ) |
XUnionRectWithRegion would probably be faster, but it doesn't work with an empty rectangle.
bool JXFixBrokenURLs | ( | const JUtf8Byte * | data, |
const JSize | byteCount, | ||
JXDisplay * | display, | ||
const Window | srcWindow, | ||
JString * | newData | ||
) |
JRect JXGetRegionBounds | ( | Region | region | ) |
If the region is a rectangle and rect != nullptr, *rect contains the rectangle.
Pixmap JXIntersection | ( | JXDisplay * | display, |
const JXImageMask & | p1, | ||
const JPoint & | p1Offset, | ||
const JXImageMask & | p2, | ||
const JPoint & | p2Offset, | ||
const JRect & | resultRect | ||
) |
|
inline |
Pixmap JXIntersection | ( | JXDisplay * | display, |
Region | region, | ||
const JPoint & | regionOffset, | ||
const JXImageMask & | pixmap, | ||
const JPoint & | pixmapOffset, | ||
const JRect & | resultRect | ||
) |
void JXIntersectRectWithRegion | ( | XRectangle * | rectangle, |
Region | src_region, | ||
Region | dest_region | ||
) |
dest_region can be the same as src_region
XRectangle JXJToXRect | ( | const JRect & | rect | ) |
JString JXPackStrings | ( | const JPtrArray< JString > & | strList, |
const JUtf8Byte * | separator, | ||
const JSize | sepLength | ||
) |
These routines pack and unpack a list of strings using the standard X format of nullptr separation.
JXUnpackStrings() does not clear strList.
Region JXRectangleRegion | ( | const JRect & | rect | ) |
Region JXRectangleRegion | ( | XRectangle * | rectangle | ) |
If the region is a rectangle and rect != nullptr, *rect contains the rectangle.
void JXSubtractRectFromRegion | ( | Region | src_region, |
XRectangle * | rectangle, | ||
Region | dest_region | ||
) |
dest_region can be the same as src_region
void JXUnpackFileNames | ( | const JUtf8Byte * | data, |
const JSize | byteCount, | ||
JPtrArray< JString > * | fileNameList, | ||
JPtrArray< JString > * | urlList | ||
) |
void JXUnpackStrings | ( | const JUtf8Byte * | data, |
const JSize | byteCount, | ||
JPtrArray< JString > * | strList, | ||
const JUtf8Byte * | separator = "\1" , |
||
const JSize | sepLength = 1 |
||
) |
|
inline |