MirBSD manpage: XShapeCombineMask(3), XShapeCombineRectangles(3), XShapeCombineRegion(3), XShapeCombineShape(3), XShapeGetRectangles(3), XShapeInputSelected(3), XShapeOffsetShape(3), XShapeQueryExtension(3), XShapeQueryExtents(3), XShapeQueryVersion(3), XShapeSelectInput(3)


XSHAPE(3X11)               X FUNCTIONS               XSHAPE(3X11)

NAME

     XShapeQueryExtension, XShapeQueryVersion, XShapeCombineRe-
     gion, XShapeCombineRectangles, XShapeCombineMask, XShapeCom-
     bineShape, XShapeOffsetShape, XShapeQueryExtents,
     XShapeSelectInput, XShapeInputSelected, XShapeGetRectangles
     - X nonrectangular shape functions

SYNTAX

     #include <X11/extensions/shape.h>

     Bool XShapeQueryExtension (
          Display *dpy,
          int *event_basep,
          int *error_basep);

     Status XShapeQueryVersion (
          Display *dpy,
          int *major_versionp,
          int *minor_versionp);

     void XShapeCombineRegion (
          Display *dpy,
          Window dest,
          int destKind,
          int xOff,
          int yOff,
          struct _XRegion *r,
          int op);

     void XShapeCombineRectangles (
          Display *dpy,
          XID dest,
          int destKind,
          int xOff,
          int yOff,
          XRectangle *rects,
          int n_rects,
          int op,
          int ordering);

     void XShapeCombineMask (
          Display *dpy,
          XID dest,
          int destKind,
          int xOff,
          int yOff,
          Pixmap src,
          int op);

     void XShapeCombineShape (
          Display *dpy,
          XID dest,

XFree86                   Version 4.5.0                         1

XSHAPE(3X11)               X FUNCTIONS               XSHAPE(3X11)

          int destKind,
          int xOff,
          int yOff,
          Pixmap src,
          int srcKind,
          int op);

     void XShapeOffsetShape (
          Display *dpy,
          XID dest,
          int destKind,
          int xOff,
          int yOff);

     Status XShapeQueryExtents (
          Display *dpy,
          Window window,
          int *bShaped,
          int *xbs,
          int *ybs,
          unsigned int *wbs,
          unsigned int *hbs,
          int *cShaped,
          int *xcs,
          int *ycs,
          unsigned int *wcs,
          unsigned int *hcs);

     void XShapeSelectInput (
          Display *dpy,
          Window window,
          unsigned longmask);

     unsigned long XShapeInputSelected (
          Display *dpy,
          Window window);

     XRectangle *XShapeGetRectangles (
          Display *dpy,
          Window window,
          int kind,
          int *count,
          int *ordering);

STRUCTURES

     typedef struct {
         int type;                 /* of event */
         unsigned long serial;     /* # of last request processed by server */
         Bool send_event;          /* true if this came frome a SendEvent request */
         Display *display;         /* Display the event was read from */
         Window window;            /* window of event */
         int kind;                 /* ShapeBounding or ShapeClip */

XFree86                   Version 4.5.0                         2

XSHAPE(3X11)               X FUNCTIONS               XSHAPE(3X11)

         int x, y;                 /* extents of new region */
         unsigned width, height;
         Time time;                /* server timestamp when region changed */
         Bool shaped;              /* true if the region exists */
     } XShapeEvent;

DESCRIPTION

     The X11 Nonrectangular Window Shape Extension adds nonrec-
     tangular windows to the X Window System.

PREDEFINED VALUES

     Operations:
          ShapeSet
          ShapeUnion
          ShapeIntersect
          ShapeSubtract
          ShapeInvert

     Shape Kinds:
          ShapeBounding
          ShapeClip

     Event defines:
          ShapeNotifyMask
          ShapeNotify

BUGS

     This manual pages needs a lot more work.

SEE ALSO

     X11 Nonrectangular Window Shape Extension

XFree86                   Version 4.5.0                         3

Generated on 2021-12-07 11:07:08 by $MirOS: src/scripts/roff2htm,v 1.103 2021/01/23 20:24:35 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2021 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.