JX Application Framework
Loading...
Searching...
No Matches
Functions
jXUtil.h File Reference
#include <jx-af/jcore/JPtrArray-JString.h>
#include <jx-af/jcore/JRect.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
Include dependency graph for jXUtil.h:
This graph shows which files directly or indirectly include this file:

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 &regionOffset, 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 &regionOffset, 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)
 

Function Documentation

◆ JXCopyRegion()

Region JXCopyRegion ( Region  region)

XUnionRectWithRegion would probably be faster, but it doesn't work with an empty rectangle.

◆ JXFixBrokenURLs()

bool JXFixBrokenURLs ( const JUtf8Byte data,
const JSize  byteCount,
JXDisplay display,
const Window  srcWindow,
JString newData 
)

◆ JXGetRegionBounds()

JRect JXGetRegionBounds ( Region  region)

If the region is a rectangle and rect != nullptr, *rect contains the rectangle.

◆ JXIntersection() [1/3]

Pixmap JXIntersection ( JXDisplay display,
const JXImageMask p1,
const JPoint p1Offset,
const JXImageMask p2,
const JPoint p2Offset,
const JRect resultRect 
)

◆ JXIntersection() [2/3]

Pixmap JXIntersection ( JXDisplay display,
const JXImageMask pixmap,
const JPoint pixmapOffset,
Region  region,
const JPoint regionOffset,
const JRect resultRect 
)
inline

◆ JXIntersection() [3/3]

Pixmap JXIntersection ( JXDisplay display,
Region  region,
const JPoint regionOffset,
const JXImageMask pixmap,
const JPoint pixmapOffset,
const JRect resultRect 
)

◆ JXIntersectRectWithRegion()

void JXIntersectRectWithRegion ( XRectangle *  rectangle,
Region  src_region,
Region  dest_region 
)

dest_region can be the same as src_region

◆ JXJToXRect()

XRectangle JXJToXRect ( const JRect rect)

◆ JXPackFileNames()

JString JXPackFileNames ( const JPtrArray< JString > &  fileNameList)

◆ JXPackStrings()

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.

◆ JXRectangleRegion() [1/2]

Region JXRectangleRegion ( const JRect rect)

◆ JXRectangleRegion() [2/2]

Region JXRectangleRegion ( XRectangle *  rectangle)

◆ JXRegionIsRectangle()

bool JXRegionIsRectangle ( Region  region,
JRect rect 
)

If the region is a rectangle and rect != nullptr, *rect contains the rectangle.

◆ JXReportUnreachableHosts()

void JXReportUnreachableHosts ( const JPtrArray< JString > &  urlList)

◆ JXSubtractRectFromRegion()

void JXSubtractRectFromRegion ( Region  src_region,
XRectangle *  rectangle,
Region  dest_region 
)

dest_region can be the same as src_region

◆ JXUnpackFileNames()

void JXUnpackFileNames ( const JUtf8Byte data,
const JSize  byteCount,
JPtrArray< JString > *  fileNameList,
JPtrArray< JString > *  urlList 
)

◆ JXUnpackStrings()

void JXUnpackStrings ( const JUtf8Byte data,
const JSize  byteCount,
JPtrArray< JString > *  strList,
const JUtf8Byte separator = "\1",
const JSize  sepLength = 1 
)

◆ JXXToJRect()

JRect JXXToJRect ( const XRectangle &  rect)
inline