*
*/
+extern alias TizenSystemSettings;
+using TizenSystemSettings.Tizen.System;
using System;
using System.ComponentModel;
-using System.Collections.Generic;
-using Tizen.NUI.Binding;
namespace Tizen.NUI.BaseComponents
{
{
}
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RendererParameters obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
+ /// <summary>
+ /// Dispose
+ /// </summary>
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
{
- Interop.RendererParameters.delete_RendererParameters(swigCPtr);
+ Interop.RendererParameters.DeleteRendererParameters(swigCPtr);
}
/// <summary>
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
- public RendererParameters() : this(Interop.RendererParameters.new_RendererParameters__SWIG_0(), true)
+ public RendererParameters() : this(Interop.RendererParameters.NewRendererParameters(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
{
set
{
- Interop.RendererParameters.RendererParameters_text_set(swigCPtr, value);
+ Interop.RendererParameters.TextSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- string ret = Interop.RendererParameters.RendererParameters_text_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ string ret = Interop.RendererParameters.TextGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
set
{
string alignment = "begin";
- switch(value)
+ switch (value)
{
- case HorizontalAlignment.Begin: {
- alignment = "begin";
- break;
- }
- case HorizontalAlignment.Center: {
- alignment = "center";
- break;
- }
- case HorizontalAlignment.End: {
- alignment = "end";
- break;
- }
- default : {
- break;
- }
+ case HorizontalAlignment.Begin:
+ {
+ alignment = "begin";
+ break;
+ }
+ case HorizontalAlignment.Center:
+ {
+ alignment = "center";
+ break;
+ }
+ case HorizontalAlignment.End:
+ {
+ alignment = "end";
+ break;
+ }
+ default:
+ {
+ break;
+ }
}
- Interop.RendererParameters.RendererParameters_horizontalAlignment_set(swigCPtr, alignment);
+ Interop.RendererParameters.HorizontalAlignmentSet(SwigCPtr, alignment);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- string ret = Interop.RendererParameters.RendererParameters_horizontalAlignment_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ string ret = Interop.RendererParameters.HorizontalAlignmentGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
HorizontalAlignment alignment = HorizontalAlignment.Begin;
- switch(ret)
+ switch (ret)
{
- case "begin": {
- alignment = HorizontalAlignment.Begin;
- break;
- }
- case "center": {
- alignment = HorizontalAlignment.Center;
- break;
- }
- case "end": {
- alignment = HorizontalAlignment.End;
- break;
- }
- default : {
- break;
- }
+ case "begin":
+ {
+ alignment = HorizontalAlignment.Begin;
+ break;
+ }
+ case "center":
+ {
+ alignment = HorizontalAlignment.Center;
+ break;
+ }
+ case "end":
+ {
+ alignment = HorizontalAlignment.End;
+ break;
+ }
+ default:
+ {
+ break;
+ }
}
return alignment;
}
set
{
string alignment = "top";
- switch(value)
+ switch (value)
{
- case VerticalAlignment.Top: {
- alignment = "top";
- break;
- }
- case VerticalAlignment.Center: {
- alignment = "center";
- break;
- }
- case VerticalAlignment.Bottom: {
- alignment = "bottom";
- break;
- }
- default : {
- break;
- }
+ case VerticalAlignment.Top:
+ {
+ alignment = "top";
+ break;
+ }
+ case VerticalAlignment.Center:
+ {
+ alignment = "center";
+ break;
+ }
+ case VerticalAlignment.Bottom:
+ {
+ alignment = "bottom";
+ break;
+ }
+ default:
+ {
+ break;
+ }
}
- Interop.RendererParameters.RendererParameters_verticalAlignment_set(swigCPtr, alignment);
+ Interop.RendererParameters.VerticalAlignmentSet(SwigCPtr, alignment);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- string ret = Interop.RendererParameters.RendererParameters_verticalAlignment_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ string ret = Interop.RendererParameters.VerticalAlignmentGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
VerticalAlignment alignment = VerticalAlignment.Top;
- switch(ret)
+ switch (ret)
{
- case "top": {
- alignment = VerticalAlignment.Top;
- break;
- }
- case "center": {
- alignment = VerticalAlignment.Center;
- break;
- }
- case "bottom": {
- alignment = VerticalAlignment.Bottom;
- break;
- }
- default : {
- break;
- }
+ case "top":
+ {
+ alignment = VerticalAlignment.Top;
+ break;
+ }
+ case "center":
+ {
+ alignment = VerticalAlignment.Center;
+ break;
+ }
+ case "bottom":
+ {
+ alignment = VerticalAlignment.Bottom;
+ break;
+ }
+ default:
+ {
+ break;
+ }
}
return alignment;
}
{
set
{
- Interop.RendererParameters.RendererParameters_fontFamily_set(swigCPtr, value);
+ Interop.RendererParameters.FontFamilySet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- string ret = Interop.RendererParameters.RendererParameters_fontFamily_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ string ret = Interop.RendererParameters.FontFamilyGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.RendererParameters.RendererParameters_fontWeight_set(swigCPtr, value);
+ Interop.RendererParameters.FontWeightSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- string ret = Interop.RendererParameters.RendererParameters_fontWeight_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ string ret = Interop.RendererParameters.FontWeightGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.RendererParameters.RendererParameters_fontWidth_set(swigCPtr, value);
+ Interop.RendererParameters.FontWidthSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- string ret = Interop.RendererParameters.RendererParameters_fontWidth_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ string ret = Interop.RendererParameters.FontWidthGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.RendererParameters.RendererParameters_fontSlant_set(swigCPtr, value);
+ Interop.RendererParameters.FontSlantSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- string ret = Interop.RendererParameters.RendererParameters_fontSlant_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ string ret = Interop.RendererParameters.FontSlantGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
set
{
string textLayout = "singleLine";
- switch(value)
+ switch (value)
{
- case TextLayout.SingleLine: {
- textLayout = "singleLine";
- break;
- }
- case TextLayout.MultiLine: {
- textLayout = "multiLine";
- break;
- }
- case TextLayout.Circular: {
- textLayout = "circular";
- break;
- }
- default : {
- break;
- }
+ case TextLayout.SingleLine:
+ {
+ textLayout = "singleLine";
+ break;
+ }
+ case TextLayout.MultiLine:
+ {
+ textLayout = "multiLine";
+ break;
+ }
+ case TextLayout.Circular:
+ {
+ textLayout = "circular";
+ break;
+ }
+ default:
+ {
+ break;
+ }
}
- Interop.RendererParameters.RendererParameters_layout_set(swigCPtr, textLayout);
+ Interop.RendererParameters.LayoutSet(SwigCPtr, textLayout);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- string ret = Interop.RendererParameters.RendererParameters_layout_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ string ret = Interop.RendererParameters.LayoutGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
TextLayout textLayout = TextLayout.SingleLine;
- switch(ret)
+ switch (ret)
{
- case "singleLine": {
- textLayout = TextLayout.SingleLine;
- break;
- }
- case "multiLine": {
- textLayout = TextLayout.MultiLine;
- break;
- }
- case "circular": {
- textLayout = TextLayout.Circular;
- break;
- }
- default : {
- break;
- }
+ case "singleLine":
+ {
+ textLayout = TextLayout.SingleLine;
+ break;
+ }
+ case "multiLine":
+ {
+ textLayout = TextLayout.MultiLine;
+ break;
+ }
+ case "circular":
+ {
+ textLayout = TextLayout.Circular;
+ break;
+ }
+ default:
+ {
+ break;
+ }
}
return textLayout;
}
set
{
string alignment = "begin";
- switch(value)
+ switch (value)
{
- case CircularAlignment.Begin: {
- alignment = "begin";
- break;
- }
- case CircularAlignment.Center: {
- alignment = "center";
- break;
- }
- case CircularAlignment.End: {
- alignment = "end";
- break;
- }
- default : {
- break;
- }
+ case CircularAlignment.Begin:
+ {
+ alignment = "begin";
+ break;
+ }
+ case CircularAlignment.Center:
+ {
+ alignment = "center";
+ break;
+ }
+ case CircularAlignment.End:
+ {
+ alignment = "end";
+ break;
+ }
+ default:
+ {
+ break;
+ }
}
- Interop.RendererParameters.RendererParameters_circularAlignment_set(swigCPtr, alignment);
+ Interop.RendererParameters.CircularAlignmentSet(SwigCPtr, alignment);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- string ret = Interop.RendererParameters.RendererParameters_circularAlignment_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ string ret = Interop.RendererParameters.CircularAlignmentGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
CircularAlignment alignment = CircularAlignment.Begin;
- switch(ret)
+ switch (ret)
{
- case "begin": {
- alignment = CircularAlignment.Begin;
- break;
- }
- case "center": {
- alignment = CircularAlignment.Center;
- break;
- }
- case "end": {
- alignment = CircularAlignment.End;
- break;
- }
- default : {
- break;
- }
+ case "begin":
+ {
+ alignment = CircularAlignment.Begin;
+ break;
+ }
+ case "center":
+ {
+ alignment = CircularAlignment.Center;
+ break;
+ }
+ case "end":
+ {
+ alignment = CircularAlignment.End;
+ break;
+ }
+ default:
+ {
+ break;
+ }
}
return alignment;
}
{
set
{
- Interop.RendererParameters.RendererParameters_textColor_set(swigCPtr, Vector4.getCPtr(value));
+ Interop.RendererParameters.TextColorSet(SwigCPtr, Vector4.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- Vector4 ret = new Vector4(Interop.RendererParameters.RendererParameters_textColor_get(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ Vector4 ret = new Vector4(Interop.RendererParameters.TextColorGet(SwigCPtr), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.RendererParameters.RendererParameters_fontSize_set(swigCPtr, value);
+ Interop.RendererParameters.FontSizeSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- float ret = Interop.RendererParameters.RendererParameters_fontSize_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ float ret = Interop.RendererParameters.FontSizeGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.RendererParameters.RendererParameters_textWidth_set(swigCPtr, value);
+ Interop.RendererParameters.TextWidthSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- uint ret = Interop.RendererParameters.RendererParameters_textWidth_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ uint ret = Interop.RendererParameters.TextWidthGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.RendererParameters.RendererParameters_textHeight_set(swigCPtr, value);
+ Interop.RendererParameters.TextHeightSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- uint ret = Interop.RendererParameters.RendererParameters_textHeight_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ uint ret = Interop.RendererParameters.TextHeightGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.RendererParameters.RendererParameters_radius_set(swigCPtr, value);
+ Interop.RendererParameters.RadiusSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- uint ret = Interop.RendererParameters.RendererParameters_radius_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ uint ret = Interop.RendererParameters.RadiusGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.RendererParameters.RendererParameters_beginAngle_set(swigCPtr, value);
+ Interop.RendererParameters.BeginAngleSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- float ret = Interop.RendererParameters.RendererParameters_beginAngle_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ float ret = Interop.RendererParameters.BeginAngleGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.RendererParameters.RendererParameters_incrementAngle_set(swigCPtr, value);
+ Interop.RendererParameters.IncrementAngleSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- float ret = Interop.RendererParameters.RendererParameters_incrementAngle_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ float ret = Interop.RendererParameters.IncrementAngleGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.RendererParameters.RendererParameters_ellipsisEnabled_set(swigCPtr, value);
+ Interop.RendererParameters.EllipsisEnabledSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- bool ret = Interop.RendererParameters.RendererParameters_ellipsisEnabled_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ bool ret = Interop.RendererParameters.EllipsisEnabledGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.RendererParameters.RendererParameters_markupEnabled_set(swigCPtr, value);
+ Interop.RendererParameters.MarkupEnabledSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- bool ret = Interop.RendererParameters.RendererParameters_markupEnabled_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ bool ret = Interop.RendererParameters.MarkupEnabledGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.RendererParameters.RendererParameters_isTextColorSet_set(swigCPtr, value);
+ Interop.RendererParameters.IsTextColorSetSet(SwigCPtr, value);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get
+ {
+ bool ret = Interop.RendererParameters.IsTextColorSetGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
+ return ret;
+ }
+ }
+
+ /// <summary>
+ /// Minimum size of line.
+ /// </summary>
+ // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float MinLineSize
+ {
+ set
+ {
+ Interop.RendererParameters.MinLineSizeSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- bool ret = Interop.RendererParameters.RendererParameters_isTextColorSet_get(swigCPtr);
+ float ret = Interop.RendererParameters.MinLineSizeGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
+ return ret;
+ }
+ }
+
+ /// <summary>
+ /// Padding of TextLabel.
+ /// </summary>
+ // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Extents Padding
+ {
+ set
+ {
+ Interop.RendererParameters.PaddingSet(SwigCPtr, Extents.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get
+ {
+ Extents ret = new Extents(Interop.RendererParameters.PaddingGet(SwigCPtr), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
}
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(EmbeddedItemInfo obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
+ /// <summary>
+ /// Dispose
+ /// </summary>
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
{
- Interop.EmbeddedItemInfo.delete_EmbeddedItemInfo(swigCPtr);
+ Interop.EmbeddedItemInfo.DeleteEmbeddedItemInfo(swigCPtr);
}
/// <summary>
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
- public EmbeddedItemInfo() : this(Interop.EmbeddedItemInfo.new_EmbeddedItemInfo__SWIG_0(), true)
+ public EmbeddedItemInfo() : this(Interop.EmbeddedItemInfo.NewEmbeddedItemInfo(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
{
set
{
- Interop.EmbeddedItemInfo.EmbeddedItemInfo_characterIndex_set(swigCPtr, value);
+ Interop.EmbeddedItemInfo.CharacterIndexSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- uint ret = Interop.EmbeddedItemInfo.EmbeddedItemInfo_characterIndex_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ uint ret = Interop.EmbeddedItemInfo.CharacterIndexGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.EmbeddedItemInfo.EmbeddedItemInfo_glyphIndex_set(swigCPtr, value);
+ Interop.EmbeddedItemInfo.GlyphIndexSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- uint ret = Interop.EmbeddedItemInfo.EmbeddedItemInfo_glyphIndex_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ uint ret = Interop.EmbeddedItemInfo.GlyphIndexGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.EmbeddedItemInfo.EmbeddedItemInfo_position_set(swigCPtr, Vector2.getCPtr(value));
+ Interop.EmbeddedItemInfo.PositionSet(SwigCPtr, Vector2.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- Vector2 ret = new Vector2(Interop.EmbeddedItemInfo.EmbeddedItemInfo_position_get(swigCPtr), swigCMemOwn);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ Vector2 ret = new Vector2(Interop.EmbeddedItemInfo.PositionGet(SwigCPtr), SwigCMemOwn);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.EmbeddedItemInfo.EmbeddedItemInfo_size_set(swigCPtr, Size.getCPtr(value));
+ Interop.EmbeddedItemInfo.SizeSet(SwigCPtr, Size.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- Size ret = new Size(Interop.EmbeddedItemInfo.EmbeddedItemInfo_size_get(swigCPtr), swigCMemOwn);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ Size ret = new Size(Interop.EmbeddedItemInfo.SizeGet(SwigCPtr), SwigCMemOwn);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.EmbeddedItemInfo.EmbeddedItemInfo_rotatedSize_set(swigCPtr, Size.getCPtr(value));
+ Interop.EmbeddedItemInfo.RotatedSizeSet(SwigCPtr, Size.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- Size ret = new Size(Interop.EmbeddedItemInfo.EmbeddedItemInfo_rotatedSize_get(swigCPtr), swigCMemOwn);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ Size ret = new Size(Interop.EmbeddedItemInfo.RotatedSizeGet(SwigCPtr), SwigCMemOwn);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.EmbeddedItemInfo.EmbeddedItemInfo_angle_set(swigCPtr, Degree.getCPtr(value));
+ Interop.EmbeddedItemInfo.AngleSet(SwigCPtr, Degree.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- Degree ret = new Degree(Interop.EmbeddedItemInfo.EmbeddedItemInfo_angle_get(swigCPtr), swigCMemOwn);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ Degree ret = new Degree(Interop.EmbeddedItemInfo.AngleGet(SwigCPtr), SwigCMemOwn);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.EmbeddedItemInfo.EmbeddedItemInfo_colorBlendingMode_set(swigCPtr, value);
+ Interop.EmbeddedItemInfo.ColorBlendingModeSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- Tizen.NUI.ColorBlendingMode ret = Interop.EmbeddedItemInfo.EmbeddedItemInfo_colorBlendingMode_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ Tizen.NUI.ColorBlendingMode ret = Interop.EmbeddedItemInfo.ColorBlendingModeGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
}
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ShadowParameters obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
+ /// <summary>
+ /// Dispose
+ /// </summary>
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
{
- Interop.ShadowParameters.delete_ShadowParameters(swigCPtr);
+ Interop.ShadowParameters.DeleteShadowParameters(swigCPtr);
}
/// <summary>
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
- public ShadowParameters() : this(Interop.ShadowParameters.new_ShadowParameters__SWIG_0(), true)
+ public ShadowParameters() : this(Interop.ShadowParameters.NewShadowParameters(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
{
set
{
- Interop.ShadowParameters.ShadowParameters_input_set(swigCPtr, PixelBuffer.getCPtr(value));
+ Interop.ShadowParameters.InputSet(SwigCPtr, PixelBuffer.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- PixelBuffer ret = new PixelBuffer(Interop.ShadowParameters.ShadowParameters_input_get(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ PixelBuffer ret = new PixelBuffer(Interop.ShadowParameters.InputGet(SwigCPtr), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.ShadowParameters.ShadowParameters_textColor_set(swigCPtr, Vector4.getCPtr(value));
+ Interop.ShadowParameters.TextColorSet(SwigCPtr, Vector4.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- Vector4 ret = new Vector4(Interop.ShadowParameters.ShadowParameters_textColor_get(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ Vector4 ret = new Vector4(Interop.ShadowParameters.TextColorGet(SwigCPtr), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.ShadowParameters.ShadowParameters_color_set(swigCPtr, Vector4.getCPtr(value));
+ Interop.ShadowParameters.ColorSet(SwigCPtr, Vector4.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- Vector4 ret = new Vector4(Interop.ShadowParameters.ShadowParameters_color_get(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ Vector4 ret = new Vector4(Interop.ShadowParameters.ColorGet(SwigCPtr), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.ShadowParameters.ShadowParameters_offset_set(swigCPtr, Vector2.getCPtr(value));
+ Interop.ShadowParameters.OffsetSet(SwigCPtr, Vector2.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- Vector2 ret = new Vector2(Interop.ShadowParameters.ShadowParameters_offset_get(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ Vector2 ret = new Vector2(Interop.ShadowParameters.OffsetGet(SwigCPtr), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
{
set
{
- Interop.ShadowParameters.ShadowParameters_blendShadow_set(swigCPtr, value);
+ Interop.ShadowParameters.BlendShadowSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- bool ret = Interop.ShadowParameters.ShadowParameters_blendShadow_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ bool ret = Interop.ShadowParameters.BlendShadowGet(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
return ret;
}
}
}
+ /// <summary>
+ /// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
[EditorBrowsable(EditorBrowsableState.Never)]
public static partial class TextUtils
int count = 0;
int length = 0;
global::System.IntPtr returnItem = IntPtr.Zero;
- PixelBuffer ret = new PixelBuffer(Interop.TextUtils.TextUtils_Render(RendererParameters.getCPtr(textParameters), ref returnItem, ref count, ref length), true);
+ PixelBuffer ret = new PixelBuffer(Interop.TextUtils.Render(RendererParameters.getCPtr(textParameters), ref returnItem, ref count, ref length), true);
embeddedItemLayout = new EmbeddedItemInfo[count];
- for(int i=0; i< count; i++) {
+ for (int i = 0; i < count; i++)
+ {
IntPtr p = new IntPtr((returnItem.ToInt32() + i * length));
embeddedItemLayout[i] = new EmbeddedItemInfo(p, false);
}
[EditorBrowsable(EditorBrowsableState.Never)]
public static PixelBuffer CreateShadow(ShadowParameters shadowParameters)
{
- PixelBuffer ret = new PixelBuffer(Interop.TextUtils.TextUtils_CreateShadow(ShadowParameters.getCPtr(shadowParameters)), true);
+ PixelBuffer ret = new PixelBuffer(Interop.TextUtils.CreateShadow(ShadowParameters.getCPtr(shadowParameters)), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
[EditorBrowsable(EditorBrowsableState.Never)]
public static PixelBuffer ConvertToRgba8888(PixelBuffer pixelBuffer, Vector4 color, bool multiplyByAlpha)
{
- PixelBuffer ret = new PixelBuffer(Interop.TextUtils.TextUtils_ConvertToRgba8888(PixelBuffer.getCPtr(pixelBuffer), Vector4.getCPtr(color), multiplyByAlpha), true);
+ PixelBuffer ret = new PixelBuffer(Interop.TextUtils.ConvertToRgba8888(PixelBuffer.getCPtr(pixelBuffer), Vector4.getCPtr(color), multiplyByAlpha), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
[EditorBrowsable(EditorBrowsableState.Never)]
public static void UpdateBuffer(PixelBuffer src, PixelBuffer dst, uint x, uint y, bool blend)
{
- Interop.TextUtils.TextUtils_UpdateBuffer(PixelBuffer.getCPtr(src), PixelBuffer.getCPtr(dst), x, y, blend);
+ Interop.TextUtils.UpdateBuffer(PixelBuffer.getCPtr(src), PixelBuffer.getCPtr(dst), x, y, blend);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- }
+ /// <summary>
+ /// Splits the text in pages of the size given in @p textParameters
+ /// @note The returned indices are indices to utf32 characters. The input text is encoded in utf8.
+ /// <returns> An array with the indices of the last character of each page </returns>
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static Tizen.NUI.PropertyArray GetLastCharacterIndex(RendererParameters textParameters)
+ {
+ Tizen.NUI.PropertyArray ret = new Tizen.NUI.PropertyArray(Interop.TextUtils.GetLastCharacterIndex(RendererParameters.getCPtr(textParameters)), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+#if PROFILE_TV
+ private const float FontSizeScaleSmall = 0.8f;
+ private const float FontSizeScaleNormal = 1.0f;
+ private const float FontSizeScaleLarge = 1.5f;
+ private const float FontSizeScaleHuge = 1.9f;
+ private const float FontSizeScaleGiant = 2.5f;
+#elif PROFILE_WEARABLE
+ // The following values from 'system-settings/libutil/sstu.c'
+ private const float FontSizeScaleSmall = 0.9f;
+ private const float FontSizeScaleNormal = 1.0f;
+ private const float FontSizeScaleLarge = 1.1f;
+ private const float FontSizeScaleHuge = 1.9f;
+ private const float FontSizeScaleGiant = 2.5f;
+#else // PROFILE_MOBILE and etc
+ // The following values from 'system-settings/libutil/sstu.c'
+ private const float FontSizeScaleSmall = 0.8f;
+ private const float FontSizeScaleNormal = 1.0f;
+ private const float FontSizeScaleLarge = 1.5f;
+ private const float FontSizeScaleHuge = 1.9f;
+ private const float FontSizeScaleGiant = 2.5f;
+#endif
+
+ /// <summary>
+ /// It returns a float value according to SystemSettingsFontSize.
+ /// The returned value can be used for FontSizeScale property.
+ /// <param name="systemSettingsFontSize">The SystemSettingsFontSize enum value.</param>
+ /// <returns> A float value for FontSizeScale property. </returns>
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static float GetFontSizeScale(SystemSettingsFontSize systemSettingsFontSize)
+ {
+ float ret = FontSizeScaleNormal;
+
+ switch (systemSettingsFontSize)
+ {
+ case SystemSettingsFontSize.Small:
+ ret = FontSizeScaleSmall;
+ break;
+ case SystemSettingsFontSize.Normal:
+ ret = FontSizeScaleNormal;
+ break;
+ case SystemSettingsFontSize.Large:
+ ret = FontSizeScaleLarge;
+ break;
+ case SystemSettingsFontSize.Huge:
+ ret = FontSizeScaleHuge;
+ break;
+ case SystemSettingsFontSize.Giant:
+ ret = FontSizeScaleGiant;
+ break;
+ }
+
+ return ret;
+ }
+
+ /// <summary>
+ /// Copy the previously selected text from the text control into the clipboard.
+ /// </summary>
+ /// <param name="textEditor">The textEditor control from which the text is copied.</param>
+ /// <returns>The copied text.</returns>
+ /// <since_tizen> 9 </since_tizen>
+ public static string CopyToClipboard(TextEditor textEditor)
+ {
+ string copiedText = Interop.TextEditor.CopyText(textEditor.SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return copiedText;
+ }
+
+ /// <summary>
+ /// Copy the previously selected text from the text control into the clipboard.
+ /// </summary>
+ /// <param name="textField">The textField control from which the text is copied.</param>
+ /// <returns>The copied text.</returns>
+ /// <since_tizen> 9 </since_tizen>
+ public static string CopyToClipboard(TextField textField)
+ {
+ string copiedText = Interop.TextField.CopyText(textField.SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return copiedText;
+ }
+
+ /// <summary>
+ /// Cut the previously selected text from the text control into the clipboard.
+ /// </summary>
+ /// <param name="textEditor">The textEditor control from which the text is cut.</param>
+ /// <returns>The cut text.</returns>
+ /// <since_tizen> 9 </since_tizen>
+ public static string CutToClipboard(TextEditor textEditor)
+ {
+ string cutText = Interop.TextEditor.CutText(textEditor.SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return cutText;
+ }
+
+ /// <summary>
+ /// Cut the previously selected text from the text control into the clipboard.
+ /// </summary>
+ /// <param name="textField">The textField control from which the text is cut.</param>
+ /// <returns>The cut text.</returns>
+ /// <since_tizen> 9 </since_tizen>
+ public static string CutToClipboard(TextField textField)
+ {
+ string cutText = Interop.TextField.CutText(textField.SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return cutText;
+ }
+
+ /// <summary>
+ /// Paste the most recently copied/cut text item from the clipboard into the text control.
+ /// </summary>
+ /// <remarks>
+ /// The pasted text will be inserted in the current cursor position and if the text control has no focus,
+ /// the text will be appended to the last cursor position and the text control will gain focus.
+ /// If some text inside the text control is selected, it will be replaced by the pasted text.
+ /// </remarks>
+ /// <param name="textEditor">The textEditor control into which the text is pasted.</param>
+ /// <since_tizen> 9 </since_tizen>
+ public static void PasteTo(TextEditor textEditor)
+ {
+ Interop.TextEditor.PasteText(textEditor.SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Paste the most recently copied/cut text item from the clipboard into the text control.
+ /// </summary>
+ /// <remarks>
+ /// The pasted text will be inserted in the current cursor position and if the text control has no focus,
+ /// the text will be appended to the last cursor position and the text control will gain focus.
+ /// If some text inside the text control is selected, it will be replaced by the pasted text.
+ /// </remarks>
+ /// <param name="textField">The textField control into which the text is pasted.</param>
+ /// <since_tizen> 9 </since_tizen>
+ public static void PasteTo(TextField textField)
+ {
+ Interop.TextField.PasteText(textField.SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ }
}