| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using System.Runtime.CompilerServices;
- namespace BansheeEngine
- {
- public sealed class GUITextBox : GUIElement
- {
- public GUITextBox(bool multiline, string style, params GUIOption[] options)
- {
- Internal_CreateInstance(this, multiline, style, options);
- }
- public GUITextBox(bool multiline, params GUIOption[] options)
- {
- Internal_CreateInstance(this, multiline, "", options);
- }
- public GUITextBox(string style, params GUIOption[] options)
- {
- Internal_CreateInstance(this, false, style, options);
- }
- public GUITextBox(params GUIOption[] options)
- {
- Internal_CreateInstance(this, false, "", options);
- }
- public string text
- {
- get { string value; Internal_GetText(mCachedPtr, out value); return value; }
- set { Internal_SetText(mCachedPtr, value); }
- }
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_CreateInstance(GUITextBox instance, bool multiline, string style, GUIOption[] options);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_SetText(IntPtr nativeInstance, string text);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_GetText(IntPtr nativeInstance, out string text);
- }
- }
|