[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Set Origin for Draw Operations?



Hi. I'm using GNOME/GTK+/GDK.

I want to set the origin of a drawingarea widget so that when I draw, my
operations are offset by that amount.

For example, I am drawing a line from (32,32) to (64,64). If I set the
origin to (32,32) then I want that line to draw from (0,0) to (32,32).

How do I do this? Is it a widget operation, or a GC operation? Thanks.

-- 
SEGV  -  http://www.cgocable.net/~mlepage/
Features Minion real-time strategy game, RTS game programming info,
GTK+ tutorial, etc.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]