Struct UICorner
Definition
- Assembly:
- Tizen.NUI.dll
Defines a value type of corner radius.
public struct UICorner : IEquatable<UICorner>
- Implements
-
IEquatable<><UICorner>
Constructors
View SourceUICorner(float, bool)
Initializes a new instance of the UICorner struct.
Declaration
public UICorner(float uniform, bool isRelative)
Parameters
| Type | Name | Description |
|---|---|---|
| float | uniform | The uniform corner value. |
| bool | isRelative | Whether the values should be considered as relative to target box size. |
UICorner(float, float, float, float, bool)
Initializes a new instance of the UICorner struct.
Declaration
public UICorner(float topLeft, float topRight, float bottomRight, float bottomLeft, bool isRelative)
Parameters
| Type | Name | Description |
|---|---|---|
| float | topLeft | The top-left value. |
| float | topRight | The top-right value. |
| float | bottomRight | The bottom-right value. |
| float | bottomLeft | The bottom-left value. |
| bool | isRelative | Whether the values should be considered as relative to target box size. |
UICorner(float, float, float, float)
Initializes a new instance of the UICorner struct.
Declaration
public UICorner(float topLeft, float topRight, float bottomRight, float bottomLeft)
Parameters
| Type | Name | Description |
|---|---|---|
| float | topLeft | The top-left value. |
| float | topRight | The top-right value. |
| float | bottomRight | The bottom-right value. |
| float | bottomLeft | The bottom-left value. |
UICorner(float)
Initializes a new instance of the UICorner struct.
Declaration
public UICorner(float uniform)
Parameters
| Type | Name | Description |
|---|---|---|
| float | uniform | The uniform corner value. |
Fields
View SourceZero
The zero corner.
Declaration
public static readonly UICorner Zero
Field Value
| Type | Description |
|---|---|
| UICorner |
Properties
View SourceBottomLeft
The radius of the bottom left corner of the rectangle.
Declaration
public float BottomLeft { readonly get; init; }
Property Value
| Type | Description |
|---|---|
| float |
BottomRight
The radius of the bottom right corner of the rectangle.
Declaration
public float BottomRight { readonly get; init; }
Property Value
| Type | Description |
|---|---|
| float |
IsNaN
Gets a value indicating whether this is NaN.
Declaration
public readonly bool IsNaN { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsRelative
Gets a value indicating whether the values are relative to target box size.
Declaration
public bool IsRelative { readonly get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
IsZero
Gets a value indicating whether this is zero.
Declaration
public readonly bool IsZero { get; }
Property Value
| Type | Description |
|---|---|
| bool |
TopLeft
The radius of the top left corner of the rectangle.
Declaration
public float TopLeft { readonly get; init; }
Property Value
| Type | Description |
|---|---|
| float |
TopRight
The radius of the top right corner of the rectangle.
Declaration
public float TopRight { readonly get; init; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
View SourceEquals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Equals(UICorner)
Whether this is equivalent to other.
Declaration
public bool Equals(UICorner other)
Parameters
| Type | Name | Description |
|---|---|---|
| UICorner | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Operators
View Sourceoperator ==(UICorner, UICorner)
Compares two value for equality.
Declaration
public static bool operator ==(UICorner operand1, UICorner operand2)
Parameters
| Type | Name | Description |
|---|---|---|
| UICorner | operand1 | The first operand object. |
| UICorner | operand2 | The second operand object. |
Returns
| Type | Description |
|---|---|
| bool | True if both are equal, otherwise false. |
operator !=(UICorner, UICorner)
Compares two value for inequality.
Declaration
public static bool operator !=(UICorner operand1, UICorner operand2)
Parameters
| Type | Name | Description |
|---|---|---|
| UICorner | operand1 | The first operand object. |
| UICorner | operand2 | The second operand object. |
Returns
| Type | Description |
|---|---|
| bool | True if both are not equal, otherwise false. |