View Single Post
Old 10-31-2009, 10:23 AM   #87
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Quote:
Originally Posted by ericshliao View Post
Another question:
I want to access some function, such as pango_matrix_rotate() (http://library.gnome.org/devel/pango...h-Storage.html). I have tried several times with no success. How do I know if certain function can be access through lgob, and in what form?

Added:
It seems the correct form is pango.Matrix.rotate().
Same happens to me from time to time.
What I do is grep lgob sources for the function I need. Look at the .def, .ovr, and iface.c files.

Also, note that the translation from C to lua is almost always done in this way:

module_widget_method => module.Widget.method

so pango_matrix_rotate() => pango.Matrix.rotate()


Btw, instead of using GDK drawing primitives, maybe is a better option to use Cairo, it's much powerful, easier and looks it has better documentation as well.
You can find 3 or 4 examples in lgob sources too.


Regards,
Iņigo
Iņigo is offline   Reply With Quote