


XSHAPE(3X11)							 XSHAPE(3X11)
X11R5									X11R5



NAME
  XShapeQueryExtension,	XShapeQueryVersion, XShapeCombineRegion, XShapeCom-
  bineRectangles, XShapeCombineMask, XShapeCombineShape, XShapeOffsetShape,
  XShapeQueryExtents, XShapeSelectInput, XShapeInputSelected, XShapeGetRec-
  tangles - 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,
	  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 from a SendEvent	request	*/
      Display *display;	  /* Display the event was read	from */
      Window window;	  /* window of event */
      int kind;	  /* ShapeBounding or ShapeClip	*/
      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 _X_1_1 _N_o_n_r_e_c_t_a_n_g_u_l_a_r _W_i_n_d_o_w	_S_h_a_p_e _E_x_t_e_n_s_i_o_n	adds nonrectangular windows
  to the X Window System.




PREDEFINED VALUES
  Operations:
       _S_h_a_p_e_S_e_t
       _S_h_a_p_e_U_n_i_o_n
       _S_h_a_p_e_I_n_t_e_r_s_e_c_t
       _S_h_a_p_e_S_u_b_t_r_a_c_t
       _S_h_a_p_e_I_n_v_e_r_t

  Shape	Kinds:
       _S_h_a_p_e_B_o_u_n_d_i_n_g
       _S_h_a_p_e_C_l_i_p

  Event	defines:
       _S_h_a_p_e_N_o_t_i_f_y_M_a_s_k
       _S_h_a_p_e_N_o_t_i_f_y

BUGS
  This manual pages needs a lot	more work.

SEE ALSO
  _X_1_1 _N_o_n_r_e_c_t_a_n_g_u_l_a_r _W_i_n_d_o_w _S_h_a_p_e _E_x_t_e_n_s_i_o_n delim off



















































