hiddenMap.Add(HiddenInputProperty.SubstituteCharacter, new PropertyValue(0x23));
field.HiddenInputSettings = hiddenMap;
window.GetDefaultLayer().Add(field);
- TextEditor editor = new TextEditor();
- editor.Size2D = new Size2D(400, 100);
- editor.Position2D = new Position2D(10, 550);
- editor.BackgroundColor = Color.Magenta;
- editor.PlaceholderText = "input someth...";
- editor.PlaceholderTextColor = Color.Red;
- window.GetDefaultLayer().Add(editor);
- editor.TextChanged += (obj, e) => {
- Tizen.Log.Debug("NUI", "editor line count: " + e.TextEditor.LineCount);
- };
-
- Tizen.Log.Debug("NUI", "editor id: " + editor.ID);
}
[STAThread]
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- public void Start()
- {
- NDalicPINVOKE.ApplicationExtensions_Start(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
public void Terminate()
{
NDalicPINVOKE.ApplicationExtensions_Terminate(swigCPtr);
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextEditor_Property_PIXEL_SIZE_get")]
public static extern int TextEditor_Property_PIXEL_SIZE_get();
- [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextEditor_Property_LINE_COUNT_get")]
- public static extern int TextEditor_Property_LINE_COUNT_get();
-
- [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextEditor_Property_PLACEHOLDER_TEXT_get")]
- public static extern int TextEditor_Property_PLACEHOLDER_TEXT_get();
-
- [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextEditor_Property_PLACEHOLDER_TEXT_COLOR_get")]
- public static extern int TextEditor_Property_PLACEHOLDER_TEXT_COLOR_get();
-
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextField_Property_HIDDEN_INPUT_SETTINGS_get")]
public static extern int TextField_Property_HIDDEN_INPUT_SETTINGS_get();
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_ApplicationExtensions_Init")]
public static extern void ApplicationExtensions_Init(global::System.Runtime.InteropServices.HandleRef jarg1);
- [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_ApplicationExtensions_Start")]
- public static extern void ApplicationExtensions_Start(global::System.Runtime.InteropServices.HandleRef jarg1);
-
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_ApplicationExtensions_Terminate")]
public static extern void ApplicationExtensions_Terminate(global::System.Runtime.InteropServices.HandleRef jarg1);
internal static readonly int SCROLL_BAR_SHOW_DURATION = NDalicManualPINVOKE.TextEditor_Property_SCROLL_BAR_SHOW_DURATION_get();
internal static readonly int SCROLL_BAR_FADE_DURATION = NDalicManualPINVOKE.TextEditor_Property_SCROLL_BAR_FADE_DURATION_get();
internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextEditor_Property_PIXEL_SIZE_get();
- internal static readonly int LINE_COUNT = NDalicManualPINVOKE.TextEditor_Property_LINE_COUNT_get();
- internal static readonly int PLACEHOLDER_TEXT = NDalicManualPINVOKE.TextEditor_Property_PLACEHOLDER_TEXT_get();
- internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicManualPINVOKE.TextEditor_Property_PLACEHOLDER_TEXT_COLOR_get();
-
}
}
}
- /// <summary>
- /// The line count of text.
- /// </summary>
- public int LineCount
- {
- get
- {
- int temp = 0;
- GetProperty(TextEditor.Property.LINE_COUNT).Get(out temp);
- return temp;
- }
- }
-
- /// <summary>
- /// The text to display when the TextEditor is empty and inactive.
- /// </summary>
- public string PlaceholderText
- {
- get
- {
- string temp;
- GetProperty(TextEditor.Property.PLACEHOLDER_TEXT).Get(out temp);
- return temp;
- }
- set
- {
- SetProperty(TextEditor.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue(value));
- }
- }
-
- /// <summary>
- /// The placeholder-text color.
- /// </summary>
- public Color PlaceholderTextColor
- {
- get
- {
- Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
- GetProperty(TextEditor.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(TextEditor.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
- }
- }
-
}
}
}
/// <summary>
- /// Gets the View's ID.
- /// Readonly
- /// </summary>
- public uint ID
- {
- get
- {
- return GetId();
- }
- }
-
- /// <summary>
/// Gets/Sets the status of whether an view should emit touch or hover signals.
/// </summary>
public bool Sensitive
}
_applicationExt = new ApplicationExtensions(_application);
_applicationExt.Init();
- _applicationExt.Start();
// This is also required to create DisposeQueue on main thread.
disposeQ.Initialize();