1 // Copyright (c) 2021 Samsung Electronics Co., Ltd.
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
16 using System.ComponentModel;
17 using System.Diagnostics.CodeAnalysis;
19 namespace Tizen.NUI.Text
22 /// A struct to pass data of InputFilter PropertyMap. <br />
25 /// InputFilter filters input based on regular expressions. <br />
26 /// Users can set the Accepted or Rejected regular expression set, or both. <br />
27 /// If both are used, Rejected has higher priority. <br />
28 /// The character set must follow the regular expression rules. <br />
29 /// Behaviour can not be guaranteed for incorrect grammars. <br />
30 /// Refer the link below for detailed rules. <br />
31 /// The functions in std::regex library use the ECMAScript grammar: <br />
32 /// http://cplusplus.com/reference/regex/ECMAScript/ <br />
33 /// The InputFilter struct is used as an argument to SetInputFilter and GetInputFilter methods. <br />
34 /// See <see cref="Tizen.NUI.BaseComponents.TextField.SetInputFilter"/>, <see cref="Tizen.NUI.BaseComponents.TextField.GetInputFilter"/>, <see cref="Tizen.NUI.BaseComponents.TextEditor.SetInputFilter"/> and <see cref="Tizen.NUI.BaseComponents.TextEditor.GetInputFilter"/>. <br />
36 /// <since_tizen> 9 </since_tizen>
37 public struct InputFilter : IEquatable<InputFilter>
40 /// A regular expression in the set of characters to be accepted by the inputFilter.
42 public string Accepted { get; set; }
45 /// A regular expression in the set of characters to be rejected by the inputFilter.
47 public string Rejected { get; set; }
50 /// Determines whether the specified object is equal to the current object.
52 /// <param name="obj">The object to compare with the current object.</param>
53 /// <returns>true if equal InputFilter, else false.</returns>
54 [EditorBrowsable(EditorBrowsableState.Never)]
55 public override bool Equals(object obj) => obj is InputFilter other && this.Equals(other);
58 /// Determines whether the specified object is equal to the current object.
60 /// <param name="other">The InputFilter to compare with the current InputFilter.</param>
61 /// <returns>true if equal InputFilter, else false.</returns>
62 [EditorBrowsable(EditorBrowsableState.Never)]
63 public bool Equals(InputFilter other) => Accepted == other.Accepted && Rejected == other.Rejected;
68 /// <param name="lhsInputFilter">InputFilter to compare</param>
69 /// <param name="rhsInputFilter">InputFilter to be compared</param>
70 /// <returns>true if InputFilters are equal</returns>
71 [EditorBrowsable(EditorBrowsableState.Never)]
72 public static bool operator ==(InputFilter lhsInputFilter, InputFilter rhsInputFilter) => lhsInputFilter.Equals(rhsInputFilter);
77 /// <param name="lhsInputFilter">InputFilter to compare</param>
78 /// <param name="rhsInputFilter">InputFilter to be compared</param>
79 /// <returns>true if InputFilters are not equal</returns>
80 [EditorBrowsable(EditorBrowsableState.Never)]
81 public static bool operator !=(InputFilter lhsInputFilter, InputFilter rhsInputFilter) => !lhsInputFilter.Equals(rhsInputFilter);
84 /// Gets the hash code of this InputFilter.
86 /// <returns>The hash code.</returns>
87 [EditorBrowsable(EditorBrowsableState.Never)]
88 public override int GetHashCode() => (Accepted, Rejected).GetHashCode();
92 /// A struct to pass data of Strikethrough PropertyMap. <br />
95 /// The Strikethrough struct is used as an argument to SetStrikethrough and GetStrikethrough methods. <br />
96 /// See <see cref="Tizen.NUI.BaseComponents.TextLabel.SetStrikethrough"/>, <see cref="Tizen.NUI.BaseComponents.TextLabel.GetStrikethrough"/>, <see cref="Tizen.NUI.BaseComponents.TextField.SetStrikethrough"/>, <see cref="Tizen.NUI.BaseComponents.TextField.GetStrikethrough"/>, <see cref="Tizen.NUI.BaseComponents.TextEditor.SetStrikethrough"/> and <see cref="Tizen.NUI.BaseComponents.TextEditor.GetStrikethrough"/>. <br />
98 [EditorBrowsable(EditorBrowsableState.Never)]
99 public struct Strikethrough : IEquatable<Strikethrough>
102 /// Whether the strikethrough is enabled (the default value is false).
104 [EditorBrowsable(EditorBrowsableState.Never)]
105 public bool Enable { get; set; }
108 /// The color of the strikethrough (if not provided then the color of the text is used).
110 [EditorBrowsable(EditorBrowsableState.Never)]
111 public Color Color { get; set; }
114 /// The height in pixels of the strikethrough (if null, the default value is 1.0f).
116 [EditorBrowsable(EditorBrowsableState.Never)]
117 public float? Height { get; set; }
120 /// Determines whether the specified object is equal to the current object.
122 /// <param name="obj">The object to compare with the current object.</param>
123 /// <returns>true if equal Strikethrough, else false.</returns>
124 [EditorBrowsable(EditorBrowsableState.Never)]
125 public override bool Equals(object obj) => obj is Strikethrough other && this.Equals(other);
128 /// Determines whether the specified object is equal to the current object.
130 /// <param name="other">The Strikethrough to compare with the current Strikethrough.</param>
131 /// <returns>true if equal Strikethrough, else false.</returns>
132 [EditorBrowsable(EditorBrowsableState.Never)]
133 public bool Equals(Strikethrough other) => Enable == other.Enable && Color == other.Color && Height == other.Height;
138 /// <param name="lhsStrikethrough">Strikethrough to compare</param>
139 /// <param name="rhsStrikethrough">Strikethrough to be compared</param>
140 /// <returns>true if Strikethroughs are equal</returns>
141 [EditorBrowsable(EditorBrowsableState.Never)]
142 public static bool operator ==(Strikethrough lhsStrikethrough, Strikethrough rhsStrikethrough) => lhsStrikethrough.Equals(rhsStrikethrough);
147 /// <param name="lhsStrikethrough">Strikethrough to compare</param>
148 /// <param name="rhsStrikethrough">Strikethrough to be compared</param>
149 /// <returns>true if Strikethroughs are not equal</returns>
150 [EditorBrowsable(EditorBrowsableState.Never)]
151 public static bool operator !=(Strikethrough lhsStrikethrough, Strikethrough rhsStrikethrough) => !lhsStrikethrough.Equals(rhsStrikethrough);
154 /// Gets the hash code of this Strikethrough.
156 /// <returns>The hash code.</returns>
157 [EditorBrowsable(EditorBrowsableState.Never)]
158 public override int GetHashCode() => (Enable, Color, Height).GetHashCode();
162 /// A struct to pass data of FontStyle PropertyMap. <br />
165 /// The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods. <br />
166 /// See <see cref="Tizen.NUI.BaseComponents.TextLabel.SetFontStyle"/>, <see cref="Tizen.NUI.BaseComponents.TextLabel.GetFontStyle"/>, <see cref="Tizen.NUI.BaseComponents.TextField.SetFontStyle"/>, <see cref="Tizen.NUI.BaseComponents.TextField.GetFontStyle"/>, <see cref="Tizen.NUI.BaseComponents.TextEditor.SetFontStyle"/> and <see cref="Tizen.NUI.BaseComponents.TextEditor.GetFontStyle"/>. <br />
168 [EditorBrowsable(EditorBrowsableState.Never)]
169 public struct FontStyle : IEquatable<FontStyle>
172 /// The Width defines occupied by each glyph.
174 [EditorBrowsable(EditorBrowsableState.Never)]
175 public FontWidthType Width { get; set; }
178 /// The Weight defines the thickness or darkness of the glyphs.
180 [EditorBrowsable(EditorBrowsableState.Never)]
181 public FontWeightType Weight { get; set; }
184 /// The Slant defines whether to use italics.
186 [EditorBrowsable(EditorBrowsableState.Never)]
187 public FontSlantType Slant { get; set; }
190 /// Determines whether the specified object is equal to the current object.
192 /// <param name="obj">The object to compare with the current object.</param>
193 /// <returns>true if equal FontStyle, else false.</returns>
194 [EditorBrowsable(EditorBrowsableState.Never)]
195 public override bool Equals(object obj) => obj is FontStyle other && this.Equals(other);
198 /// Determines whether the specified object is equal to the current object.
200 /// <param name="other">The FontStyle to compare with the current FontStyle.</param>
201 /// <returns>true if equal FontStyle, else false.</returns>
202 [EditorBrowsable(EditorBrowsableState.Never)]
203 public bool Equals(FontStyle other) => Width == other.Width && Weight == other.Weight && Slant == other.Slant;
208 /// <param name="lhsFontStyle">FontStyle to compare</param>
209 /// <param name="rhsFontStyle">FontStyle to be compared</param>
210 /// <returns>true if FontStyles are equal</returns>
211 [EditorBrowsable(EditorBrowsableState.Never)]
212 public static bool operator ==(FontStyle lhsFontStyle, FontStyle rhsFontStyle) => lhsFontStyle.Equals(rhsFontStyle);
217 /// <param name="lhsFontStyle">FontStyle to compare</param>
218 /// <param name="rhsFontStyle">FontStyle to be compared</param>
219 /// <returns>true if FontStyles are not equal</returns>
220 [EditorBrowsable(EditorBrowsableState.Never)]
221 public static bool operator !=(FontStyle lhsFontStyle, FontStyle rhsFontStyle) => !lhsFontStyle.Equals(rhsFontStyle);
224 /// Gets the hash code of this FontStyle.
226 /// <returns>The hash code.</returns>
227 [EditorBrowsable(EditorBrowsableState.Never)]
228 public override int GetHashCode() => (Width, Weight, Slant).GetHashCode();
232 /// A struct to pass data of Underline PropertyMap. <br />
235 /// The Underline struct is used as an argument to SetUnderline and GetUnderline methods. <br />
236 /// See <see cref="Tizen.NUI.BaseComponents.TextLabel.SetUnderline"/>, <see cref="Tizen.NUI.BaseComponents.TextLabel.GetUnderline"/>, <see cref="Tizen.NUI.BaseComponents.TextField.SetUnderline"/>, <see cref="Tizen.NUI.BaseComponents.TextField.GetUnderline"/>, <see cref="Tizen.NUI.BaseComponents.TextEditor.SetUnderline"/> and <see cref="Tizen.NUI.BaseComponents.TextEditor.GetUnderline"/>. <br />
238 [EditorBrowsable(EditorBrowsableState.Never)]
239 public struct Underline : IEquatable<Underline>
242 /// Whether the underline is enabled (the default value is false).
244 [EditorBrowsable(EditorBrowsableState.Never)]
245 public bool Enable { get; set; }
248 /// The type of the underline (the default type is Solid).
250 public UnderlineType Type { get; set; }
253 /// The color of the underline (if not provided then the color of the text is used).
255 [EditorBrowsable(EditorBrowsableState.Never)]
256 public Color Color { get; set; }
259 /// The height in pixels of the underline (if null, the default value is 1.0f).
261 [EditorBrowsable(EditorBrowsableState.Never)]
262 public float? Height { get; set; }
265 /// The width of the dashes of the dashed underline (if null, the default value is 2.0f). <br />
266 /// Only valid when "UnderlineType.Dashed" type is used.
268 public float? DashWidth { get; set; }
271 /// The gap between the dashes of the dashed underline (if null, the default value is 1.0f). <br />
272 /// Only valid when "UnderlineType.Dashed" type is used.
274 public float? DashGap { get; set; }
277 /// Determines whether the specified object is equal to the current object.
279 /// <param name="obj">The object to compare with the current object.</param>
280 /// <returns>true if equal Underline, else false.</returns>
281 [EditorBrowsable(EditorBrowsableState.Never)]
282 public override bool Equals(object obj) => obj is Underline other && this.Equals(other);
285 /// Determines whether the specified object is equal to the current object.
287 /// <param name="other">The Underline to compare with the current Underline.</param>
288 /// <returns>true if equal Underline, else false.</returns>
289 [EditorBrowsable(EditorBrowsableState.Never)]
290 public bool Equals(Underline other) => Enable == other.Enable && Color == other.Color && Height == other.Height;
295 /// <param name="lhsUnderline">Underline to compare</param>
296 /// <param name="rhsUnderline">Underline to be compared</param>
297 /// <returns>true if Underlines are equal</returns>
298 [EditorBrowsable(EditorBrowsableState.Never)]
299 public static bool operator ==(Underline lhsUnderline, Underline rhsUnderline) => lhsUnderline.Equals(rhsUnderline);
304 /// <param name="lhsUnderline">Underline to compare</param>
305 /// <param name="rhsUnderline">Underline to be compared</param>
306 /// <returns>true if Underlines are not equal</returns>
307 [EditorBrowsable(EditorBrowsableState.Never)]
308 public static bool operator !=(Underline lhsUnderline, Underline rhsUnderline) => !lhsUnderline.Equals(rhsUnderline);
311 /// Gets the hash code of this Underline.
313 /// <returns>The hash code.</returns>
314 [EditorBrowsable(EditorBrowsableState.Never)]
315 public override int GetHashCode() => (Enable, Color, Height).GetHashCode();
319 /// A struct to pass data of Shadow PropertyMap. <br />
322 /// The Shadow struct is used as an argument to SetShadow and GetShadow methods. <br />
323 /// See <see cref="Tizen.NUI.BaseComponents.TextLabel.SetShadow"/>, <see cref="Tizen.NUI.BaseComponents.TextLabel.GetShadow"/>, <see cref="Tizen.NUI.BaseComponents.TextField.SetShadow"/>, <see cref="Tizen.NUI.BaseComponents.TextField.GetShadow"/>, <see cref="Tizen.NUI.BaseComponents.TextEditor.SetShadow"/> and <see cref="Tizen.NUI.BaseComponents.TextEditor.GetShadow"/>. <br />
325 [EditorBrowsable(EditorBrowsableState.Never)]
326 public struct Shadow : IEquatable<Shadow>
329 /// The color of the shadow (the default color is Color.Black).
331 [EditorBrowsable(EditorBrowsableState.Never)]
332 public Color Color { get; set; }
335 /// The offset in pixels of the shadow (if null, the default value is 0, 0). <br />
336 /// If not provided then the shadow is not enabled. <br />
339 [EditorBrowsable(EditorBrowsableState.Never)]
340 public Vector2 Offset { get; set; }
343 /// The radius of the Gaussian blur for the soft shadow (if null, the default value is 0.0f). <br />
344 /// If not provided then the soft shadow is not enabled. <br />
346 [EditorBrowsable(EditorBrowsableState.Never)]
347 public float? BlurRadius { get; set; }
350 /// Determines whether the specified object is equal to the current object.
352 /// <param name="obj">The object to compare with the current object.</param>
353 /// <returns>true if equal Shadow, else false.</returns>
354 [EditorBrowsable(EditorBrowsableState.Never)]
355 public override bool Equals(object obj) => obj is Shadow other && this.Equals(other);
358 /// Determines whether the specified object is equal to the current object.
360 /// <param name="other">The Shadow to compare with the current Shadow.</param>
361 /// <returns>true if equal Shadow, else false.</returns>
362 [EditorBrowsable(EditorBrowsableState.Never)]
363 public bool Equals(Shadow other) => Color == other.Color && Offset == other.Offset && BlurRadius == other.BlurRadius;
368 /// <param name="lhsShadow">Shadow to compare</param>
369 /// <param name="rhsShadow">Shadow to be compared</param>
370 /// <returns>true if Shadows are equal</returns>
371 [EditorBrowsable(EditorBrowsableState.Never)]
372 public static bool operator ==(Shadow lhsShadow, Shadow rhsShadow) => lhsShadow.Equals(rhsShadow);
377 /// <param name="lhsShadow">Shadow to compare</param>
378 /// <param name="rhsShadow">Shadow to be compared</param>
379 /// <returns>true if Shadows are not equal</returns>
380 [EditorBrowsable(EditorBrowsableState.Never)]
381 public static bool operator !=(Shadow lhsShadow, Shadow rhsShadow) => !lhsShadow.Equals(rhsShadow);
384 /// Gets the hash code of this Shadow.
386 /// <returns>The hash code.</returns>
387 [EditorBrowsable(EditorBrowsableState.Never)]
388 public override int GetHashCode() => (Color, Offset, BlurRadius).GetHashCode();
392 /// A struct to pass data of Outline PropertyMap. <br />
395 /// The Outline struct is used as an argument to SetOutline and GetOutline methods. <br />
396 /// See <see cref="Tizen.NUI.BaseComponents.TextLabel.SetOutline"/>, <see cref="Tizen.NUI.BaseComponents.TextLabel.GetOutline"/>, <see cref="Tizen.NUI.BaseComponents.TextField.SetOutline"/>, <see cref="Tizen.NUI.BaseComponents.TextField.GetOutline"/>, <see cref="Tizen.NUI.BaseComponents.TextEditor.SetOutline"/> and <see cref="Tizen.NUI.BaseComponents.TextEditor.GetOutline"/>. <br />
398 [EditorBrowsable(EditorBrowsableState.Never)]
399 public struct Outline : IEquatable<Outline>
402 /// The color of the outline (the default color is Color.White).
404 [EditorBrowsable(EditorBrowsableState.Never)]
405 public Color Color { get; set; }
408 /// The width in pixels of the outline (if null, the default value is 0.0f). <br />
409 /// If not provided then the outline is not enabled. <br />
411 [EditorBrowsable(EditorBrowsableState.Never)]
412 public float? Width { get; set; }
415 /// Determines whether the specified object is equal to the current object.
417 /// <param name="obj">The object to compare with the current object.</param>
418 /// <returns>true if equal Outline, else false.</returns>
419 [EditorBrowsable(EditorBrowsableState.Never)]
420 public override bool Equals(object obj) => obj is Outline other && this.Equals(other);
423 /// Determines whether the specified object is equal to the current object.
425 /// <param name="other">The Outline to compare with the current Outline.</param>
426 /// <returns>true if equal Outline, else false.</returns>
427 [EditorBrowsable(EditorBrowsableState.Never)]
428 public bool Equals(Outline other) => Color == other.Color && Width == other.Width;
433 /// <param name="lhsOutline">Outline to compare</param>
434 /// <param name="rhsOutline">Outline to be compared</param>
435 /// <returns>true if Outlines are equal</returns>
436 [EditorBrowsable(EditorBrowsableState.Never)]
437 public static bool operator ==(Outline lhsOutline, Outline rhsOutline) => lhsOutline.Equals(rhsOutline);
442 /// <param name="lhsOutline">Outline to compare</param>
443 /// <param name="rhsOutline">Outline to be compared</param>
444 /// <returns>true if Outlines are not equal</returns>
445 [EditorBrowsable(EditorBrowsableState.Never)]
446 public static bool operator !=(Outline lhsOutline, Outline rhsOutline) => !lhsOutline.Equals(rhsOutline);
449 /// Gets the hash code of this Outline.
451 /// <returns>The hash code.</returns>
452 [EditorBrowsable(EditorBrowsableState.Never)]
453 public override int GetHashCode() => (Color, Width).GetHashCode();
457 /// A struct to pass data of TextFit PropertyMap. <br />
460 /// The TextFit struct is used as an argument to SetTextFit and GetTextFit methods. <br />
461 /// See <see cref="Tizen.NUI.BaseComponents.TextLabel.SetTextFit"/> and <see cref="Tizen.NUI.BaseComponents.TextLabel.GetTextFit"/>. <br />
463 [EditorBrowsable(EditorBrowsableState.Never)]
464 public struct TextFit : IEquatable<TextFit>
467 /// True to enable the text fit or false to disable (the default value is false).
469 [EditorBrowsable(EditorBrowsableState.Never)]
470 public bool Enable { get; set; }
473 /// Minimum Size for text fit (if null, the default value is 10.0f).
475 [EditorBrowsable(EditorBrowsableState.Never)]
476 public float? MinSize { get; set; }
479 /// Maximum Size for text fit (if null, the default value is 100.0f).
481 [EditorBrowsable(EditorBrowsableState.Never)]
482 public float? MaxSize { get; set; }
485 /// Step Size for font increase (if null, the default value is 1.0f).
487 [EditorBrowsable(EditorBrowsableState.Never)]
488 public float? StepSize { get; set; }
491 /// The size type of font, PointSize or PixelSize (the default value is PointSize).
493 [EditorBrowsable(EditorBrowsableState.Never)]
494 public FontSizeType FontSizeType { get; set; }
497 /// Font Size for text fit
499 [EditorBrowsable(EditorBrowsableState.Never)]
500 public float? FontSize { get; set; }
503 /// Determines whether the specified object is equal to the current object.
505 /// <param name="obj">The object to compare with the current object.</param>
506 /// <returns>true if equal TextFit, else false.</returns>
507 [EditorBrowsable(EditorBrowsableState.Never)]
508 public override bool Equals(object obj) => obj is TextFit other && this.Equals(other);
511 /// Determines whether the specified object is equal to the current object.
513 /// <param name="other">The TextFit to compare with the current TextFit.</param>
514 /// <returns>true if equal TextFit, else false.</returns>
515 [EditorBrowsable(EditorBrowsableState.Never)]
516 public bool Equals(TextFit other) => Enable == other.Enable && MinSize == other.MinSize && MaxSize == other.MaxSize &&
517 StepSize == other.StepSize && FontSizeType == other.FontSizeType && FontSize == other.FontSize;
522 /// <param name="lhsTextFit">TextFit to compare</param>
523 /// <param name="rhsTextFit">TextFit to be compared</param>
524 /// <returns>true if TextFits are equal</returns>
525 [EditorBrowsable(EditorBrowsableState.Never)]
526 public static bool operator ==(TextFit lhsTextFit, TextFit rhsTextFit) => lhsTextFit.Equals(rhsTextFit);
531 /// <param name="lhsTextFit">TextFit to compare</param>
532 /// <param name="rhsTextFit">TextFit to be compared</param>
533 /// <returns>true if TextFits are not equal</returns>
534 [EditorBrowsable(EditorBrowsableState.Never)]
535 public static bool operator !=(TextFit lhsTextFit, TextFit rhsTextFit) => !lhsTextFit.Equals(rhsTextFit);
538 /// Gets the hash code of this TextFit.
540 /// <returns>The hash code.</returns>
541 [EditorBrowsable(EditorBrowsableState.Never)]
542 public override int GetHashCode() => (Enable, MinSize, MaxSize, StepSize, FontSizeType, FontSize).GetHashCode();
546 /// A struct to pass data of Placeholder PropertyMap. <br />
549 /// The Placeholder struct is used as an argument to SetPlaceholder and GetPlaceholder methods. <br />
550 /// See <see cref="Tizen.NUI.BaseComponents.TextField.SetPlaceholder"/>, <see cref="Tizen.NUI.BaseComponents.TextField.SetPlaceholder"/>, <see cref="Tizen.NUI.BaseComponents.TextEditor.SetPlaceholder"/> and <see cref="Tizen.NUI.BaseComponents.TextEditor.SetPlaceholder"/>. <br />
552 [EditorBrowsable(EditorBrowsableState.Never)]
553 public struct Placeholder : IEquatable<Placeholder>
556 /// The text to display when the TextField is empty and inactive.
558 [EditorBrowsable(EditorBrowsableState.Never)]
559 public string Text { get; set; }
562 /// The text to display when the placeholder has focus.
564 [EditorBrowsable(EditorBrowsableState.Never)]
565 public string TextFocused { get; set; }
568 /// The color of the placeholder text.
570 [EditorBrowsable(EditorBrowsableState.Never)]
571 public Color Color { get; set; }
574 /// The FontFamily of the placeholder text.
576 [EditorBrowsable(EditorBrowsableState.Never)]
577 public string FontFamily { get; set; }
580 /// The FontStyle of the placeholder text (if null, the text control FontStyle is used).
582 [EditorBrowsable(EditorBrowsableState.Never)]
583 public FontStyle? FontStyle { get; set; }
586 /// The PointSize of the placeholder text. <br />
587 /// Not required if PixelSize provided. <br />
588 /// If both provided or neither provided then the text control point size is used. <br />
590 [EditorBrowsable(EditorBrowsableState.Never)]
591 public float? PointSize { get; set; }
594 /// The PiexSize of the placeholder text.
595 /// Not required if PointSize provided. <br />
596 /// If both provided or neither provided then the text control point size is used. <br />
598 [EditorBrowsable(EditorBrowsableState.Never)]
599 public float? PixelSize { get; set; }
602 /// The ellipsis of the placeholder text (the default value is false).
604 [EditorBrowsable(EditorBrowsableState.Never)]
605 public bool Ellipsis { get; set; }
608 /// Determines whether the specified object is equal to the current object.
610 /// <param name="obj">The object to compare with the current object.</param>
611 /// <returns>true if equal Placeholder, else false.</returns>
612 [EditorBrowsable(EditorBrowsableState.Never)]
613 public override bool Equals(object obj) => obj is Placeholder other && this.Equals(other);
616 /// Determines whether the specified object is equal to the current object.
618 /// <param name="other">The Placeholder to compare with the current Placeholder.</param>
619 /// <returns>true if equal Placeholder, else false.</returns>
620 [EditorBrowsable(EditorBrowsableState.Never)]
621 public bool Equals(Placeholder other) =>
622 Text == other.Text && TextFocused == other.TextFocused && Color == other.Color && FontFamily == other.FontFamily &&
623 FontStyle == other.FontStyle && PointSize == other.PointSize && PixelSize == other.PixelSize && Ellipsis == other.Ellipsis;
628 /// <param name="lhsPlaceholder">Placeholder to compare</param>
629 /// <param name="rhsPlaceholder">Placeholder to be compared</param>
630 /// <returns>true if Placeholders are equal</returns>
631 [EditorBrowsable(EditorBrowsableState.Never)]
632 public static bool operator ==(Placeholder lhsPlaceholder, Placeholder rhsPlaceholder) => lhsPlaceholder.Equals(rhsPlaceholder);
637 /// <param name="lhsPlaceholder">Placeholder to compare</param>
638 /// <param name="rhsPlaceholder">Placeholder to be compared</param>
639 /// <returns>true if Placeholders are not equal</returns>
640 [EditorBrowsable(EditorBrowsableState.Never)]
641 public static bool operator !=(Placeholder lhsPlaceholder, Placeholder rhsPlaceholder) => !lhsPlaceholder.Equals(rhsPlaceholder);
644 /// Gets the hash code of this Placeholder.
646 /// <returns>The hash code.</returns>
647 [EditorBrowsable(EditorBrowsableState.Never)]
648 public override int GetHashCode() => (Text, TextFocused, Color, FontFamily, FontStyle, PointSize, PixelSize, Ellipsis).GetHashCode();
652 /// A struct to pass data of HiddenInputSettings PropertyMap. <br />
655 /// The HiddenInput struct is used as an argument to SetHiddenInput and GetHiddenInput methods. <br />
656 /// See <see cref="Tizen.NUI.BaseComponents.TextField.SetHiddenInput"/> and <see cref="Tizen.NUI.BaseComponents.TextField.GetHiddenInput"/>. <br />
658 [EditorBrowsable(EditorBrowsableState.Never)]
659 public struct HiddenInput : IEquatable<HiddenInput>
662 /// The mode for input text display. <br />
664 [EditorBrowsable(EditorBrowsableState.Never)]
665 public HiddenInputModeType Mode { get; set; }
668 /// All input characters are substituted by this character (if null, the default value is '*'). <br />
670 [EditorBrowsable(EditorBrowsableState.Never)]
671 public char? SubstituteCharacter { get; set; }
674 /// Length of text to show or hide, available when HideCount/ShowCount mode is used (if null, the default value is 0). <br />
676 [EditorBrowsable(EditorBrowsableState.Never)]
677 public int? SubstituteCount { get; set; }
680 /// Hide last character after this duration, available when ShowLastCharacter mode (if null, the default value is 1000). <br />
682 [EditorBrowsable(EditorBrowsableState.Never)]
683 public int? ShowLastCharacterDuration { get; set; }
686 /// Determines whether the specified object is equal to the current object.
688 /// <param name="obj">The object to compare with the current object.</param>
689 /// <returns>true if equal HiddenInput, else false.</returns>
690 [EditorBrowsable(EditorBrowsableState.Never)]
691 public override bool Equals(object obj) => obj is HiddenInput other && this.Equals(other);
694 /// Determines whether the specified object is equal to the current object.
696 /// <param name="other">The HiddenInput to compare with the current HiddenInput.</param>
697 /// <returns>true if equal HiddenInput, else false.</returns>
698 [EditorBrowsable(EditorBrowsableState.Never)]
699 public bool Equals(HiddenInput other) => Mode == other.Mode && SubstituteCharacter == other.SubstituteCharacter &&
700 SubstituteCount == other.SubstituteCount && ShowLastCharacterDuration == other.ShowLastCharacterDuration;
705 /// <param name="lhsHiddenInput">HiddenInput to compare</param>
706 /// <param name="rhsHiddenInput">HiddenInput to be compared</param>
707 /// <returns>true if HiddenInputs are equal</returns>
708 [EditorBrowsable(EditorBrowsableState.Never)]
709 public static bool operator ==(HiddenInput lhsHiddenInput, HiddenInput rhsHiddenInput) => lhsHiddenInput.Equals(rhsHiddenInput);
714 /// <param name="lhsHiddenInput">HiddenInput to compare</param>
715 /// <param name="rhsHiddenInput">HiddenInput to be compared</param>
716 /// <returns>true if HiddenInputs are not equal</returns>
717 [EditorBrowsable(EditorBrowsableState.Never)]
718 public static bool operator !=(HiddenInput lhsHiddenInput, HiddenInput rhsHiddenInput) => !lhsHiddenInput.Equals(rhsHiddenInput);
721 /// Gets the hash code of this HiddenInput.
723 /// <returns>The hash code.</returns>
724 [EditorBrowsable(EditorBrowsableState.Never)]
725 public override int GetHashCode() => (Mode, SubstituteCharacter, SubstituteCount, ShowLastCharacterDuration).GetHashCode();
729 /// A struct to pass data of SelectionHandleImageLeft, SelectionHandleImageRight, SelectionHandlePressedImageLeft, SelectionHandlePressedImageRight, SelectionHandleMarkerImageLeft and SelectionHandleMarkerImageRight PropertyMap. <br />
732 /// The SelectionHandleImage struct is used as an argument to SetSelectionHandleImage, GetSelectionHandleImage methods, SetSelectionHandlePressedImage, GetSelectionHandlePressedImage, SetSelectionHandleMarkerImage and GetSelectionHandleMarkerImage. <br />
733 /// See <see cref="Tizen.NUI.BaseComponents.TextField.SetSelectionHandleImage"/>, <see cref="Tizen.NUI.BaseComponents.TextField.GetSelectionHandleImage"/>, <see cref="Tizen.NUI.BaseComponents.TextField.SetSelectionHandlePressedImage"/>, <see cref="Tizen.NUI.BaseComponents.TextField.GetSelectionHandlePressedImage"/>, <see cref="Tizen.NUI.BaseComponents.TextField.SetSelectionHandleMarkerImage"/>, <see cref="Tizen.NUI.BaseComponents.TextField.GetSelectionHandleMarkerImage"/>, <br />
734 /// <see cref="Tizen.NUI.BaseComponents.TextEditor.SetSelectionHandleImage"/>, <see cref="Tizen.NUI.BaseComponents.TextEditor.GetSelectionHandleImage"/>, <see cref="Tizen.NUI.BaseComponents.TextEditor.SetSelectionHandlePressedImage"/>, <see cref="Tizen.NUI.BaseComponents.TextEditor.GetSelectionHandlePressedImage"/>, <see cref="Tizen.NUI.BaseComponents.TextEditor.SetSelectionHandleMarkerImage"/> and <see cref="Tizen.NUI.BaseComponents.TextEditor.GetSelectionHandleMarkerImage"/>. <br />
736 [EditorBrowsable(EditorBrowsableState.Never)]
737 public struct SelectionHandleImage : IEquatable<SelectionHandleImage>
740 /// The image path to display for the left selection handle. <br />
741 /// It means the handle in the bottom-left. <br />
742 /// If the handle needs to be displayed in the top-left, this image will be vertically flipped. <br />
743 /// If null or empty string, it doesn't change the property. <br />
745 [EditorBrowsable(EditorBrowsableState.Never)]
746 public string LeftImageUrl { get; set; }
749 /// The image path to display for the right selection handle. <br />
750 /// It means the handle in the bottom-right. <br />
751 /// If the handle needs to be displayed in the top-right, this image will be vertically flipped. <br />
752 /// If null or empty string, it doesn't change the property. <br />
754 [EditorBrowsable(EditorBrowsableState.Never)]
755 public string RightImageUrl { get; set; }
758 /// Determines whether the specified object is equal to the current object.
760 /// <param name="obj">The object to compare with the current object.</param>
761 /// <returns>true if equal SelectionHandleImage, else false.</returns>
762 [EditorBrowsable(EditorBrowsableState.Never)]
763 public override bool Equals(object obj) => obj is SelectionHandleImage other && this.Equals(other);
766 /// Determines whether the specified object is equal to the current object.
768 /// <param name="other">The SelectionHandleImage to compare with the current SelectionHandleImage.</param>
769 /// <returns>true if equal SelectionHandleImage, else false.</returns>
770 [EditorBrowsable(EditorBrowsableState.Never)]
771 public bool Equals(SelectionHandleImage other) => LeftImageUrl == other.LeftImageUrl && RightImageUrl == other.RightImageUrl;
776 /// <param name="lhsSelectionHandleImage">SelectionHandleImage to compare</param>
777 /// <param name="rhsSelectionHandleImage">SelectionHandleImage to be compared</param>
778 /// <returns>true if SelectionHandleImages are equal</returns>
779 [EditorBrowsable(EditorBrowsableState.Never)]
780 public static bool operator ==(SelectionHandleImage lhsSelectionHandleImage, SelectionHandleImage rhsSelectionHandleImage)
781 => lhsSelectionHandleImage.Equals(rhsSelectionHandleImage);
786 /// <param name="lhsSelectionHandleImage">SelectionHandleImage to compare</param>
787 /// <param name="rhsSelectionHandleImage">SelectionHandleImage to be compared</param>
788 /// <returns>true if SelectionHandleImages are not equal</returns>
789 [EditorBrowsable(EditorBrowsableState.Never)]
790 public static bool operator !=(SelectionHandleImage lhsSelectionHandleImage, SelectionHandleImage rhsSelectionHandleImage)
791 => !lhsSelectionHandleImage.Equals(rhsSelectionHandleImage);
794 /// Gets the hash code of this SelectionHandleImage.
796 /// <returns>The hash code.</returns>
797 [EditorBrowsable(EditorBrowsableState.Never)]
798 public override int GetHashCode() => (LeftImageUrl, RightImageUrl).GetHashCode();