Struct Shadow
Definition
- Assembly:
- Tizen.NUI.dll
A struct to pass data of Shadow PropertyMap.
public 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
View SourceBlurRadius
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
public float? BlurRadius { readonly get; set; }
Property Value
Type | Description |
---|---|
float? |
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().
Color
The color of the shadow (the default color is Color.Black).
Declaration
public Color Color { readonly get; set; }
Property Value
Type | Description |
---|---|
Color |
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().
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
public Vector2 Offset { readonly get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
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().
Methods
View SourceEquals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if equal Shadow, else false. |
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().
Equals(Shadow)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(Shadow other)
Parameters
Type | Name | Description |
---|---|---|
Shadow | other | The Shadow to compare with the current Shadow. |
Returns
Type | Description |
---|---|
bool | true if equal Shadow, else false. |
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().
GetHashCode()
Gets the hash code of this Shadow.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code. |
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().
Operators
View Sourceoperator ==(Shadow, Shadow)
The == operator.
Declaration
public 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 |
---|---|
bool | true if Shadows are equal |
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().
operator !=(Shadow, Shadow)
The != operator.
Declaration
public 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 |
---|---|
bool | true if Shadows are not equal |
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().