News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread
Author Message
Senior Member

Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1

Inside the table of each widget class there is a table called bind_lua_typeinfo. That table contains the key "name" whose value is the widget class.
In other words:


This prints "Fl_Button", which might be a useful piece of information in some cases, for example if a particular function needed to be called depending on what type of widget was activated.

I wonder if bind_lua_typeinfo is an intentionally created table, or if it's merely a product of whatever was used to create the FLTK bindings (tolua?). I ask this because if I ever find this info truly useful myself, it would be rather bothersome if suddenly a murgaLua version was released that no longer held the info (it doesn't appear to be available elsewhere). It seems like it might be a byproduct of the binding, which might mean that it would be much easier for something like this to slip through the cracks than something that was puposefully included.

09-15-2007 04:31 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread - mikshaw - 09-15-2007 04:31 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: