Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!usc!ucsd!ucbvax!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: set viewport on X Message-ID: <9008100000.AA18160@Larry.McRCIM.McGill.EDU> Date: 10 Aug 90 00:00:30 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 21 > I am using X11 and OFS/Motif to write graphics application. Is there > any function available to set the viewport of a drawable[?] "Actually, it's kind of hard to say." What's a viewport? If you mean what I suspect you mean (the ability to specify an arbitrary rectangle in some "virtual" coordinate space, which gets translated-&-scaled to fit the actual window), no, X does not even have such a notion. > If not, can you suggest any good method to implement it. Well, gee, you could always keep a handful of variables around and do the scaling yourself. It's a little tedious - you need to provide a "virtual" version of each of the X drawing routines you use - but I see no reason why it wouldn't be perfectly workable. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu