Struct Shadow

Definition

Namespace:
Tizen.NUI.Text
Assembly:
Tizen.NUI.dll

A struct to pass data of Shadow PropertyMap.

C#
Copy
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 Source

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#
Copy
public float? BlurRadius { get; set; }
Property Value
Type Description
Nullable<Single>
View Source

Color

The color of the shadow (the default color is Color.Black).

Declaration
C#
Copy
public Color Color { get; set; }
Property Value
Type Description
Color
View Source

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#
Copy
public Vector2 Offset { get; set; }
Property Value
Type Description
Vector2

Methods

View Source

Equals(Object)

Determines whether the specified object is equal to the current object.

Declaration
C#
Copy
public 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.

View Source

Equals(Shadow)

Determines whether the specified object is equal to the current object.

Declaration
C#
Copy
public 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.

View Source

GetHashCode()

Gets the hash code of this Shadow.

Declaration
C#
Copy
public override int GetHashCode()
Returns
Type Description
Int32

The hash code.

Operators

View Source

Equality(Shadow, Shadow)

The == operator.

Declaration
C#
Copy
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
Boolean

true if Shadows are equal

View Source

Inequality(Shadow, Shadow)

The != operator.

Declaration
C#
Copy
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
Boolean

true if Shadows are not equal

Implements

IEquatable<>

Extension Methods