MCPcopy Create free account
hub / github.com/MyGUI/mygui / TextBox

Class TextBox

Wrappers/MyGUI_Sharp/Widgets/Generate/MyGUI_Sharp_TextBox.cs:13–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace 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

Tested by

no test coverage detected