Struct Shadow
Definition
- Namespace:
- Tizen.NUI.Text
- Assembly:
- Tizen.NUI.dll
A struct to pass data of Shadow PropertyMap.
C#Copypublic struct Shadow : IEquatable<Shadow>
- Implements
-
IEquatable<Shadow>
Remarks
The Shadow struct is used as an argument to SetShadow and GetShadow methods.
See SetShadow(Shadow), GetShadow(), SetShadow(Shadow), GetShadow(), SetShadow(Shadow) and GetShadow().
Properties
BlurRadius
The radius of the Gaussian blur for the soft shadow (if null, the default value is 0.0f).
If not provided then the soft shadow is not enabled.
Declaration
C#Copypublic float? BlurRadius { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Single> |
Declaration
C#Copypublic Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Offset
The offset in pixels of the shadow (if null, the default value is 0, 0).
If not provided then the shadow is not enabled.
Declaration
C#Copypublic Vector2 Offset { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
Methods
Declaration
C#Copypublic override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | true if equal Shadow, else false. |
Declaration
C#Copypublic bool Equals(Shadow other)
Parameters
Type | Name | Description |
---|---|---|
Shadow | other | The Shadow to compare with the current Shadow. |
Returns
Type | Description |
---|---|
Boolean | true if equal Shadow, else false. |
Declaration
C#Copypublic override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code. |
Operators
Declaration
C#Copypublic static bool operator ==(Shadow lhsShadow, Shadow rhsShadow)
Parameters
Type | Name | Description |
---|---|---|
Shadow | lhsShadow | Shadow to compare |
Shadow | rhsShadow | Shadow to be compared |
Returns
Type | Description |
---|---|
Boolean | true if Shadows are equal |
Declaration
C#Copypublic static bool operator !=(Shadow lhsShadow, Shadow rhsShadow)
Parameters
Type | Name | Description |
---|---|---|
Shadow | lhsShadow | Shadow to compare |
Shadow | rhsShadow | Shadow to be compared |
Returns
Type | Description |
---|---|
Boolean | true if Shadows are not equal |