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

« back to all changes in this revision

Viewing changes to Wrappers/MyGUI.Managed/PointerManager.h

  • 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
 
/*!
2
 
        @file
3
 
        @author         Albert Semenov
4
 
        @date           02/2010
5
 
        @module
6
 
*/
7
 
#pragma once
8
 
 
9
 
#include <MyGUI.h>
10
 
 
11
 
namespace MyGUI
12
 
{
13
 
        namespace Managed
14
 
        {
15
 
                public ref class PointerManager
16
 
                {
17
 
                private:
18
 
                        PointerManager() { }
19
 
 
20
 
                public:
21
 
                        static property PointerManager ^ Instance
22
 
                        {
23
 
                                PointerManager ^ get( )
24
 
                                {
25
 
                                        if (mPointerManager == nullptr)
26
 
                                        {
27
 
                                                mPointerManager = MyGUI::PointerManager::getInstancePtr();
28
 
                                                if (mPointerManager == nullptr)
29
 
                                                {
30
 
                                                        throw gcnew System::NullReferenceException();
31
 
                                                }
32
 
                                        }
33
 
                                        return m_instance;
34
 
                                }
35
 
                        }
36
 
 
37
 
                public:
38
 
                        property bool Visible
39
 
                        {
40
 
                                bool get()
41
 
                                {
42
 
                                        return mPointerManager->isVisible();
43
 
                                }
44
 
                                void set(bool _value)
45
 
                                {
46
 
                                        mPointerManager->setVisible(_value);
47
 
                                }
48
 
                        }
49
 
 
50
 
                private:
51
 
                        static PointerManager ^ m_instance = gcnew PointerManager();
52
 
                        static MyGUI::PointerManager* mPointerManager = nullptr;
53
 
                };
54
 
        }
55
 
}