Revision: 659
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=659&view=rev
Author: mithro
Date: 2008-07-16 01:18:07 -0700 (Wed, 16 Jul 2008)
Log Message:
-----------
Make the default arguments of loadLayout work much better.
Modified Paths:
--------------
trunk/python-ogre/code_generators/cegui/hand_made_wrappers.py
Modified: trunk/python-ogre/code_generators/cegui/hand_made_wrappers.py
===================================================================
--- trunk/python-ogre/code_generators/cegui/hand_made_wrappers.py 2008-07-16 07:44:57 UTC (rev 658)
+++ trunk/python-ogre/code_generators/cegui/hand_made_wrappers.py 2008-07-16 08:18:07 UTC (rev 659)
@@ -399,24 +399,17 @@
WRAPPER_DEFINITION_WindowManager=\
"""
CEGUI::Window*
-WindowManager_loadWindowLayoutWithPrefix(::CEGUI::WindowManager & me,
+WindowManager_loadWindowLayout(::CEGUI::WindowManager & me,
const CEGUI::String& filename, const CEGUI::String& name_prefix = "", const CEGUI::String& resourceGroup = "") {
return me.loadWindowLayout( filename, name_prefix , resourceGroup);
}
-CEGUI::Window*
-WindowManager_loadWindowLayout(::CEGUI::WindowManager & me,
- const CEGUI::String& filename) {
- return me.loadWindowLayout( filename );
- }
-
"""
WRAPPER_REGISTRATION_WindowManager =[
- 'def ("loadWindowLayoutPrefix", &::WindowManager_loadWindowLayoutWithPrefix,\
- bp::return_value_policy< bp::reference_existing_object,bp::default_call_policies >());',
'def ("loadWindowLayout", &::WindowManager_loadWindowLayout,\
- bp::return_value_policy< bp::reference_existing_object,bp::default_call_policies >());'
+ ( bp::arg("filename"), bp::arg("name_prefix")="", bp::arg("resourceGroup")="" ), \
+ bp::return_value_policy< bp::reference_existing_object,bp::default_call_policies >());',
]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|