[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_Property_REMOVE_BACK_INSET_get")]
public static extern int RemoveBackInsetGet();
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_Property_FONT_VARIATIONS_get")]
- public static extern int FontVariationsGet();
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_RegisterFontVariationProperty")]
public static extern int RegisterFontVariationProperty(global::System.Runtime.InteropServices.HandleRef textEditorRef, string pTag);
}
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_Property_REMOVE_BACK_INSET_get")]
public static extern int RemoveBackInsetGet();
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_Property_FONT_VARIATIONS_get")]
- public static extern int FontVariationsGet();
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_RegisterFontVariationProperty")]
public static extern int RegisterFontVariationProperty(global::System.Runtime.InteropServices.HandleRef textFieldRef, string pTag);
}
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_Property_ASYNC_LINE_COUNT_get")]
public static extern int AsyncLineCountGet();
- [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_Property_FONT_VARIATIONS_get")]
- public static extern int FontVariationsGet();
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_RequestAsyncRenderWithFixedSize")]
public static extern void RequestAsyncRenderWithFixedSize(HandleRef textLabelRef, float width, float height);
return ThemeManager.GetStyle(this.GetType()) == null ? false : true;
}
- /// <summary>
- /// Registers FontVariationsProperty with string tag.
- /// </summary>
- /// <param name="tag">The tag of font variations.</param>
- /// <remarks>
- /// The returned index can be used with animation.
- /// </remarks>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int RegisterFontVariationProperty(string tag)
- {
- int index = Interop.TextEditor.RegisterFontVariationProperty(SwigCPtr, tag);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return index;
- }
-
/// <summary>
/// The TranslatableText property.<br />
/// The text can set the SID value.<br />
return Object.InternalGetPropertyBool(SwigCPtr, Property.RemoveBackInset);
}
+ /// <summary>
+ /// Registers FontVariationsProperty with string tag.
+ /// </summary>
+ /// <param name="tag">The tag of font variation.</param>
+ /// <returns>The index of the font variation.</returns>
+ /// <remarks>
+ /// The returned index can be used with setting property or animations.
+ /// </remarks>
+ /// <example>
+ /// The following example demonstrates how to use the SetFontStyle method.
+ /// <code>
+ /// TextEditor editor = new TextEditor();
+ /// int index = editor.RegisterFontVariationProperty("wght");
+ /// Animation anim = new Animation(1000);
+ /// anim.AnimateTo(editor, "wght", 900.0f);
+ /// </code>
+ /// </example>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public int RegisterFontVariationProperty(string tag)
+ {
+ int index = Interop.TextEditor.RegisterFontVariationProperty(SwigCPtr, tag);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return index;
+ }
+
+ /// <summary>
+ /// Sets Font Variation with string tag.
+ /// </summary>
+ /// <param name="tag">The tag of font variation.</param>
+ /// <param name="value">The value of font variation.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetFontVariation(string tag, float value)
+ {
+ int index = RegisterFontVariationProperty(tag);
+ Object.InternalSetPropertyFloat(SwigCPtr, index, value);
+ }
+
+ /// <summary>
+ /// Sets Font Variation with index.
+ /// </summary>
+ /// <param name="index">The index of font variation property.</param>
+ /// <param name="value">The value of font variation.</param>
+ /// <remarks>
+ /// To use the index, RegisterFontVariationProperty must precede it.
+ /// </remarks>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetFontVariation(int index, float value)
+ {
+ Object.InternalSetPropertyFloat(SwigCPtr, index, value);
+ }
+
/// <summary>
/// Dispose.
/// Releases unmanaged and optionally managed resources.
internal static readonly int CharacterSpacing = Interop.TextEditor.CharacterSpacingGet();
internal static readonly int RemoveFrontInset = Interop.TextEditor.RemoveFrontInsetGet();
internal static readonly int RemoveBackInset = Interop.TextEditor.RemoveBackInsetGet();
- internal static readonly int FontVariations = Interop.TextEditor.FontVariationsGet();
internal static void Preload()
{
{
GrabHandleColor = new Color(r, g, b, a);
}
- public void SetFontVariation(string axis, float value)
- {
- int index = RegisterFontVariationProperty(axis);
- Object.InternalSetPropertyFloat(SwigCPtr, index, value);
- }
- public void SetFontVariation(int index, float value)
- {
- Object.InternalSetPropertyFloat(SwigCPtr, index, value);
- }
internal class TextEditorLayout : LayoutItem
{
return ThemeManager.GetStyle(this.GetType()) == null ? false : true;
}
- /// <summary>
- /// Registers FontVariationsProperty with string tag.
- /// </summary>
- /// <param name="tag">The tag of font variations.</param>
- /// <remarks>
- /// The returned index can be used with animation.
- /// </remarks>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int RegisterFontVariationProperty(string tag)
- {
- int index = Interop.TextField.RegisterFontVariationProperty(SwigCPtr, tag);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return index;
- }
-
/// <summary>
/// The TranslatableText property.<br />
/// The text can set the SID value.<br />
return Object.InternalGetPropertyBool(SwigCPtr, Property.RemoveBackInset);
}
+ /// <summary>
+ /// Registers FontVariationsProperty with string tag.
+ /// </summary>
+ /// <param name="tag">The tag of font variation.</param>
+ /// <returns>The index of the font variation.</returns>
+ /// <remarks>
+ /// The returned index can be used with setting property or animations.
+ /// </remarks>
+ /// <example>
+ /// The following example demonstrates how to use the SetFontStyle method.
+ /// <code>
+ /// TextField field = new TextField();
+ /// int index = field.RegisterFontVariationProperty("wght");
+ /// Animation anim = new Animation(1000);
+ /// anim.AnimateTo(field, "wght", 900.0f);
+ /// </code>
+ /// </example>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public int RegisterFontVariationProperty(string tag)
+ {
+ int index = Interop.TextField.RegisterFontVariationProperty(SwigCPtr, tag);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return index;
+ }
+
+ /// <summary>
+ /// Sets Font Variation with string tag.
+ /// </summary>
+ /// <param name="tag">The tag of font variation.</param>
+ /// <param name="value">The value of font variation.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetFontVariation(string tag, float value)
+ {
+ int index = RegisterFontVariationProperty(tag);
+ Object.InternalSetPropertyFloat(SwigCPtr, index, value);
+ }
+
+ /// <summary>
+ /// Sets Font Variation with index.
+ /// </summary>
+ /// <param name="index">The index of font variation property.</param>
+ /// <param name="value">The value of font variation.</param>
+ /// <remarks>
+ /// To use the index, RegisterFontVariationProperty must precede it.
+ /// </remarks>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetFontVariation(int index, float value)
+ {
+ Object.InternalSetPropertyFloat(SwigCPtr, index, value);
+ }
+
/// <summary>
/// Dispose.
/// Releases unmanaged and optionally managed resources.
internal static readonly int CharacterSpacing = Interop.TextField.CharacterSpacingGet();
internal static readonly int RemoveFrontInset = Interop.TextField.RemoveFrontInsetGet();
internal static readonly int RemoveBackInset = Interop.TextField.RemoveBackInsetGet();
- internal static readonly int FontVariations = Interop.TextField.FontVariationsGet();
internal static void Preload()
{
{
GrabHandleColor = new Color(r, g, b, a);
}
- public void SetFontVariation(string axis, float value)
- {
- int index = RegisterFontVariationProperty(axis);
- Object.InternalSetPropertyFloat(SwigCPtr, index, value);
- }
- public void SetFontVariation(int index, float value)
- {
- Object.InternalSetPropertyFloat(SwigCPtr, index, value);
- }
internal class TextFieldLayout : LayoutItem
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- /// <summary>
- /// Registers FontVariationsProperty with string tag.
- /// </summary>
- /// <param name="tag">The tag of font variations.</param>
- /// <remarks>
- /// The returned index can be used with animation.
- /// </remarks>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int RegisterFontVariationProperty(string tag)
- {
- int index = Interop.TextLabel.RegisterFontVariationProperty(SwigCPtr, tag);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return index;
- }
-
/// <summary>
/// The TranslatableText property.<br />
/// The text can set the SID value.<br />
return ret;
}
+ /// <summary>
+ /// Registers FontVariationsProperty with string tag.
+ /// </summary>
+ /// <param name="tag">The tag of font variation.</param>
+ /// <returns>The index of the font variation.</returns>
+ /// <remarks>
+ /// The returned index can be used with setting property or animations.
+ /// </remarks>
+ /// <example>
+ /// The following example demonstrates how to use the SetFontStyle method.
+ /// <code>
+ /// TextLabel label = new TextLabel();
+ /// int index = label.RegisterFontVariationProperty("wght");
+ /// Animation anim = new Animation(1000);
+ /// anim.AnimateTo(label, "wght", 900.0f);
+ /// </code>
+ /// </example>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public int RegisterFontVariationProperty(string tag)
+ {
+ int index = Interop.TextLabel.RegisterFontVariationProperty(SwigCPtr, tag);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return index;
+ }
+
+ /// <summary>
+ /// Sets Font Variation with string tag.
+ /// </summary>
+ /// <param name="tag">The tag of font variation.</param>
+ /// <param name="value">The value of font variation.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetFontVariation(string tag, float value)
+ {
+ int index = RegisterFontVariationProperty(tag);
+ Object.InternalSetPropertyFloat(SwigCPtr, index, value);
+ }
+
+ /// <summary>
+ /// Sets Font Variation with index.
+ /// </summary>
+ /// <param name="index">The index of font variation property.</param>
+ /// <param name="value">The value of font variation.</param>
+ /// <remarks>
+ /// To use the index, RegisterFontVariationProperty must precede it.
+ /// </remarks>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetFontVariation(int index, float value)
+ {
+ Object.InternalSetPropertyFloat(SwigCPtr, index, value);
+ }
+
/// <inheritdoc/>
[EditorBrowsable(EditorBrowsableState.Never)]
protected override void Dispose(DisposeTypes type)
internal static readonly int RenderMode = Interop.TextLabel.RenderModeGet();
internal static readonly int ManualRendered = Interop.TextLabel.ManualRenderedGet();
internal static readonly int AsyncLineCount = Interop.TextLabel.AsyncLineCountGet();
- internal static readonly int FontVariations = Interop.TextLabel.FontVariationsGet();
internal static readonly int EllipsisMode = Interop.TextLabel.EllipsisModeGet();
internal static readonly int IsScrolling = Interop.TextLabel.IsScrollingGet();
{
AnchorClickedColor = new Color(r, g, b, a);
}
- public void SetFontVariation(string axis, float value)
- {
- int index = RegisterFontVariationProperty(axis);
- Object.InternalSetPropertyFloat(SwigCPtr, index, value);
- }
- public void SetFontVariation(int index, float value)
- {
- Object.InternalSetPropertyFloat(SwigCPtr, index, value);
- }
}
}