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

« back to all changes in this revision

Viewing changes to Wrappers/WrapperGenerator/Data/Export.Templates/DelegateRequest3.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
 
       namespace Scope#{ThisName}Event_#{DelegateName}
2
 
        {
3
 
                typedef void (MYGUICALLBACK *ExportHandle)(
4
 
                        Convert<#{OriginalTypeName1}>::Type ,
5
 
                        Convert<#{OriginalTypeName2}>::Type ,
6
 
                        Convert<#{OriginalTypeName3}>::Type );
7
 
                ExportHandle mExportHandle = nullptr;
8
 
                
9
 
                void OnEvent(
10
 
                        #{OriginalTypeName1} #{ValueName1} ,
11
 
                        #{OriginalTypeName2} #{ValueName2} ,
12
 
                        #{OriginalTypeName3} #{ValueName3} )
13
 
                {
14
 
                        mExportHandle(
15
 
                                Convert<#{OriginalTypeName1}>::To( #{ValueName1} ) ,
16
 
                                Convert<#{OriginalTypeName2}>::To( #{ValueName2} ) ,
17
 
                                Convert<#{OriginalTypeName3}>::To( #{ValueName3} ) );
18
 
                }
19
 
                
20
 
                MYGUIEXPORT void MYGUICALL Export#{ThisName}Event_Delegate#{DelegateName}( ExportHandle _delegate )
21
 
                {
22
 
                        mExportHandle = _delegate;
23
 
                }
24
 
                MYGUIEXPORT void MYGUICALL Export#{ThisName}Event_Advise#{DelegateName}( MyGUI::Widget* _widget, bool _advise )
25
 
                {
26
 
                        static_cast< MyGUI::#{ThisType}* >(_widget)->request#{DelegateName} = _advise ? MyGUI::newDelegate(OnEvent) : nullptr;
27
 
                }
28
 
        }