Class GradientVisual
Definition
- Assembly:
- Tizen.NUI.dll
Visual to render gradient.
public class GradientVisual : VisualBase, IDynamicResourceHandler, INameScope, System.IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceGradientVisual()
Creates an visual object.
Declaration
public GradientVisual()
Properties
View SourceCenter
Gets or sets the center point of a radial gradient.
Mandatory for radial and conic.
Declaration
public UIVector2 Center { get; set; }
Property Value
| Type | Description |
|---|---|
| UIVector2 |
EndPosition
Gets or sets the end position of a linear gradient.
Mandatory for linear.
Declaration
public UIVector2 EndPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| UIVector2 |
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 |
StartAngle
Gets or sets the start angle of the conic gradient.
Mandatory for conic.
Optional.
Declaration
public float StartAngle { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
StartOffset
Gets or sets the gradient's start position offset.
If not supplied, the default is 0.0f.
Optional.
Declaration
public float StartOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
StartPosition
Gets or sets the start position of a linear gradient.
Mandatory for linear.
Declaration
public UIVector2 StartPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| UIVector2 |
StopColors
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 IList<UIColor> StopColors { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<><UIColor> |
StopOffsets
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 IList<float> StopOffsets { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<><float> |
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 |