From: Chihun Jeong <50663828+ANZ1217@users.noreply.github.com> Date: Tue, 2 Apr 2024 03:36:30 +0000 (+0900) Subject: [NUI][API11] Introduce RemoveFrontInset, RemoveBackInset property X-Git-Tag: accepted/tizen/8.0/unified/20240613.065534~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34b36d0443ebc3eac37fe4a1532ea3fa4483f9c0;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI][API11] Introduce RemoveFrontInset, RemoveBackInset property --------- Co-authored-by: ANZ1217 --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.TextEditor.cs b/src/Tizen.NUI/src/internal/Interop/Interop.TextEditor.cs index f8090e9..a1dc774 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.TextEditor.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.TextEditor.cs @@ -367,6 +367,12 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_Property_CHARACTER_SPACING_get")] public static extern int CharacterSpacingGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_Property_REMOVE_FRONT_INSET_get")] + public static extern int RemoveFrontInsetGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_Property_REMOVE_BACK_INSET_get")] + public static extern int RemoveBackInsetGet(); } } } diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.TextField.cs b/src/Tizen.NUI/src/internal/Interop/Interop.TextField.cs index 81b3f0c..0ebef64 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.TextField.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.TextField.cs @@ -329,6 +329,12 @@ namespace Tizen.NUI public static extern int StrikethroughGet(); [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_Property_CHARACTER_SPACING_get")] public static extern int CharacterSpacingGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_Property_REMOVE_FRONT_INSET_get")] + public static extern int RemoveFrontInsetGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_Property_REMOVE_BACK_INSET_get")] + public static extern int RemoveBackInsetGet(); } } } diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.TextLabel.cs b/src/Tizen.NUI/src/internal/Interop/Interop.TextLabel.cs index 2a1b070..c1367bf 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.TextLabel.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.TextLabel.cs @@ -207,6 +207,12 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_Property_ANCHOR_CLICKED_COLOR_get")] public static extern int AnchorClickedColorGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_Property_REMOVE_FRONT_INSET_get")] + public static extern int RemoveFrontInsetGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_Property_REMOVE_BACK_INSET_get")] + public static extern int RemoveBackInsetGet(); } } } diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs index 322bc73..3cc36b5 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs @@ -3653,6 +3653,48 @@ namespace Tizen.NUI.BaseComponents } /// + /// The RemoveFrontInset property.
+ /// This property is used when the xBearing of first glyph must not be trimmed.
+ /// When set to false, The gap between (0, 0) from the first glyph's leftmost pixel is included in the width of text label. + ///
+ /// + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool RemoveFrontInset + { + get + { + return (bool)GetValue(RemoveFrontInsetProperty); + } + set + { + SetValue(RemoveFrontInsetProperty, value); + NotifyPropertyChanged(); + } + } + + /// + /// The RemoveBackInset property.
+ /// This property is used when the advance of last glyph must not be trimmed.
+ /// When set to false, The gap between the last glyph's rightmost pixel and X coordinate that next glyph will be placed is included in the width of text label. + ///
+ /// + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool RemoveBackInset + { + get + { + return (bool)GetValue(RemoveBackInsetProperty); + } + set + { + SetValue(RemoveBackInsetProperty, value); + NotifyPropertyChanged(); + } + } + + /// /// Dispose. /// /// 3 @@ -3938,6 +3980,8 @@ namespace Tizen.NUI.BaseComponents internal static readonly int InputFilter = Interop.TextEditor.InputFilterGet(); internal static readonly int Strikethrough = Interop.TextEditor.StrikethroughGet(); 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 void Preload() { diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEditorBindableProperty.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEditorBindableProperty.cs index 8741d87..1a39ac2 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEditorBindableProperty.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEditorBindableProperty.cs @@ -1571,5 +1571,41 @@ namespace Tizen.NUI.BaseComponents return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.CharacterSpacing); } + + /// + /// RemoveFrontInsetProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty RemoveFrontInsetProperty = BindableProperty.Create(nameof(RemoveFrontInset), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) => + { + var textEditor = (TextEditor)bindable; + if (newValue != null) + { + Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.RemoveFrontInset, (bool)newValue); + } + }), + defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) => + { + var textEditor = (TextEditor)bindable; + return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.RemoveFrontInset); + })); + + /// + /// RemoveBackInsetProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty RemoveBackInsetProperty = BindableProperty.Create(nameof(RemoveBackInset), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) => + { + var textEditor = (TextEditor)bindable; + if (newValue != null) + { + Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.RemoveBackInset, (bool)newValue); + } + }), + defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) => + { + var textEditor = (TextEditor)bindable; + return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.RemoveBackInset); + })); } } diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs index 747ba20..75865f3 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs @@ -3618,6 +3618,48 @@ namespace Tizen.NUI.BaseComponents } /// + /// The RemoveFrontInset property.
+ /// This property is used when the xBearing of first glyph must not be trimmed.
+ /// When set to false, The gap between (0, 0) from the first glyph's leftmost pixel is included in the width of text label. + ///
+ /// + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool RemoveFrontInset + { + get + { + return (bool)GetValue(RemoveFrontInsetProperty); + } + set + { + SetValue(RemoveFrontInsetProperty, value); + NotifyPropertyChanged(); + } + } + + /// + /// The RemoveBackInset property.
+ /// This property is used when the advance of last glyph must not be trimmed.
+ /// When set to false, The gap between the last glyph's rightmost pixel and X coordinate that next glyph will be placed is included in the width of text label. + ///
+ /// + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool RemoveBackInset + { + get + { + return (bool)GetValue(RemoveBackInsetProperty); + } + set + { + SetValue(RemoveBackInsetProperty, value); + NotifyPropertyChanged(); + } + } + + /// /// Dispose. /// /// 3 @@ -3903,6 +3945,8 @@ namespace Tizen.NUI.BaseComponents internal static readonly int InputFilter = Interop.TextField.InputFilterGet(); internal static readonly int Strikethrough = Interop.TextField.StrikethroughGet(); 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 void Preload() { diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextFieldBindableProperty.cs b/src/Tizen.NUI/src/public/BaseComponents/TextFieldBindableProperty.cs index 8a5b79c..ef74710 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextFieldBindableProperty.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextFieldBindableProperty.cs @@ -1313,5 +1313,41 @@ namespace Tizen.NUI.BaseComponents return Object.InternalGetPropertyFloat(textField.SwigCPtr, TextField.Property.CharacterSpacing); } + + /// + /// RemoveFrontInsetProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty RemoveFrontInsetProperty = BindableProperty.Create(nameof(RemoveFrontInset), typeof(bool), typeof(TextField), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) => + { + var textField = (TextField)bindable; + if (newValue != null) + { + Object.InternalSetPropertyBool(textField.SwigCPtr, TextField.Property.RemoveFrontInset, (bool)newValue); + } + }), + defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) => + { + var textField = (TextField)bindable; + return Object.InternalGetPropertyBool(textField.SwigCPtr, TextField.Property.RemoveFrontInset); + })); + + /// + /// RemoveBackInsetProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty RemoveBackInsetProperty = BindableProperty.Create(nameof(RemoveBackInset), typeof(bool), typeof(TextField), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) => + { + var textField = (TextField)bindable; + if (newValue != null) + { + Object.InternalSetPropertyBool(textField.SwigCPtr, TextField.Property.RemoveBackInset, (bool)newValue); + } + }), + defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) => + { + var textField = (TextField)bindable; + return Object.InternalGetPropertyBool(textField.SwigCPtr, TextField.Property.RemoveBackInset); + })); } } diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs index b7894c2..74261ef 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs @@ -2274,6 +2274,48 @@ namespace Tizen.NUI.BaseComponents } /// + /// The RemoveFrontInset property.
+ /// This property is used when the xBearing of first glyph must not be trimmed.
+ /// When set to false, The gap between (0, 0) from the first glyph's leftmost pixel is included in the width of text label. + ///
+ /// + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool RemoveFrontInset + { + get + { + return (bool)GetValue(RemoveFrontInsetProperty); + } + set + { + SetValue(RemoveFrontInsetProperty, value); + NotifyPropertyChanged(); + } + } + + /// + /// The RemoveBackInset property.
+ /// This property is used when the advance of last glyph must not be trimmed.
+ /// When set to false, The gap between the last glyph's rightmost pixel and X coordinate that next glyph will be placed is included in the width of text label. + ///
+ /// + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool RemoveBackInset + { + get + { + return (bool)GetValue(RemoveBackInsetProperty); + } + set + { + SetValue(RemoveBackInsetProperty, value); + NotifyPropertyChanged(); + } + } + + /// /// The FontSizeScale property for scaling the specified font size up or down.
/// The default value is 1.0.
/// The given font size scale value is used for multiplying the specified font size before querying fonts.
@@ -2608,6 +2650,8 @@ namespace Tizen.NUI.BaseComponents internal static readonly int CharacterSpacing = Interop.TextLabel.CharacterSpacingGet(); internal static readonly int AnchorColor = Interop.TextLabel.AnchorColorGet(); internal static readonly int AnchorClickedColor = Interop.TextLabel.AnchorClickedColorGet(); + internal static readonly int RemoveFrontInset = Interop.TextLabel.RemoveFrontInsetGet(); + internal static readonly int RemoveBackInset = Interop.TextLabel.RemoveBackInsetGet(); internal static void Preload() diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextLabelBindableProperty.cs b/src/Tizen.NUI/src/public/BaseComponents/TextLabelBindableProperty.cs index 88995ea..8724476 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextLabelBindableProperty.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextLabelBindableProperty.cs @@ -312,6 +312,44 @@ namespace Tizen.NUI.BaseComponents return textLabel.internalAnchorClickedColor; } + /// + /// RemoveFrontInsetProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty RemoveFrontInsetProperty = BindableProperty.Create(nameof(RemoveFrontInset), typeof(bool), typeof(TextLabel), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) => + { + var textLabel = (TextLabel)bindable; + if (newValue != null) + { + Object.InternalSetPropertyBool(textLabel.SwigCPtr, TextLabel.Property.RemoveFrontInset, (bool)newValue); + } + }), + defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) => + { + var textLabel = (TextLabel)bindable; + + return Object.InternalGetPropertyBool(textLabel.SwigCPtr, TextLabel.Property.RemoveFrontInset); + })); + + /// + /// RemoveBackInsetProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty RemoveBackInsetProperty = BindableProperty.Create(nameof(RemoveBackInset), typeof(bool), typeof(TextLabel), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) => + { + var textLabel = (TextLabel)bindable; + if (newValue != null) + { + Object.InternalSetPropertyBool(textLabel.SwigCPtr, TextLabel.Property.RemoveBackInset, (bool)newValue); + } + }), + defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) => + { + var textLabel = (TextLabel)bindable; + + return Object.InternalGetPropertyBool(textLabel.SwigCPtr, TextLabel.Property.RemoveBackInset); + })); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty EnableMarkupProperty = null;