Class GradientVisual
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
A class encapsulating the property map of the gradient visual.
public class GradientVisual : VisualMap
- Inheritance
Constructors
View SourceGradientVisual()
Constructor.
Declaration
public GradientVisual()
API Level: 3
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 |
API Level: 3
View SourceEndPosition
Gets or sets the end position of a linear gradient.
Mandatory for linear.
Declaration
public Vector2 EndPosition { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
API Level: 3
View SourceRadius
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 |
---|---|
Single |
API Level: 3
View SourceSpreadMethod
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 |
API Level: 3
View SourceStartPosition
Gets or sets the start position of a linear gradient.
Mandatory for linear.
Declaration
public Vector2 StartPosition { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
API Level: 3
View SourceStopColor
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 |
API Level: 3
View SourceStopOffset
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 |
API Level: 3
View SourceUnits
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 |
API Level: 3
Methods
View SourceComposingPropertyMap()
Compose the out visual map.
Declaration
protected override void ComposingPropertyMap()