Gnome::CanvasItem.affine_absolute

F

FireAphis

Hello

I'm trying to assign an affine transformation to CanvasItem in my Ruby/
Gnome2 application. Apparently there is a method called
'affine_absolute' that I should use. The problem is that my ruby
doesn't recognize it. When I type 'Gnome::CanvasItem.methods' it isn't
in the list either. On the other hand when I google it I see this
method used by others. I checked the source code of the library
(http://sourceforge.krugle.com/files/cvs/cvs.sourceforge.net/ruby-
gnome2/ruby-gnome2/gnomecanvas/src/rbgnome-canvas-item.c) and the
method *is* defined there. I'm using the latest (0.16) release of the
library. Does anybody know what's wrong? Am I missing something?

Thanks

FireAphis
 
F

FireAphis

Hello

I'm trying to assign an affine transformation to CanvasItem in my Ruby/
Gnome2 application. Apparently there is a method called
'affine_absolute' that I should use. The problem is that my ruby
doesn't recognize it. When I type 'Gnome::CanvasItem.methods' it isn't
in the list either. On the other hand when I google it I see this
method used by others. I checked the source code of the library
(http://sourceforge.krugle.com/files/cvs/cvs.sourceforge.net/ruby-
gnome2/ruby-gnome2/gnomecanvas/src/rbgnome-canvas-item.c) and the
method *is* defined there. I'm using the latest (0.16) release of the
library. Does anybody know what's wrong? Am I missing something?

Thanks

FireAphis

As I suspected it was totally my mistake. I tried to see the method in
irb and used 'Gnome::CanvasItem.methods' for that. But
'affine_absolute' can be called only on instance so I should have used
'Gnome::CanvasItem.instance_methods'. For the same reason I had to
create an instance first and not to call
'Gnome::CanvasItem.affine_absolute'.

Silly me :)

FireAphis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top