Revision: 645
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=645&view=rev
Author: andy_miller
Date: 2008-07-15 06:14:53 -0700 (Tue, 15 Jul 2008)
Log Message:
-----------
small cegui fix gor loadwindowlayout
Modified Paths:
--------------
trunk/python-ogre/code_generators/cegui/generate_code.py
trunk/python-ogre/code_generators/cegui/hand_made_wrappers.py
Modified: trunk/python-ogre/code_generators/cegui/generate_code.py
===================================================================
--- trunk/python-ogre/code_generators/cegui/generate_code.py 2008-07-15 13:10:54 UTC (rev 644)
+++ trunk/python-ogre/code_generators/cegui/generate_code.py 2008-07-15 13:14:53 UTC (rev 645)
@@ -148,6 +148,7 @@
for f in excludes:
CEGUI_ns.member_function(f).exclude()
CEGUI_ns.class_('RawDataContainer').exclude() # has pointers that need to be handled -- hopefully not needed
+
CEGUI_ns.member_function("::CEGUI::WindowManager::loadWindowLayout", arg_types=[None,None,None,None,None]).exclude()
Modified: trunk/python-ogre/code_generators/cegui/hand_made_wrappers.py
===================================================================
--- trunk/python-ogre/code_generators/cegui/hand_made_wrappers.py 2008-07-15 13:10:54 UTC (rev 644)
+++ trunk/python-ogre/code_generators/cegui/hand_made_wrappers.py 2008-07-15 13:14:53 UTC (rev 645)
@@ -400,16 +400,17 @@
"""
CEGUI::Window*
WindowManager_loadWindowLayout(::CEGUI::WindowManager & me,
- const CEGUI::String& filename, const CEGUI::String& name_prefix, const
- CEGUI::String& resourceGroup) {
+ const CEGUI::String& filename, const CEGUI::String& name_prefix, const CEGUI::String& resourceGroup) {
return me.loadWindowLayout( filename, name_prefix , resourceGroup);
}
"""
-WRAPPER_REGISTRATION_WindowManager=[
- 'def ("loadWindowLayout", &::WindowManager_loadWindowLayout);'
- ]
-
+WRAPPER_REGISTRATION_WindowManager =[
+ 'def ("loadWindowLayout", &::WindowManager_loadWindowLayout,\
+ bp::return_value_policy< bp::reference_existing_object,bp::default_call_policies >());'
+ ]
+
+
def apply_reg ( class_, code ):
for c in code:
class_.add_registration_code ( c )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|