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

« back to all changes in this revision

Viewing changes to Wrappers/MyGUI.Managed/Generate/MyGUI.Managed_TextBox.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         Generate utility by Albert Semenov
4
 
        @date           01/2009
5
 
        @module
6
 
*/
7
 
#pragma once
8
 
 
9
 
#include "MyGUI.Managed_Widget.h"
10
 
 
11
 
namespace MyGUI
12
 
{
13
 
        namespace Managed
14
 
        {
15
 
 
16
 
                public ref class TextBox : public Widget
17
 
                {
18
 
 
19
 
                private:
20
 
                        typedef MyGUI::TextBox ThisType;
21
 
 
22
 
                public:
23
 
                        TextBox() : Widget() { }
24
 
 
25
 
                internal:
26
 
                        TextBox( MyGUI::TextBox* _native ) : Widget(_native) { }
27
 
                        TextBox( BaseWidget^ _parent, MyGUI::WidgetStyle _style, const std::string& _skin, const MyGUI::IntCoord& _coord, MyGUI::Align _align, const std::string& _layer, const std::string& _name )
28
 
                        {
29
 
                                CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
30
 
                        }
31
 
 
32
 
                        virtual const std::string& getClassTypeName() override { return ThisType::getClassTypeName(); }
33
 
 
34
 
                        static BaseWidget^ WidgetCreator(BaseWidget^ _parent, MyGUI::WidgetStyle _style, const std::string& _skin, const MyGUI::IntCoord& _coord, MyGUI::Align _align, const std::string& _layer, const std::string& _name)
35
 
                        {
36
 
                                return gcnew TextBox(_parent, _style, _skin, _coord, _align, _layer, _name);
37
 
                        }
38
 
 
39
 
 
40
 
                        //InsertPoint
41
 
 
42
 
        public:
43
 
                void SetCaptionWithReplacing(
44
 
                        Convert<const std::string &>::Type _value )
45
 
                {
46
 
                        MMYGUI_CHECK_NATIVE(mNative);
47
 
                        static_cast<ThisType*>(mNative)->setCaptionWithReplacing(
48
 
                                Convert<const std::string &>::From(_value) );
49
 
                }
50
 
 
51
 
 
52
 
 
53
 
        public:
54
 
                property Convert<const MyGUI::Colour &>::Type TextColour
55
 
                {
56
 
                        Convert<const MyGUI::Colour &>::Type get( )
57
 
                        {
58
 
                                MMYGUI_CHECK_NATIVE(mNative);
59
 
                                return Convert<const MyGUI::Colour &>::To( static_cast<ThisType*>(mNative)->getTextColour() );
60
 
                        }
61
 
                        void set(Convert<const MyGUI::Colour &>::Type _value)
62
 
                        {
63
 
                                MMYGUI_CHECK_NATIVE(mNative);
64
 
                                static_cast<ThisType*>(mNative)->setTextColour( Convert<const MyGUI::Colour &>::From(_value) );
65
 
                        }
66
 
                }
67
 
        
68
 
 
69
 
 
70
 
        public:
71
 
                property Convert<MyGUI::Align>::Type TextAlign
72
 
                {
73
 
                        Convert<MyGUI::Align>::Type get( )
74
 
                        {
75
 
                                MMYGUI_CHECK_NATIVE(mNative);
76
 
                                return Convert<MyGUI::Align>::To( static_cast<ThisType*>(mNative)->getTextAlign() );
77
 
                        }
78
 
                        void set(Convert<MyGUI::Align>::Type _value)
79
 
                        {
80
 
                                MMYGUI_CHECK_NATIVE(mNative);
81
 
                                static_cast<ThisType*>(mNative)->setTextAlign( Convert<MyGUI::Align>::From(_value) );
82
 
                        }
83
 
                }
84
 
        
85
 
 
86
 
 
87
 
        public:
88
 
                property Convert<int>::Type FontHeight
89
 
                {
90
 
                        Convert<int>::Type get( )
91
 
                        {
92
 
                                MMYGUI_CHECK_NATIVE(mNative);
93
 
                                return Convert<int>::To( static_cast<ThisType*>(mNative)->getFontHeight() );
94
 
                        }
95
 
                        void set(Convert<int>::Type _value)
96
 
                        {
97
 
                                MMYGUI_CHECK_NATIVE(mNative);
98
 
                                static_cast<ThisType*>(mNative)->setFontHeight( Convert<int>::From(_value) );
99
 
                        }
100
 
                }
101
 
        
102
 
 
103
 
 
104
 
        public:
105
 
                property Convert<const std::string &>::Type FontName
106
 
                {
107
 
                        Convert<const std::string &>::Type get( )
108
 
                        {
109
 
                                MMYGUI_CHECK_NATIVE(mNative);
110
 
                                return Convert<const std::string &>::To( static_cast<ThisType*>(mNative)->getFontName() );
111
 
                        }
112
 
                        void set(Convert<const std::string &>::Type _value)
113
 
                        {
114
 
                                MMYGUI_CHECK_NATIVE(mNative);
115
 
                                static_cast<ThisType*>(mNative)->setFontName( Convert<const std::string &>::From(_value) );
116
 
                        }
117
 
                }
118
 
        
119
 
 
120
 
 
121
 
        public:
122
 
                property Convert<const MyGUI::UString &>::Type Caption
123
 
                {
124
 
                        Convert<const MyGUI::UString &>::Type get( )
125
 
                        {
126
 
                                MMYGUI_CHECK_NATIVE(mNative);
127
 
                                return Convert<const MyGUI::UString &>::To( static_cast<ThisType*>(mNative)->getCaption() );
128
 
                        }
129
 
                        void set(Convert<const MyGUI::UString &>::Type _value)
130
 
                        {
131
 
                                MMYGUI_CHECK_NATIVE(mNative);
132
 
                                static_cast<ThisType*>(mNative)->setCaption( Convert<const MyGUI::UString &>::From(_value) );
133
 
                        }
134
 
                }
135
 
        
136
 
 
137
 
 
138
 
        public:
139
 
                Convert<MyGUI::types::TSize< int >>::Type GetTextSize( )
140
 
                {
141
 
                        MMYGUI_CHECK_NATIVE(mNative);
142
 
                        return Convert<MyGUI::types::TSize< int >>::To(
143
 
                                static_cast<ThisType*>(mNative)->getTextSize( ) );
144
 
                }
145
 
 
146
 
 
147
 
 
148
 
        public:
149
 
                Convert<MyGUI::types::TCoord< int >>::Type GetTextRegion( )
150
 
                {
151
 
                        MMYGUI_CHECK_NATIVE(mNative);
152
 
                        return Convert<MyGUI::types::TCoord< int >>::To(
153
 
                                static_cast<ThisType*>(mNative)->getTextRegion( ) );
154
 
                }
155
 
 
156
 
 
157
 
 
158
 
   
159
 
 
160
 
 
161
 
   
162
 
 
163
 
 
164
 
   
165
 
 
166
 
 
167
 
                };
168
 
 
169
 
        } // namespace Managed
170
 
} // namespace MyGUI