[Xcb] A simple question on XCBGCFunction [SOLVED]
Vincent Torri
Vincent.Torri at iecn.u-nancy.fr
Thu May 18 09:56:55 PDT 2006
The tutorial on my server is not up to date at all. It was the first one
ever written. For a newer one, look in the doc/tutorial/ dir of the source
code
I think that the deprecated message was about
XCBConnSetupSuccessRepRootsIter
to get the screen, use this :
c = XCBConnect (display_name, &screen_num);
screen = XCBAuxGetScreen(data.conn, screen_num);
and use the xcb aux package
Vincent
On Thu, 18 May 2006, Osmo Maatta wrote:
> Hello,
>
> Thanks for your info.
>
> I already sent a "Solved & OK" message to this newsgroup. Maybe the
> message just vanished.
>
> Anyway this case is solved.
>
> Take a look at this simple code (based on the examples).
> http://www.futuredesktop.org/xcb/test2.c
>
> Compile it:
> gcc -Wall test2.c -o test2 `pkg-config --cflags --libs xcb`
>
> It reports some deprecated lines which I have to work out and move on...
>
> Run it
> ./test2
>
> Focus on the window and press (left) mouse button, drag the pointer.
> You should see a selection rectangle.
>
> That's all for now.
>
>
> Ian Osgood wrote:
> > Hi, Osmo!
> >
> > I was not able to get this to work unless I used
> > XCBLineStyleDoubleDash. Then xor did the right thing. You can also
> > verify this behavior using the "xgc" app.
> >
> > Dashed lines have very complex behavior, which seems to be affected by
> > many GC params, including Function, Foreground, Background, LineStyle,
> > LineWidth, DashOffset, DashList, and Stipple. I'm not sure what the
> > best combination is for this kind of interactive bounding box.
> >
> > (BTW, you want to use XCBCoordModeOrigin below.)
> >
> > Ian
> >
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
>
More information about the Xcb
mailing list