2 * Copyright(c) 2020 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 using System.ComponentModel;
20 using System.Collections.Generic;
21 using Tizen.NUI.Binding;
23 namespace Tizen.NUI.BaseComponents
26 /// Class with the text and style parameters to be rendered into a pixel buffer.
28 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
29 [EditorBrowsable(EditorBrowsableState.Never)]
30 public class RendererParameters : Disposable
32 internal RendererParameters(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
36 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RendererParameters obj)
38 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
44 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
46 Interop.RendererParameters.delete_RendererParameters(swigCPtr);
50 /// Construct RendererParameters
52 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
53 [EditorBrowsable(EditorBrowsableState.Never)]
54 public RendererParameters() : this(Interop.RendererParameters.new_RendererParameters__SWIG_0(), true)
56 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
60 /// The text to be rendered
62 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
63 [EditorBrowsable(EditorBrowsableState.Never)]
68 Interop.RendererParameters.RendererParameters_text_set(swigCPtr, value);
69 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
73 string ret = Interop.RendererParameters.RendererParameters_text_get(swigCPtr);
74 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
80 /// The horizontal alignment: one of HorizontalAlignment.
82 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
83 [EditorBrowsable(EditorBrowsableState.Never)]
84 public HorizontalAlignment HorizontalAlignment
88 string alignment = "begin";
91 case HorizontalAlignment.Begin:
96 case HorizontalAlignment.Center:
101 case HorizontalAlignment.End:
111 Interop.RendererParameters.RendererParameters_horizontalAlignment_set(swigCPtr, alignment);
112 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116 string ret = Interop.RendererParameters.RendererParameters_horizontalAlignment_get(swigCPtr);
117 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
118 HorizontalAlignment alignment = HorizontalAlignment.Begin;
123 alignment = HorizontalAlignment.Begin;
128 alignment = HorizontalAlignment.Center;
133 alignment = HorizontalAlignment.End;
146 /// The vertical alignment: one of VerticalAlignment.
148 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
149 [EditorBrowsable(EditorBrowsableState.Never)]
150 public VerticalAlignment VerticalAlignment
154 string alignment = "top";
157 case VerticalAlignment.Top:
162 case VerticalAlignment.Center:
164 alignment = "center";
167 case VerticalAlignment.Bottom:
169 alignment = "bottom";
177 Interop.RendererParameters.RendererParameters_verticalAlignment_set(swigCPtr, alignment);
178 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
182 string ret = Interop.RendererParameters.RendererParameters_verticalAlignment_get(swigCPtr);
183 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
184 VerticalAlignment alignment = VerticalAlignment.Top;
189 alignment = VerticalAlignment.Top;
194 alignment = VerticalAlignment.Center;
199 alignment = VerticalAlignment.Bottom;
212 /// The font's family.
214 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
215 [EditorBrowsable(EditorBrowsableState.Never)]
216 public string FontFamily
220 Interop.RendererParameters.RendererParameters_fontFamily_set(swigCPtr, value);
221 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
225 string ret = Interop.RendererParameters.RendererParameters_fontFamily_get(swigCPtr);
226 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
232 /// The font's weight: one of {"thin", "ultraLight", "extraLight", "light", "demiLight", "semiLight", "book", "normal", "regular", "medium", "demiBold", "semiBold", "bold", "ultraBold", "extraBold", "black", "heavy", "extraBlack"}.
234 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
235 [EditorBrowsable(EditorBrowsableState.Never)]
236 public string FontWeight
240 Interop.RendererParameters.RendererParameters_fontWeight_set(swigCPtr, value);
241 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
245 string ret = Interop.RendererParameters.RendererParameters_fontWeight_get(swigCPtr);
246 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
252 /// The font's width: one of {"ultraCondensed", "extraCondensed", "condensed", "semiCondensed", "normal", "semiExpanded", "expanded", "extraExpanded", "ultraExpanded"}.
254 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
255 [EditorBrowsable(EditorBrowsableState.Never)]
256 public string FontWidth
260 Interop.RendererParameters.RendererParameters_fontWidth_set(swigCPtr, value);
261 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
265 string ret = Interop.RendererParameters.RendererParameters_fontWidth_get(swigCPtr);
266 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
272 /// The font's slant. one of {"normal", "roman", "italic", "oblique"}
274 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
275 [EditorBrowsable(EditorBrowsableState.Never)]
276 public string FontSlant
280 Interop.RendererParameters.RendererParameters_fontSlant_set(swigCPtr, value);
281 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
285 string ret = Interop.RendererParameters.RendererParameters_fontSlant_get(swigCPtr);
286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292 /// The type of layout: one of TextLayout {"singleLine", "multiLine", "circular"}
294 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
295 [EditorBrowsable(EditorBrowsableState.Never)]
296 public TextLayout Layout
300 string textLayout = "singleLine";
303 case TextLayout.SingleLine:
305 textLayout = "singleLine";
308 case TextLayout.MultiLine:
310 textLayout = "multiLine";
313 case TextLayout.Circular:
315 textLayout = "circular";
323 Interop.RendererParameters.RendererParameters_layout_set(swigCPtr, textLayout);
324 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
328 string ret = Interop.RendererParameters.RendererParameters_layout_get(swigCPtr);
329 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
330 TextLayout textLayout = TextLayout.SingleLine;
335 textLayout = TextLayout.SingleLine;
340 textLayout = TextLayout.MultiLine;
345 textLayout = TextLayout.Circular;
358 /// The text alignment within the arc: one of CircularAlignment. The @p horizontalAlignment and @p verticalAlignment can be used to align the text within the text area.
360 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
361 [EditorBrowsable(EditorBrowsableState.Never)]
362 public CircularAlignment CircularAlignment
366 string alignment = "begin";
369 case CircularAlignment.Begin:
374 case CircularAlignment.Center:
376 alignment = "center";
379 case CircularAlignment.End:
389 Interop.RendererParameters.RendererParameters_circularAlignment_set(swigCPtr, alignment);
390 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
394 string ret = Interop.RendererParameters.RendererParameters_circularAlignment_get(swigCPtr);
395 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396 CircularAlignment alignment = CircularAlignment.Begin;
401 alignment = CircularAlignment.Begin;
406 alignment = CircularAlignment.Center;
411 alignment = CircularAlignment.End;
424 /// The default text's color. Default is white.
426 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
427 [EditorBrowsable(EditorBrowsableState.Never)]
428 public Vector4 TextColor
432 Interop.RendererParameters.RendererParameters_textColor_set(swigCPtr, Vector4.getCPtr(value));
433 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
437 Vector4 ret = new Vector4(Interop.RendererParameters.RendererParameters_textColor_get(swigCPtr), true);
438 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
444 /// The font's size (in points).
446 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
447 [EditorBrowsable(EditorBrowsableState.Never)]
448 public float FontSize
452 Interop.RendererParameters.RendererParameters_fontSize_set(swigCPtr, value);
453 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
457 float ret = Interop.RendererParameters.RendererParameters_fontSize_get(swigCPtr);
458 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
464 /// The width in pixels of the boundaries where the text is going to be laid-out.
466 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
467 [EditorBrowsable(EditorBrowsableState.Never)]
468 public uint TextWidth
472 Interop.RendererParameters.RendererParameters_textWidth_set(swigCPtr, value);
473 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477 uint ret = Interop.RendererParameters.RendererParameters_textWidth_get(swigCPtr);
478 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
484 /// The height in pixels of the boundaries where the text is going to be laid-out.
486 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
487 [EditorBrowsable(EditorBrowsableState.Never)]
488 public uint TextHeight
492 Interop.RendererParameters.RendererParameters_textHeight_set(swigCPtr, value);
493 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
497 uint ret = Interop.RendererParameters.RendererParameters_textHeight_get(swigCPtr);
498 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
504 /// The radius in pixels of the circular text.
506 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
507 [EditorBrowsable(EditorBrowsableState.Never)]
512 Interop.RendererParameters.RendererParameters_radius_set(swigCPtr, value);
513 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
517 uint ret = Interop.RendererParameters.RendererParameters_radius_get(swigCPtr);
518 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
524 /// The begin angle in degrees of the text area on the circle. The top of the circle is 0°, the right side 90°, the bottom 180° and the left 270°.
526 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
527 [EditorBrowsable(EditorBrowsableState.Never)]
528 public float BeginAngle
532 Interop.RendererParameters.RendererParameters_beginAngle_set(swigCPtr, value);
533 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
537 float ret = Interop.RendererParameters.RendererParameters_beginAngle_get(swigCPtr);
538 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
544 /// The increment angle in degrees of the text area on the circle. The @p incrementAngle defines a direction. If positive, the text will be laid out clockwise.
546 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
547 [EditorBrowsable(EditorBrowsableState.Never)]
548 public float IncrementAngle
552 Interop.RendererParameters.RendererParameters_incrementAngle_set(swigCPtr, value);
553 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
557 float ret = Interop.RendererParameters.RendererParameters_incrementAngle_get(swigCPtr);
558 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
564 /// Whether the ellipsis layout option is enabled.
566 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
567 [EditorBrowsable(EditorBrowsableState.Never)]
568 public bool EllipsisEnabled
572 Interop.RendererParameters.RendererParameters_ellipsisEnabled_set(swigCPtr, value);
573 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
577 bool ret = Interop.RendererParameters.RendererParameters_ellipsisEnabled_get(swigCPtr);
578 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
584 /// Whether the mark-up processor is enabled.
586 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
587 [EditorBrowsable(EditorBrowsableState.Never)]
588 public bool MarkupEnabled
592 Interop.RendererParameters.RendererParameters_markupEnabled_set(swigCPtr, value);
593 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
597 bool ret = Interop.RendererParameters.RendererParameters_markupEnabled_get(swigCPtr);
598 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
604 /// Whether a default color has been set.
606 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
607 [EditorBrowsable(EditorBrowsableState.Never)]
608 public bool IsTextColorSet
612 Interop.RendererParameters.RendererParameters_isTextColorSet_set(swigCPtr, value);
613 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
617 bool ret = Interop.RendererParameters.RendererParameters_isTextColorSet_get(swigCPtr);
618 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
624 /// Minimum size of line.
626 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
627 [EditorBrowsable(EditorBrowsableState.Never)]
628 public float MinLineSize
632 Interop.RendererParameters.RendererParameters_minLineSize_set(swigCPtr, value);
633 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
637 float ret = Interop.RendererParameters.RendererParameters_minLineSize_get(swigCPtr);
638 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
646 /// Class with info of the embedded items layout.
648 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
649 [EditorBrowsable(EditorBrowsableState.Never)]
650 public class EmbeddedItemInfo : Disposable
653 internal EmbeddedItemInfo(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
657 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(EmbeddedItemInfo obj)
659 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
665 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
667 Interop.EmbeddedItemInfo.delete_EmbeddedItemInfo(swigCPtr);
671 /// Construct EmbeddedItemInfo
673 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
674 [EditorBrowsable(EditorBrowsableState.Never)]
675 public EmbeddedItemInfo() : this(Interop.EmbeddedItemInfo.new_EmbeddedItemInfo__SWIG_0(), true)
677 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
681 /// Index to the character within the string.
683 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
684 [EditorBrowsable(EditorBrowsableState.Never)]
685 public uint CharacterIndex
689 Interop.EmbeddedItemInfo.EmbeddedItemInfo_characterIndex_set(swigCPtr, value);
690 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
694 uint ret = Interop.EmbeddedItemInfo.EmbeddedItemInfo_characterIndex_get(swigCPtr);
695 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
701 /// Index to the glyph
703 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
704 [EditorBrowsable(EditorBrowsableState.Never)]
705 public uint GlyphIndex
709 Interop.EmbeddedItemInfo.EmbeddedItemInfo_glyphIndex_set(swigCPtr, value);
710 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
714 uint ret = Interop.EmbeddedItemInfo.EmbeddedItemInfo_glyphIndex_get(swigCPtr);
715 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
721 /// The layout position within the buffer (top, left corner).
723 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
724 [EditorBrowsable(EditorBrowsableState.Never)]
725 public Vector2 Position
729 Interop.EmbeddedItemInfo.EmbeddedItemInfo_position_set(swigCPtr, Vector2.getCPtr(value));
730 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
734 Vector2 ret = new Vector2(Interop.EmbeddedItemInfo.EmbeddedItemInfo_position_get(swigCPtr), swigCMemOwn);
735 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
741 /// The size within the buffer of the embedded item.
743 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
744 [EditorBrowsable(EditorBrowsableState.Never)]
749 Interop.EmbeddedItemInfo.EmbeddedItemInfo_size_set(swigCPtr, Size.getCPtr(value));
750 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
754 Size ret = new Size(Interop.EmbeddedItemInfo.EmbeddedItemInfo_size_get(swigCPtr), swigCMemOwn);
755 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
761 /// The rotated size within the buffer of the embedded item.
763 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
764 [EditorBrowsable(EditorBrowsableState.Never)]
765 public Size RotatedSize
769 Interop.EmbeddedItemInfo.EmbeddedItemInfo_rotatedSize_set(swigCPtr, Size.getCPtr(value));
770 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
774 Size ret = new Size(Interop.EmbeddedItemInfo.EmbeddedItemInfo_rotatedSize_get(swigCPtr), swigCMemOwn);
775 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
781 /// Rotation angle of the pixel buffer in degrees.
783 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
784 [EditorBrowsable(EditorBrowsableState.Never)]
789 Interop.EmbeddedItemInfo.EmbeddedItemInfo_angle_set(swigCPtr, Degree.getCPtr(value));
790 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
794 Degree ret = new Degree(Interop.EmbeddedItemInfo.EmbeddedItemInfo_angle_get(swigCPtr), swigCMemOwn);
795 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
801 /// Whether the color of the image is multiplied by the color of the text.
803 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
804 [EditorBrowsable(EditorBrowsableState.Never)]
805 public Tizen.NUI.ColorBlendingMode ColorBlendingMode
809 Interop.EmbeddedItemInfo.EmbeddedItemInfo_colorBlendingMode_set(swigCPtr, value);
810 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
814 Tizen.NUI.ColorBlendingMode ret = Interop.EmbeddedItemInfo.EmbeddedItemInfo_colorBlendingMode_get(swigCPtr);
815 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
822 /// Class with the parameters needed to build a shadow for the given pixel buffer.
824 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
825 [EditorBrowsable(EditorBrowsableState.Never)]
826 public class ShadowParameters : Disposable
829 internal ShadowParameters(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
833 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ShadowParameters obj)
835 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
841 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
843 Interop.ShadowParameters.delete_ShadowParameters(swigCPtr);
847 /// Construct ShadowParameters
849 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
850 [EditorBrowsable(EditorBrowsableState.Never)]
851 public ShadowParameters() : this(Interop.ShadowParameters.new_ShadowParameters__SWIG_0(), true)
853 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
857 /// The input pixel buffer used to create the shadow.
859 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
860 [EditorBrowsable(EditorBrowsableState.Never)]
861 public PixelBuffer Input
865 Interop.ShadowParameters.ShadowParameters_input_set(swigCPtr, PixelBuffer.getCPtr(value));
866 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
870 PixelBuffer ret = new PixelBuffer(Interop.ShadowParameters.ShadowParameters_input_get(swigCPtr), true);
871 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
877 /// The color of the text.
879 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
880 [EditorBrowsable(EditorBrowsableState.Never)]
881 public Vector4 TextColor
885 Interop.ShadowParameters.ShadowParameters_textColor_set(swigCPtr, Vector4.getCPtr(value));
886 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
890 Vector4 ret = new Vector4(Interop.ShadowParameters.ShadowParameters_textColor_get(swigCPtr), true);
891 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
897 /// The color of the shadow.
899 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
900 [EditorBrowsable(EditorBrowsableState.Never)]
905 Interop.ShadowParameters.ShadowParameters_color_set(swigCPtr, Vector4.getCPtr(value));
906 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
910 Vector4 ret = new Vector4(Interop.ShadowParameters.ShadowParameters_color_get(swigCPtr), true);
911 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
917 /// The offset of the shadow.
919 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
920 [EditorBrowsable(EditorBrowsableState.Never)]
921 public Vector2 Offset
925 Interop.ShadowParameters.ShadowParameters_offset_set(swigCPtr, Vector2.getCPtr(value));
926 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
930 Vector2 ret = new Vector2(Interop.ShadowParameters.ShadowParameters_offset_get(swigCPtr), true);
931 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
937 /// Whether to blend the shadow.
939 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
940 [EditorBrowsable(EditorBrowsableState.Never)]
941 public bool blendShadow
945 Interop.ShadowParameters.ShadowParameters_blendShadow_set(swigCPtr, value);
946 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
950 bool ret = Interop.ShadowParameters.ShadowParameters_blendShadow_get(swigCPtr);
951 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
959 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
960 [EditorBrowsable(EditorBrowsableState.Never)]
961 public static partial class TextUtils
964 /// Renders text into a pixel buffer.
965 /// @note: Can process a mark-up string.
966 /// @note: It does the font selection, RTL reordering, shaping and layouting.
967 /// @note: The width of the pixel buffer may be different to the given @e textWidth
968 /// due to some padding pixels added.
970 /// The text is laid-out for the given size @e (textWidth,textHeight).
971 /// If the @e multiLineEnabled option is enabled, the text will wrap in lines.
972 /// If the @e ellipsisEnabled option is enabled, the text will be ellided if
973 /// there is no more space for new lines.
975 /// It won't be rendered the parts of the text exceeding the boundaries of
976 /// the given width and height.
978 /// If the given @e textHeight is zero, a big enough pixel buffer will be created
979 /// to render the full text.
981 /// If the given @e textWidth is zero, the 'natural size' of the text will be
982 /// used to create the pixel buffer to render the full text.
984 /// If the radius is not zero, the text will be laid-out following a circular path.
985 /// In that case the text is laid-out in a single line.
987 /// If the mark-up string contains embedded items, the @p embeddedItemLayout vector
988 /// contains the layout info of each embedded item.
990 /// <param name="textParameters">The text and style options.</param>
991 /// <param name="embeddedItemLayout">The layout info of the embedded items</param>
992 /// <returns>A pixel buffer with the text rendered on it.</returns>
993 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
994 [EditorBrowsable(EditorBrowsableState.Never)]
995 public static PixelBuffer Render(RendererParameters textParameters, ref EmbeddedItemInfo[] embeddedItemLayout)
999 global::System.IntPtr returnItem = IntPtr.Zero;
1000 PixelBuffer ret = new PixelBuffer(Interop.TextUtils.TextUtils_Render(RendererParameters.getCPtr(textParameters), ref returnItem, ref count, ref length), true);
1002 embeddedItemLayout = new EmbeddedItemInfo[count];
1003 for (int i = 0; i < count; i++)
1005 IntPtr p = new IntPtr((returnItem.ToInt32() + i * length));
1006 embeddedItemLayout[i] = new EmbeddedItemInfo(p, false);
1008 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1013 /// Creates a shadow for the text given in the input pixel buffer.
1014 /// The function returns a RGBA8888 pixel buffer with the text and its shadow rendered on it.
1016 /// The pixel format of the @e input pixel buffer could be an A8 or an RGBA8888. If it's
1017 /// an A8 pixel buffer, it uses the given @e textColor to give color to the text. Otherwise
1018 /// it uses the color of the @e input pixel buffer.
1020 /// <param name="shadowParameters">The parameters needed to create the text's shadow.</param>
1021 /// <returns>A pixel buffer with the text and the shadow rendered on it.</returns>
1022 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
1023 [EditorBrowsable(EditorBrowsableState.Never)]
1024 public static PixelBuffer CreateShadow(ShadowParameters shadowParameters)
1026 PixelBuffer ret = new PixelBuffer(Interop.TextUtils.TextUtils_CreateShadow(ShadowParameters.getCPtr(shadowParameters)), true);
1027 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1032 /// Converts a @p pixelBuffer with pixel format A8 to RGBA8888 using the given @p color.
1033 /// @note Does nothing if the @p pixelBuffer is not A8.
1035 /// <param name="pixelBuffer">The pixel buffer with pixel format A8</param>
1036 /// <param name="color">The color used to convert to RGBA8888</param>
1037 /// <param name="multiplyByAlpha">multiplyByAlpha Whether to multiply the @p color with the alpha value of the @p pixel @p buffer.</param>
1038 /// <returns>The pixel buffer converted to RGBA8888.</returns>
1039 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
1040 [EditorBrowsable(EditorBrowsableState.Never)]
1041 public static PixelBuffer ConvertToRgba8888(PixelBuffer pixelBuffer, Vector4 color, bool multiplyByAlpha)
1043 PixelBuffer ret = new PixelBuffer(Interop.TextUtils.TextUtils_ConvertToRgba8888(PixelBuffer.getCPtr(pixelBuffer), Vector4.getCPtr(color), multiplyByAlpha), true);
1044 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1049 /// Updates the @p dst pixel buffer with the data from @p src pixel buffer.
1050 /// @note Both pixel buffers must have the same pixel format. Does nothing if both pixel format are different.
1051 /// @note The function does nothing if the @p src pixel buffer doesn't fit into the @p dst pixel buffer.
1053 /// The @p src pixel buffer could be blended with the @p dst pixel buffer if @p blend is set to @e true.
1055 /// <param name="src">The pixel buffer from where the data is read.</param>
1056 /// <param name="dst">The pixel buffer where the data is written.</param>
1057 /// <param name="x">The top left corner's X within the destination pixel buffer.</param>
1058 /// <param name="y">The top left corner's y within the destination pixel buffer.</param>
1059 /// <param name="blend">Whether to blend the source pixel buffer with the destination pixel buffer as background.</param>
1060 // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
1061 [EditorBrowsable(EditorBrowsableState.Never)]
1062 public static void UpdateBuffer(PixelBuffer src, PixelBuffer dst, uint x, uint y, bool blend)
1064 Interop.TextUtils.TextUtils_UpdateBuffer(PixelBuffer.getCPtr(src), PixelBuffer.getCPtr(dst), x, y, blend);
1065 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1069 /// Splits the text in pages of the size given in @p textParameters
1070 /// @note The returned indices are indices to utf32 characters. The input text is encoded in utf8.
1071 /// <returns> An array with the indices of the last character of each page </returns>
1073 [EditorBrowsable(EditorBrowsableState.Never)]
1074 public static Tizen.NUI.PropertyArray GetLastCharacterIndex(RendererParameters textParameters)
1076 Tizen.NUI.PropertyArray ret = new Tizen.NUI.PropertyArray(Interop.TextUtils.TextUtils_GetLastCharacterIndex(RendererParameters.getCPtr(textParameters)), true);
1077 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();