Class GradientVisual

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll
API Level:
3

A class encapsulating the property map of the gradient visual.

C#
Copy
public class GradientVisual : VisualMap
Inheritance
System.Object
GradientVisual

Constructors

View Source

GradientVisual()

Constructor.

Declaration
C#
Copy
public GradientVisual()
API Level: 3

Properties

View Source

Center

Gets or sets the center point of a radial gradient.
Mandatory for radial.

Declaration
C#
Copy
public Vector2 Center { get; set; }
Property Value
Type Description
Vector2
API Level: 3
View Source

EndPosition

Gets or sets the end position of a linear gradient.
Mandatory for linear.

Declaration
C#
Copy
public Vector2 EndPosition { get; set; }
Property Value
Type Description
Vector2
API Level: 3
View Source

Radius

Gets or sets the size of the radius of a radial gradient.
Mandatory for radial.

Declaration
C#
Copy
public float Radius { get; set; }
Property Value
Type Description
Single
API Level: 3
View Source

SpreadMethod

Gets or sets indications of what happens if the gradient starts or ends inside the bounds of the target rectangle.
If not supplied, the default is GradientVisualSpreadMethodType.Pad.
Optional.

Declaration
C#
Copy
public GradientVisualSpreadMethodType SpreadMethod { get; set; }
Property Value
Type Description
GradientVisualSpreadMethodType
API Level: 3
View Source

StartPosition

Gets or sets the start position of a linear gradient.
Mandatory for linear.

Declaration
C#
Copy
public Vector2 StartPosition { get; set; }
Property Value
Type Description
Vector2
API Level: 3
View Source

StopColor

Gets or sets the color at the stop offsets.
A PropertyArray of color.
At least 2 values are required to show a gradient.
Mandatory.

Declaration
C#
Copy
public PropertyArray StopColor { get; set; }
Property Value
Type Description
PropertyArray
API Level: 3
View Source

StopOffset

Gets or sets all the stop offsets.
A PropertyArray of float.
If not supplied, the default is 0.0f and 1.0f.
Optional.

Declaration
C#
Copy
public PropertyArray StopOffset { get; set; }
Property Value
Type Description
PropertyArray
API Level: 3
View Source

Units

Gets or sets descriptions of the coordinate system for certain attributes of the points in a gradient.
If not supplied, the default is GradientVisualUnitsType.ObjectBoundingBox.
Optional.

Declaration
C#
Copy
public GradientVisualUnitsType Units { get; set; }
Property Value
Type Description
GradientVisualUnitsType
API Level: 3

Methods

View Source

ComposingPropertyMap()

Compose the out visual map.

Declaration
C#
Copy
protected override void ComposingPropertyMap()
Overrides
API Level: 3