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

« back to all changes in this revision

Viewing changes to Wrappers/MyGUI_Sharp/Widgets/Generate/MyGUI_Sharp_TextBox.cs

  • 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
 
 
8
using System;
 
9
using System.Runtime.InteropServices;
 
10
 
 
11
namespace MyGUI.Sharp
 
12
{
 
13
    public  class TextBox :
 
14
                Widget
 
15
    {
 
16
        #region TextBox
 
17
 
 
18
        protected override string GetWidgetType() { return "TextBox"; }
 
19
 
 
20
        internal static BaseWidget RequestWrapTextBox(BaseWidget _parent, IntPtr _widget)
 
21
        {
 
22
                        TextBox widget = new TextBox();
 
23
                        widget.WrapWidget(_parent, _widget);
 
24
            return widget;
 
25
        }
 
26
 
 
27
        internal static BaseWidget RequestCreateTextBox(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 
28
        {
 
29
                        TextBox widget = new TextBox();
 
30
                        widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name);
 
31
            return widget;
 
32
        }
 
33
        
 
34
                #endregion
 
35
        
 
36
                
 
37
                //InsertPoint
 
38
                #region Method SetCaptionWithReplacing
 
39
 
 
40
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
41
                private static extern void ExportTextBox_SetCaptionWithReplacing__value(IntPtr _native,
 
42
                        [MarshalAs(UnmanagedType.LPStr)] string _value);
 
43
 
 
44
                public void SetCaptionWithReplacing(
 
45
                        string _value)
 
46
                {
 
47
                        ExportTextBox_SetCaptionWithReplacing__value(Native,
 
48
                                _value);
 
49
                }
 
50
 
 
51
                #endregion
 
52
                #region Property TextShadow
 
53
 
 
54
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
55
        
 
56
                private static extern bool ExportTextBox_GetTextShadow(IntPtr _widget);
 
57
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
58
                private static extern void ExportTextBox_SetTextShadow(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
 
59
 
 
60
                public bool TextShadow
 
61
                {
 
62
                        get { return ExportTextBox_GetTextShadow(Native); }
 
63
                        set { ExportTextBox_SetTextShadow(Native, value); }
 
64
                }
 
65
 
 
66
                #endregion
 
67
                #region Property TextShadowColour
 
68
 
 
69
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
70
        
 
71
                private static extern IntPtr ExportTextBox_GetTextShadowColour(IntPtr _widget);
 
72
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
73
                private static extern void ExportTextBox_SetTextShadowColour(IntPtr _widget, [In] ref Colour _value);
 
74
 
 
75
                public Colour TextShadowColour
 
76
                {
 
77
                        get { return (Colour)Marshal.PtrToStructure(ExportTextBox_GetTextShadowColour(Native), typeof(Colour)); }
 
78
                        set { ExportTextBox_SetTextShadowColour(Native, ref value); }
 
79
                }
 
80
 
 
81
                #endregion
 
82
                #region Property TextColour
 
83
 
 
84
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
85
        
 
86
                private static extern IntPtr ExportTextBox_GetTextColour(IntPtr _widget);
 
87
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
88
                private static extern void ExportTextBox_SetTextColour(IntPtr _widget, [In] ref Colour _value);
 
89
 
 
90
                public Colour TextColour
 
91
                {
 
92
                        get { return (Colour)Marshal.PtrToStructure(ExportTextBox_GetTextColour(Native), typeof(Colour)); }
 
93
                        set { ExportTextBox_SetTextColour(Native, ref value); }
 
94
                }
 
95
 
 
96
                #endregion
 
97
                #region Property TextAlign
 
98
 
 
99
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
100
        
 
101
                private static extern Align ExportTextBox_GetTextAlign(IntPtr _widget);
 
102
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
103
                private static extern void ExportTextBox_SetTextAlign(IntPtr _widget, [MarshalAs(UnmanagedType.I4)] Align _value);
 
104
 
 
105
                public Align TextAlign
 
106
                {
 
107
                        get { return ExportTextBox_GetTextAlign(Native); }
 
108
                        set { ExportTextBox_SetTextAlign(Native, value); }
 
109
                }
 
110
 
 
111
                #endregion
 
112
                #region Property FontHeight
 
113
 
 
114
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
115
        
 
116
                private static extern int ExportTextBox_GetFontHeight(IntPtr _widget);
 
117
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
118
                private static extern void ExportTextBox_SetFontHeight(IntPtr _widget, int _value);
 
119
 
 
120
                public int FontHeight
 
121
                {
 
122
                        get { return ExportTextBox_GetFontHeight(Native); }
 
123
                        set { ExportTextBox_SetFontHeight(Native, value); }
 
124
                }
 
125
 
 
126
                #endregion
 
127
                #region Property FontName
 
128
 
 
129
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
130
        
 
131
                private static extern IntPtr ExportTextBox_GetFontName(IntPtr _widget);
 
132
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
133
                private static extern void ExportTextBox_SetFontName(IntPtr _widget, [MarshalAs(UnmanagedType.LPStr)] string _value);
 
134
 
 
135
                public string FontName
 
136
                {
 
137
                        get { return Marshal.PtrToStringAnsi(ExportTextBox_GetFontName(Native)); }
 
138
                        set { ExportTextBox_SetFontName(Native, value); }
 
139
                }
 
140
 
 
141
                #endregion
 
142
                #region Property Caption
 
143
 
 
144
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
145
        
 
146
                private static extern IntPtr ExportTextBox_GetCaption(IntPtr _widget);
 
147
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
148
                private static extern void ExportTextBox_SetCaption(IntPtr _widget, [MarshalAs(UnmanagedType.LPWStr)] string _value);
 
149
 
 
150
                public string Caption
 
151
                {
 
152
                        get { return Marshal.PtrToStringUni(ExportTextBox_GetCaption(Native)); }
 
153
                        set { ExportTextBox_SetCaption(Native, value); }
 
154
                }
 
155
 
 
156
                #endregion
 
157
                #region Property TextSize
 
158
 
 
159
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
160
        
 
161
                private static extern IntPtr ExportTextBox_GetTextSize(IntPtr _native);
 
162
 
 
163
                public IntSize TextSize
 
164
                {
 
165
                        get { return (IntSize)Marshal.PtrToStructure(ExportTextBox_GetTextSize(Native), typeof(IntSize)); }
 
166
                }
 
167
 
 
168
                #endregion
 
169
                #region Property TextRegion
 
170
 
 
171
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
172
        
 
173
                private static extern IntPtr ExportTextBox_GetTextRegion(IntPtr _native);
 
174
 
 
175
                public IntCoord TextRegion
 
176
                {
 
177
                        get { return (IntCoord)Marshal.PtrToStructure(ExportTextBox_GetTextRegion(Native), typeof(IntCoord)); }
 
178
                }
 
179
 
 
180
                #endregion
 
181
                
 
182
    }
 
183
}