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

« back to all changes in this revision

Viewing changes to Wrappers/DoxygenWrapper/Data/Managed_Templates/DelegateRequest2.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
       public:
 
2
                delegate void Handle#{DelegateName}(
 
3
                        Convert<#{OriginalTypeName1}>::Type #{ValueName1} ,
 
4
                        Convert<#{OriginalTypeName2}>::Type #{ValueName2} );
 
5
                event Handle#{DelegateName}^ Request#{DelegateName}
 
6
                {
 
7
                        void add(Handle#{DelegateName}^ _value)
 
8
                        {
 
9
                                mDelegate#{DelegateName} += _value;
 
10
                                MMYGUI_CHECK_NATIVE(mNative);
 
11
                                static_cast<ThisType*>(mNative)->request#{DelegateName} =
 
12
                                        static_cast< MyGUI::delegates::IDelegate2<
 
13
                                                #{OriginalTypeName1} ,
 
14
                                                #{OriginalTypeName2} > *>(
 
15
                                                        new Delegate2< Handle#{DelegateName}^ ,
 
16
                                                        #{OriginalTypeName1} ,
 
17
                                                        #{OriginalTypeName2} >(mDelegate#{DelegateName}) );
 
18
                        }
 
19
                        void remove(Handle#{DelegateName}^ _value)
 
20
                        {
 
21
                                mDelegate#{DelegateName} -= _value;
 
22
                                MMYGUI_CHECK_NATIVE(mNative);
 
23
                                if (mDelegate#{DelegateName} == nullptr)
 
24
                                        static_cast<ThisType*>(mNative)->request#{DelegateName} = nullptr;
 
25
                                else
 
26
                                        static_cast<ThisType*>(mNative)->request#{DelegateName} =
 
27
                                                static_cast< MyGUI::delegates::IDelegate2<
 
28
                                                        #{OriginalTypeName1} ,
 
29
                                                        #{OriginalTypeName2} > *>(
 
30
                                                                new Delegate2< Handle#{DelegateName}^ ,
 
31
                                                                        #{OriginalTypeName1} ,
 
32
                                                                        #{OriginalTypeName2} >(mDelegate#{DelegateName}) );
 
33
                        }
 
34
                }
 
35
        private:
 
36
                Handle#{DelegateName}^ mDelegate#{DelegateName};