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 EditBox :
14 		TextBox
15     {
16         #region EditBox
17 
GetWidgetType()18         protected override string GetWidgetType() { return "EditBox"; }
19 
RequestWrapEditBox(BaseWidget _parent, IntPtr _widget)20         internal static BaseWidget RequestWrapEditBox(BaseWidget _parent, IntPtr _widget)
21         {
22 			EditBox widget = new EditBox();
23 			widget.WrapWidget(_parent, _widget);
24             return widget;
25         }
26 
RequestCreateEditBox(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)27         internal static BaseWidget RequestCreateEditBox(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
28         {
29 			EditBox widget = new EditBox();
30 			widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name);
31             return widget;
32         }
33 
34 		#endregion
35 
36 
37 		//InsertPoint
38 		#region Event EditTextChange
39 
40 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBoxEvent_AdviseEditTextChange(IntPtr _native, bool _advise)41 		private static extern void ExportEditBoxEvent_AdviseEditTextChange(IntPtr _native, bool _advise);
42 
HandleEditTextChange( EditBox _sender)43 		public delegate void HandleEditTextChange(
44 			EditBox _sender);
45 
46 		private HandleEditTextChange mEventEditTextChange;
47 		public event HandleEditTextChange EventEditTextChange
48 		{
49 			add
50 			{
51 				if (ExportEventEditTextChange.mDelegate == null)
52 				{
53 					ExportEventEditTextChange.mDelegate = new ExportEventEditTextChange.ExportHandle(OnExportEditTextChange);
54 					ExportEventEditTextChange.ExportEditBoxEvent_DelegateEditTextChange(ExportEventEditTextChange.mDelegate);
55 				}
56 
57 				if (mEventEditTextChange == null)
58 					ExportEditBoxEvent_AdviseEditTextChange(Native, true);
59 				mEventEditTextChange += value;
60 			}
61 			remove
62 			{
63 				mEventEditTextChange -= value;
64 				if (mEventEditTextChange == null)
65 					ExportEditBoxEvent_AdviseEditTextChange(Native, false);
66 			}
67 		}
68 
69 		private struct ExportEventEditTextChange
70 		{
71 			[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBoxEvent_DelegateEditTextChangeMyGUI.Sharp.EditBox.ExportEventEditTextChange72 			public static extern void ExportEditBoxEvent_DelegateEditTextChange(ExportHandle _delegate);
73 			[UnmanagedFunctionPointer(CallingConvention.StdCall)]
ExportHandleMyGUI.Sharp.EditBox.ExportEventEditTextChange74 			public delegate void ExportHandle(
75 				IntPtr _sender);
76 
77 			public static ExportHandle mDelegate;
78 		}
79 
OnExportEditTextChange( IntPtr _sender)80 		private static void OnExportEditTextChange(
81 			IntPtr _sender)
82 		{
83 			EditBox sender = (EditBox)BaseWidget.GetByNative(_sender);
84 
85 			if (sender.mEventEditTextChange != null)
86 				sender.mEventEditTextChange(
87 					sender);
88 		}
89 
90 		#endregion
91 		#region Event EditSelectAccept
92 
93 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBoxEvent_AdviseEditSelectAccept(IntPtr _native, bool _advise)94 		private static extern void ExportEditBoxEvent_AdviseEditSelectAccept(IntPtr _native, bool _advise);
95 
HandleEditSelectAccept( EditBox _sender)96 		public delegate void HandleEditSelectAccept(
97 			EditBox _sender);
98 
99 		private HandleEditSelectAccept mEventEditSelectAccept;
100 		public event HandleEditSelectAccept EventEditSelectAccept
101 		{
102 			add
103 			{
104 				if (ExportEventEditSelectAccept.mDelegate == null)
105 				{
106 					ExportEventEditSelectAccept.mDelegate = new ExportEventEditSelectAccept.ExportHandle(OnExportEditSelectAccept);
107 					ExportEventEditSelectAccept.ExportEditBoxEvent_DelegateEditSelectAccept(ExportEventEditSelectAccept.mDelegate);
108 				}
109 
110 				if (mEventEditSelectAccept == null)
111 					ExportEditBoxEvent_AdviseEditSelectAccept(Native, true);
112 				mEventEditSelectAccept += value;
113 			}
114 			remove
115 			{
116 				mEventEditSelectAccept -= value;
117 				if (mEventEditSelectAccept == null)
118 					ExportEditBoxEvent_AdviseEditSelectAccept(Native, false);
119 			}
120 		}
121 
122 		private struct ExportEventEditSelectAccept
123 		{
124 			[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBoxEvent_DelegateEditSelectAcceptMyGUI.Sharp.EditBox.ExportEventEditSelectAccept125 			public static extern void ExportEditBoxEvent_DelegateEditSelectAccept(ExportHandle _delegate);
126 			[UnmanagedFunctionPointer(CallingConvention.StdCall)]
ExportHandleMyGUI.Sharp.EditBox.ExportEventEditSelectAccept127 			public delegate void ExportHandle(
128 				IntPtr _sender);
129 
130 			public static ExportHandle mDelegate;
131 		}
132 
OnExportEditSelectAccept( IntPtr _sender)133 		private static void OnExportEditSelectAccept(
134 			IntPtr _sender)
135 		{
136 			EditBox sender = (EditBox)BaseWidget.GetByNative(_sender);
137 
138 			if (sender.mEventEditSelectAccept != null)
139 				sender.mEventEditSelectAccept(
140 					sender);
141 		}
142 
143 		#endregion
144 		#region Method SetPasswordChar
145 
146 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetPasswordChar__char(IntPtr _native, [MarshalAs(UnmanagedType.LPWStr)] string _char)147 		private static extern void ExportEditBox_SetPasswordChar__char(IntPtr _native,
148 			[MarshalAs(UnmanagedType.LPWStr)] string _char);
149 
SetPasswordChar( string _char)150 		public void SetPasswordChar(
151 			string _char)
152 		{
153 			ExportEditBox_SetPasswordChar__char(Native,
154 				_char);
155 		}
156 
157 		#endregion
158 		#region Method EraseText
159 
160 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_EraseText__start__count(IntPtr _native, uint _start, uint _count)161 		private static extern void ExportEditBox_EraseText__start__count(IntPtr _native,
162 			uint _start,
163 			uint _count);
164 
EraseText( uint _start, uint _count)165 		public void EraseText(
166 			uint _start,
167 			uint _count)
168 		{
169 			ExportEditBox_EraseText__start__count(Native,
170 				_start,
171 				_count);
172 		}
173 
174 		#endregion
175 		#region Method AddText
176 
177 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_AddText__text(IntPtr _native, [MarshalAs(UnmanagedType.LPWStr)] string _text)178 		private static extern void ExportEditBox_AddText__text(IntPtr _native,
179 			[MarshalAs(UnmanagedType.LPWStr)] string _text);
180 
AddText( string _text)181 		public void AddText(
182 			string _text)
183 		{
184 			ExportEditBox_AddText__text(Native,
185 				_text);
186 		}
187 
188 		#endregion
189 		#region Method InsertText
190 
191 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_InsertText__text__index(IntPtr _native, [MarshalAs(UnmanagedType.LPWStr)] string _text, uint _index)192 		private static extern void ExportEditBox_InsertText__text__index(IntPtr _native,
193 			[MarshalAs(UnmanagedType.LPWStr)] string _text,
194 			uint _index);
195 
InsertText( string _text, uint _index)196 		public void InsertText(
197 			string _text,
198 			uint _index)
199 		{
200 			ExportEditBox_InsertText__text__index(Native,
201 				_text,
202 				_index);
203 		}
204 
205 		#endregion
206 		#region Method SetTextSelectionColour
207 
208 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetTextSelectionColour__value(IntPtr _native, [In] ref Colour _value)209 		private static extern void ExportEditBox_SetTextSelectionColour__value(IntPtr _native,
210 			[In] ref Colour _value);
211 
SetTextSelectionColour( Colour _value)212 		public void SetTextSelectionColour(
213 			Colour _value)
214 		{
215 			ExportEditBox_SetTextSelectionColour__value(Native,
216 				ref _value);
217 		}
218 
219 		#endregion
220 		#region Method DeleteTextSelection
221 
222 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_DeleteTextSelection(IntPtr _native)223 		private static extern void ExportEditBox_DeleteTextSelection(IntPtr _native);
224 
DeleteTextSelection( )225 		public void DeleteTextSelection( )
226 		{
227 			ExportEditBox_DeleteTextSelection(Native);
228 		}
229 
230 		#endregion
231 		#region Method SetTextSelection
232 
233 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetTextSelection__start__end(IntPtr _native, uint _start, uint _end)234 		private static extern void ExportEditBox_SetTextSelection__start__end(IntPtr _native,
235 			uint _start,
236 			uint _end);
237 
SetTextSelection( uint _start, uint _end)238 		public void SetTextSelection(
239 			uint _start,
240 			uint _end)
241 		{
242 			ExportEditBox_SetTextSelection__start__end(Native,
243 				_start,
244 				_end);
245 		}
246 
247 		#endregion
248 		#region Method GetTextInterval
249 
250 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
251 
ExportEditBox_GetTextInterval__start__count(IntPtr _native, uint _start, uint _count)252 		private static extern IntPtr ExportEditBox_GetTextInterval__start__count(IntPtr _native,
253 			uint _start,
254 			uint _count);
255 
GetTextInterval( uint _start, uint _count)256 		public string GetTextInterval(
257 			uint _start,
258 			uint _count)
259 		{
260 			return Marshal.PtrToStringUni(ExportEditBox_GetTextInterval__start__count(Native,
261 				_start,
262 				_count));
263 		}
264 
265 		#endregion
266 		#region Method SetTextIntervalColour
267 
268 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetTextIntervalColour__start__count__colour(IntPtr _native, uint _start, uint _count, [In] ref Colour _colour)269 		private static extern void ExportEditBox_SetTextIntervalColour__start__count__colour(IntPtr _native,
270 			uint _start,
271 			uint _count,
272 			[In] ref Colour _colour);
273 
SetTextIntervalColour( uint _start, uint _count, Colour _colour)274 		public void SetTextIntervalColour(
275 			uint _start,
276 			uint _count,
277 			Colour _colour)
278 		{
279 			ExportEditBox_SetTextIntervalColour__start__count__colour(Native,
280 				_start,
281 				_count,
282 				ref _colour);
283 		}
284 
285 		#endregion
286 		#region Property HScrollPosition
287 
288 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
289 
ExportEditBox_GetHScrollPosition(IntPtr _widget)290 		private static extern uint ExportEditBox_GetHScrollPosition(IntPtr _widget);
291 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetHScrollPosition(IntPtr _widget, uint _value)292 		private static extern void ExportEditBox_SetHScrollPosition(IntPtr _widget, uint _value);
293 
294 		public uint HScrollPosition
295 		{
296 			get { return ExportEditBox_GetHScrollPosition(Native); }
297 			set { ExportEditBox_SetHScrollPosition(Native, value); }
298 		}
299 
300 		#endregion
301 		#region Property HScrollRange
302 
303 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
304 
ExportEditBox_GetHScrollRange(IntPtr _native)305 		private static extern uint ExportEditBox_GetHScrollRange(IntPtr _native);
306 
307 		public uint HScrollRange
308 		{
309 			get { return ExportEditBox_GetHScrollRange(Native); }
310 		}
311 
312 		#endregion
313 		#region Property IsVisibleHScroll
314 
315 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
316 
ExportEditBox_IsVisibleHScroll(IntPtr _widget)317 		private static extern bool ExportEditBox_IsVisibleHScroll(IntPtr _widget);
318 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetVisibleHScroll(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value)319 		private static extern void ExportEditBox_SetVisibleHScroll(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
320 
321 		public bool IsVisibleHScroll
322 		{
323 			get { return ExportEditBox_IsVisibleHScroll(Native); }
324 			set { ExportEditBox_SetVisibleHScroll(Native, value); }
325 		}
326 
327 		#endregion
328 		#region Property VScrollPosition
329 
330 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
331 
ExportEditBox_GetVScrollPosition(IntPtr _widget)332 		private static extern uint ExportEditBox_GetVScrollPosition(IntPtr _widget);
333 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetVScrollPosition(IntPtr _widget, uint _value)334 		private static extern void ExportEditBox_SetVScrollPosition(IntPtr _widget, uint _value);
335 
336 		public uint VScrollPosition
337 		{
338 			get { return ExportEditBox_GetVScrollPosition(Native); }
339 			set { ExportEditBox_SetVScrollPosition(Native, value); }
340 		}
341 
342 		#endregion
343 		#region Property VScrollRange
344 
345 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
346 
ExportEditBox_GetVScrollRange(IntPtr _native)347 		private static extern uint ExportEditBox_GetVScrollRange(IntPtr _native);
348 
349 		public uint VScrollRange
350 		{
351 			get { return ExportEditBox_GetVScrollRange(Native); }
352 		}
353 
354 		#endregion
355 		#region Property IsVisibleVScroll
356 
357 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
358 
ExportEditBox_IsVisibleVScroll(IntPtr _widget)359 		private static extern bool ExportEditBox_IsVisibleVScroll(IntPtr _widget);
360 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetVisibleVScroll(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value)361 		private static extern void ExportEditBox_SetVisibleVScroll(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
362 
363 		public bool IsVisibleVScroll
364 		{
365 			get { return ExportEditBox_IsVisibleVScroll(Native); }
366 			set { ExportEditBox_SetVisibleVScroll(Native, value); }
367 		}
368 
369 		#endregion
370 		#region Property InvertSelected
371 
372 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
373 
ExportEditBox_GetInvertSelected(IntPtr _widget)374 		private static extern bool ExportEditBox_GetInvertSelected(IntPtr _widget);
375 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetInvertSelected(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value)376 		private static extern void ExportEditBox_SetInvertSelected(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
377 
378 		public bool InvertSelected
379 		{
380 			get { return ExportEditBox_GetInvertSelected(Native); }
381 			set { ExportEditBox_SetInvertSelected(Native, value); }
382 		}
383 
384 		#endregion
385 		#region Property TabPrinting
386 
387 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
388 
ExportEditBox_GetTabPrinting(IntPtr _widget)389 		private static extern bool ExportEditBox_GetTabPrinting(IntPtr _widget);
390 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetTabPrinting(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value)391 		private static extern void ExportEditBox_SetTabPrinting(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
392 
393 		public bool TabPrinting
394 		{
395 			get { return ExportEditBox_GetTabPrinting(Native); }
396 			set { ExportEditBox_SetTabPrinting(Native, value); }
397 		}
398 
399 		#endregion
400 		#region Property EditWordWrap
401 
402 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
403 
ExportEditBox_GetEditWordWrap(IntPtr _widget)404 		private static extern bool ExportEditBox_GetEditWordWrap(IntPtr _widget);
405 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetEditWordWrap(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value)406 		private static extern void ExportEditBox_SetEditWordWrap(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
407 
408 		public bool EditWordWrap
409 		{
410 			get { return ExportEditBox_GetEditWordWrap(Native); }
411 			set { ExportEditBox_SetEditWordWrap(Native, value); }
412 		}
413 
414 		#endregion
415 		#region Property PasswordChar
416 
417 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
418 
ExportEditBox_GetPasswordChar(IntPtr _widget)419 		private static extern uint ExportEditBox_GetPasswordChar(IntPtr _widget);
420 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetPasswordChar(IntPtr _widget, uint _value)421 		private static extern void ExportEditBox_SetPasswordChar(IntPtr _widget, uint _value);
422 
423 		public uint PasswordChar
424 		{
425 			get { return ExportEditBox_GetPasswordChar(Native); }
426 			set { ExportEditBox_SetPasswordChar(Native, value); }
427 		}
428 
429 		#endregion
430 		#region Property EditStatic
431 
432 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
433 
ExportEditBox_GetEditStatic(IntPtr _widget)434 		private static extern bool ExportEditBox_GetEditStatic(IntPtr _widget);
435 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetEditStatic(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value)436 		private static extern void ExportEditBox_SetEditStatic(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
437 
438 		public bool EditStatic
439 		{
440 			get { return ExportEditBox_GetEditStatic(Native); }
441 			set { ExportEditBox_SetEditStatic(Native, value); }
442 		}
443 
444 		#endregion
445 		#region Property EditMultiLine
446 
447 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
448 
ExportEditBox_GetEditMultiLine(IntPtr _widget)449 		private static extern bool ExportEditBox_GetEditMultiLine(IntPtr _widget);
450 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetEditMultiLine(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value)451 		private static extern void ExportEditBox_SetEditMultiLine(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
452 
453 		public bool EditMultiLine
454 		{
455 			get { return ExportEditBox_GetEditMultiLine(Native); }
456 			set { ExportEditBox_SetEditMultiLine(Native, value); }
457 		}
458 
459 		#endregion
460 		#region Property EditPassword
461 
462 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
463 
ExportEditBox_GetEditPassword(IntPtr _widget)464 		private static extern bool ExportEditBox_GetEditPassword(IntPtr _widget);
465 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetEditPassword(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value)466 		private static extern void ExportEditBox_SetEditPassword(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
467 
468 		public bool EditPassword
469 		{
470 			get { return ExportEditBox_GetEditPassword(Native); }
471 			set { ExportEditBox_SetEditPassword(Native, value); }
472 		}
473 
474 		#endregion
475 		#region Property EditReadOnly
476 
477 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
478 
ExportEditBox_GetEditReadOnly(IntPtr _widget)479 		private static extern bool ExportEditBox_GetEditReadOnly(IntPtr _widget);
480 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetEditReadOnly(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value)481 		private static extern void ExportEditBox_SetEditReadOnly(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
482 
483 		public bool EditReadOnly
484 		{
485 			get { return ExportEditBox_GetEditReadOnly(Native); }
486 			set { ExportEditBox_SetEditReadOnly(Native, value); }
487 		}
488 
489 		#endregion
490 		#region Property MaxTextLength
491 
492 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
493 
ExportEditBox_GetMaxTextLength(IntPtr _widget)494 		private static extern uint ExportEditBox_GetMaxTextLength(IntPtr _widget);
495 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetMaxTextLength(IntPtr _widget, uint _value)496 		private static extern void ExportEditBox_SetMaxTextLength(IntPtr _widget, uint _value);
497 
498 		public uint MaxTextLength
499 		{
500 			get { return ExportEditBox_GetMaxTextLength(Native); }
501 			set { ExportEditBox_SetMaxTextLength(Native, value); }
502 		}
503 
504 		#endregion
505 		#region Property OverflowToTheLeft
506 
507 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
508 
ExportEditBox_GetOverflowToTheLeft(IntPtr _widget)509 		private static extern bool ExportEditBox_GetOverflowToTheLeft(IntPtr _widget);
510 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetOverflowToTheLeft(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value)511 		private static extern void ExportEditBox_SetOverflowToTheLeft(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
512 
513 		public bool OverflowToTheLeft
514 		{
515 			get { return ExportEditBox_GetOverflowToTheLeft(Native); }
516 			set { ExportEditBox_SetOverflowToTheLeft(Native, value); }
517 		}
518 
519 		#endregion
520 		#region Property TextLength
521 
522 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
523 
ExportEditBox_GetTextLength(IntPtr _native)524 		private static extern uint ExportEditBox_GetTextLength(IntPtr _native);
525 
526 		public uint TextLength
527 		{
528 			get { return ExportEditBox_GetTextLength(Native); }
529 		}
530 
531 		#endregion
532 		#region Property OnlyText
533 
534 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
535 
ExportEditBox_GetOnlyText(IntPtr _widget)536 		private static extern IntPtr ExportEditBox_GetOnlyText(IntPtr _widget);
537 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetOnlyText(IntPtr _widget, [MarshalAs(UnmanagedType.LPWStr)] string _value)538 		private static extern void ExportEditBox_SetOnlyText(IntPtr _widget, [MarshalAs(UnmanagedType.LPWStr)] string _value);
539 
540 		public string OnlyText
541 		{
542 			get { return Marshal.PtrToStringUni(ExportEditBox_GetOnlyText(Native)); }
543 			set { ExportEditBox_SetOnlyText(Native, value); }
544 		}
545 
546 		#endregion
547 		#region Property TextCursor
548 
549 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
550 
ExportEditBox_GetTextCursor(IntPtr _widget)551 		private static extern uint ExportEditBox_GetTextCursor(IntPtr _widget);
552 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
ExportEditBox_SetTextCursor(IntPtr _widget, uint _value)553 		private static extern void ExportEditBox_SetTextCursor(IntPtr _widget, uint _value);
554 
555 		public uint TextCursor
556 		{
557 			get { return ExportEditBox_GetTextCursor(Native); }
558 			set { ExportEditBox_SetTextCursor(Native, value); }
559 		}
560 
561 		#endregion
562 		#region Property IsTextSelection
563 
564 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
565 
ExportEditBox_IsTextSelection(IntPtr _native)566 		private static extern bool ExportEditBox_IsTextSelection(IntPtr _native);
567 
568 		public bool IsTextSelection
569 		{
570 			get { return ExportEditBox_IsTextSelection(Native); }
571 		}
572 
573 		#endregion
574 		#region Property TextSelection
575 
576 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
577 
ExportEditBox_GetTextSelection(IntPtr _native)578 		private static extern IntPtr ExportEditBox_GetTextSelection(IntPtr _native);
579 
580 		public string TextSelection
581 		{
582 			get { return Marshal.PtrToStringUni(ExportEditBox_GetTextSelection(Native)); }
583 		}
584 
585 		#endregion
586 		#region Property TextSelectionLength
587 
588 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
589 
ExportEditBox_GetTextSelectionLength(IntPtr _native)590 		private static extern uint ExportEditBox_GetTextSelectionLength(IntPtr _native);
591 
592 		public uint TextSelectionLength
593 		{
594 			get { return ExportEditBox_GetTextSelectionLength(Native); }
595 		}
596 
597 		#endregion
598 		#region Property TextSelectionEnd
599 
600 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
601 
ExportEditBox_GetTextSelectionEnd(IntPtr _native)602 		private static extern uint ExportEditBox_GetTextSelectionEnd(IntPtr _native);
603 
604 		public uint TextSelectionEnd
605 		{
606 			get { return ExportEditBox_GetTextSelectionEnd(Native); }
607 		}
608 
609 		#endregion
610 		#region Property TextSelectionStart
611 
612 		[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
613 
ExportEditBox_GetTextSelectionStart(IntPtr _native)614 		private static extern uint ExportEditBox_GetTextSelectionStart(IntPtr _native);
615 
616 		public uint TextSelectionStart
617 		{
618 			get { return ExportEditBox_GetTextSelectionStart(Native); }
619 		}
620 
621 		#endregion
622 
623     }
624 }
625