Drawing on a canvas

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
didi
Posts: 166
Joined: Fri May 04, 2007 8:24 pm
Location: Germany

Drawing on a canvas

Post by didi »

How can i get the visible size of a canvas ?

The coordinate of the upper left is X=0 Y=0 . What are the coordinates of the lower right ?

It seems, that the lower y-coordinate is slightly smaller than the initialized y-value.
If the frame is 'default' , it is resizeable . If i pull the window bigger the canvas is redrawn and i see elements i didn't see at first . So Is the virtual canvas-size endless ?

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

So Is the virtual canvas-size endless ?
as long as you don't specify a size for the canvas it will fill whatever space the host container and the layout manager of the host container allows it to fill. So, yes in this case its practically endless.

Lutz

Locked