[Xcb] XCBShapeNotifyMask missing shape.h
Vincent Torri
Vincent.Torri at iecn.u-nancy.fr
Wed Jun 15 10:09:14 PDT 2005
On Wed, 15 Jun 2005, Jamey Sharp wrote:
> On Wed, 2005-06-15 at 18:43 +0200, Vincent Torri wrote:
> > On Wed, 15 Jun 2005, Jamey Sharp wrote:
> > > On Wed, 2005-06-15 at 11:25 +0200, Vincent Torri wrote:
> > > > my bad, this one exists :) ShapeNotifyMask does not :-)
> > >
> > > Oh. :-) OK, so how would you use ShapeNotifyMask?
> >
> > XCBShapeSelectInput (_ecore_xcb_conn,
> > window,
> > ShapeNotifyMask);
> > :)
>
> Yay, another Xlib botch. :-/
>
> That parameter is just a BOOL. Just pass 1 or whatever.
ok, let's go for the next ones :
#define ShapeSet 0
#define ShapeUnion 1
#define ShapeIntersect 2
#define ShapeSubtract 3
#define ShapeInvert 4
For ShapeSet:
XCBShapeCombine (_ecore_xcb_conn,
ShapeSet, ShapeBounding, ShapeBounding,
window, x, y, shape_window);
(i suppose that i take SheBouding as a BOLL and take 1)
For ShapeUnion:
XCBShapeCombine (_ecore_xcb_conn,
ShapeUnion, ShapeBounding, ShapeBounding,
window, 0, 0, shape_window);
For ShapeIntersect:
XCBShapeRectangles (_ecore_xcb_conn,
ShapeIntersect, ShapeBounding, Unsorted,
window, 0, 0,
1, &rect);
Vincent
More information about the xcb
mailing list