On 8/8/07, Scott Morgan <[EMAIL PROTECTED]> wrote:
> As per the subject, what's the safe way of passing a wxDC object into a
> wxLuaState?

Take a look at wxLua/modules/wxbind/src/wxcore_gdi.cpp for examples.

wxLuaState::AddTrackedObject() if you want wxLua to delete it
wxLuaState::RemoveTrackedObject() to delete it
wxLuaState::PushUserDataType() to push it onto the Lua stack.

Get the tag (a number) from the class_tag member
wxLuaBindClass* wxLuaState::GetLuaClass(const char* className) const

Regards,
    John Labenski

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to