Class GradientVisual
Definition
- Assembly:
- Tizen.NUI.dll
A class encapsulating the property map of the gradient visual.
public class GradientVisual : VisualMap, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceGradientVisual()
Default constructor of GradientVisual.
Declaration
public GradientVisual()
Properties
View SourceCenter
Gets or sets the center point of a radial gradient.
Mandatory for radial.
Declaration
public Vector2 Center { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
EndPosition
Gets or sets the end position of a linear gradient.
Mandatory for linear.
Declaration
public Vector2 EndPosition { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
Radius
Gets or sets the size of the radius of a radial gradient.
Mandatory for radial.
Declaration
public float Radius { get; set; }
Property Value
Type | Description |
---|---|
float |
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
public GradientVisualSpreadMethodType SpreadMethod { get; set; }
Property Value
Type | Description |
---|---|
GradientVisualSpreadMethodType |
StartPosition
Gets or sets the start position of a linear gradient.
Mandatory for linear.
Declaration
public Vector2 StartPosition { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
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
public PropertyArray StopColor { get; set; }
Property Value
Type | Description |
---|---|
PropertyArray |
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
public PropertyArray StopOffset { get; set; }
Property Value
Type | Description |
---|---|
PropertyArray |
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
public GradientVisualUnitsType Units { get; set; }
Property Value
Type | Description |
---|---|
GradientVisualUnitsType |
Methods
View SourceComposingPropertyMap()
Compose the out visual map.
Declaration
protected override void ComposingPropertyMap()