Re: [Xpert]X11 viewport stuff

2001-11-10 Thread Daniel Secrieru
>No, the origin is always the drawable origin. The clip origin > tells where the clipmask gets placed on the drawable. You still need > to translate coordinates if you don't want drawable relative rendering. Even with XSetClipRectangles(...)? ___

Re: [Xpert]X11 viewport stuff

2001-11-09 Thread Mark Vojkovich
On Sat, 10 Nov 2001, Daniel Secrieru wrote: > >For the orgin, that's about all that can be done. Clipping > > to the extents could be done with the clipmask in the GC. > You mean with XSetClipRectangles(...)? Yes. A single rect could be used to confine rendering to the viewport. >

Re: [Xpert]X11 viewport stuff

2001-11-09 Thread Daniel Secrieru
>For the orgin, that's about all that can be done. Clipping > to the extents could be done with the clipmask in the GC. You mean with XSetClipRectangles(...)? (the origin of the GC could also be set in this way - the clip_x_origin/clip_y_origin in XGCValues, isn't it?) Dany. _

Re: [Xpert]X11 viewport stuff

2001-11-09 Thread Mark Vojkovich
On Sat, 10 Nov 2001, Daniel Secrieru wrote: > >I don't know what those Windows functions are suppossed to do. > > All rendering in X is window-relative. If that viewport function > > lets you change that, there is no equivalent in X and you'll > > have to do the viewport translation yourself

Re: [Xpert]X11 viewport stuff

2001-11-09 Thread Daniel Secrieru
SetViewportOrgEx: The SetViewportOrgEx function sets the viewport origin of a device context by using the specified coordinates. SetViewportExtEx The SetViewportExtEx function sets the horizontal and vertical extents of the viewport for a device context by using the specified values. SetWindowOr

Re: [Xpert]X11 viewport stuff

2001-11-09 Thread Mark Vojkovich
On Sat, 10 Nov 2001, Daniel Secrieru wrote: > How do I set in X11 the GC origin/extents and Window origin/extents, if > at all possible? > In Win32, the corespondent functions are: > SetViewportOrgEx/SetViewportExtEx, for Win32 DC and > SetWindowOrgEx/SetWindowExtEx for Win32 Window.