[Gtk-sharp-list] Doc weirdness for Gnome.CanvasPixbuf | Question: Gnome.CanvasPixbuf in Gnome.Canvase

Sebastian scut@nb.in-berlin.de
Tue, 11 Nov 2003 20:03:11 +0800


Hi,


I noted a small weirdness for:

http://www.go-mono.com/docs/monodoc.ashx?tlink=4@ecma%3A469%23CanvasPixbuf%2F


Where this two properties have the same description:
http://www.go-mono.com/docs/monodoc.ashx?link=p:Gnome.CanvasPixbuf.HeightInPixels
http://www.go-mono.com/docs/monodoc.ashx?link=p:Gnome.CanvasPixbuf.HeightSet

while the semantically equivalent width properties have different ones:
http://www.go-mono.com/docs/monodoc.ashx?link=p:Gnome.CanvasPixbuf.WidthInPixels
http://www.go-mono.com/docs/monodoc.ashx?link=p:Gnome.CanvasPixbuf.WidthSet

I guess the description for Width* is correct, and the HeightInPixels
property documentation is wrong.


An additional question: I have trouble aligning a CanvasPixbuf within a
Gnome.Canvas to the left border. Is there

  1. A way to set the Canvas to a 0,0 pixel based coordinate system with the
     origin at the left-uppermost pixel of the Gtk.Widget it is contained in?
     (like a natural "pixel-based" canvas)

or

  2. Get the exact pixel distance into the left/right direction to the
     border from within the 0,0 Canvas origin?


Thanks,
Sebastian

-- 
-. scut@nb.in-berlin.de -. + http://segfault.net/~scut/ `--------------------.
-' segfault.net/~scut/pgp `' 5453 AC95 1E02 FDA7 50D2 A42D 427E 6DEF 745A 8E07
`- W88 heads sold. 4 payloads ready, payment due. hi echelon! ---------------'