Class ColorVisual
Definition
- Assembly:
- Tizen.NUI.dll
Simple visual to render a solid color.
public class ColorVisual : VisualBase, IDynamicResourceHandler, INameScope, System.IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceColorVisual()
Creates an visual object.
Declaration
public ColorVisual()
Properties
View SourceBlurRadius
Blur radius for this visual
Declaration
public float BlurRadius { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Remarks
This property will ignore BorderlineWidth property when we set BlurRadius property at least one time.
BorderlineColor
The color for the borderline of the visual. It is Color.Black by default.
Declaration
public Color BorderlineColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
BorderlineOffset
The Relative offset for the borderline of the visual. Recommended range : [-1.0f to 1.0f]. If -1.0f, draw borderline inside of the visual. If 1.0f, draw borderline outside of the visual. If 0.0f, draw borderline half inside and half outside. It is 0.0f by default.
Declaration
public float BorderlineOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
BorderlineWidth
The width for the borderline of the visual.
Declaration
public float BorderlineWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
CornerRadius
The radius for the rounded corners of the visual. The values in Vector4 are used in clockwise order from top-left to bottom-left : Vector4(top-left-corner, top-right-corner, bottom-right-corner, bottom-left-corner). Each radius will clamp internally to the half of smaller of the visual's width or height.
Declaration
public Vector4 CornerRadius { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector4 |
CornerRadiusPolicy
Whether the CornerRadius property value is relative (percentage [0.0f to 0.5f] of the visual size) or absolute (in world units). It is absolute by default. When the policy is relative, the corner radius is relative to the smaller of the visual's width and height.
Declaration
public VisualTransformPolicyType CornerRadiusPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| VisualTransformPolicyType |
CornerSquareness
The squareness for the rounded corners of the visual. The values in Vector4 are used in clockwise order from top-left to bottom-left : Vector4(top-left-corner, top-right-corner, bottom-right-corner, bottom-left-corner). Each radius will clamp internally between 0.0 and 1.0.
Declaration
public Vector4 CornerSquareness { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector4 |
CutoutPolicy
Cutout policy of color visual
Declaration
public ColorVisualCutoutPolicyType CutoutPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorVisualCutoutPolicyType |