~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Wrappers/WrapperGenerator/Data/Managed.Templates/ItemMarshaling.txt

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
                #{ThisName}^ Convert<MyGUI::#{ThisType}*>::To(MyGUI::#{ThisType}* _value)
2
 
                {
3
 
                        if (_value == nullptr) return nullptr;
4
 
                        WidgetHolder * obj = _value->getUserData< WidgetHolder >(false);
5
 
                        if (obj) return (#{ThisName}^)obj->toObject();
6
 
                        return gcnew #{ThisName}(_value);
7
 
                }
8
 
                MyGUI::#{ThisType}* Convert<MyGUI::#{ThisType}*>::From(#{ThisName}^ _value)
9
 
                {
10
 
                        if (_value == nullptr) return nullptr;
11
 
                        MyGUI::Widget* widget = _value->GetNativePtr();
12
 
                        if (widget == nullptr) return nullptr;
13
 
                        return widget->castType<MyGUI::#{ThisType}>(false);
14
 
                }