Class BorderRadius
Namespace: Unity.UIWidgets.painting
Syntax
public class BorderRadius : IEquatable<BorderRadius>
Fields
bottomLeft
Declaration
public readonly Radius bottomLeft
Field Value
Type | Description |
---|---|
Radius |
bottomRight
Declaration
public readonly Radius bottomRight
Field Value
Type | Description |
---|---|
Radius |
topLeft
Declaration
public readonly Radius topLeft
Field Value
Type | Description |
---|---|
Radius |
topRight
Declaration
public readonly Radius topRight
Field Value
Type | Description |
---|---|
Radius |
zero
Declaration
public static readonly BorderRadius zero
Field Value
Type | Description |
---|---|
BorderRadius |
Methods
all(Single)
Declaration
public static BorderRadius all(float radius)
Parameters
Type | Name | Description |
---|---|---|
Single | radius |
Returns
Type | Description |
---|---|
BorderRadius |
all(Radius)
Declaration
public static BorderRadius all(Radius radius)
Parameters
Type | Name | Description |
---|---|---|
Radius | radius |
Returns
Type | Description |
---|---|
BorderRadius |
circular(Single)
Declaration
public static BorderRadius circular(float radius)
Parameters
Type | Name | Description |
---|---|---|
Single | radius |
Returns
Type | Description |
---|---|
BorderRadius |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Equals(BorderRadius)
Declaration
public bool Equals(BorderRadius other)
Parameters
Type | Name | Description |
---|---|---|
BorderRadius | other |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
horizontal(Nullable<Single>, Nullable<Single>)
Declaration
public static BorderRadius horizontal(float? left = default(float? ), float? right = default(float? ))
Parameters
Type | Name | Description |
---|---|---|
Nullable<Single> | left | |
Nullable<Single> | right |
Returns
Type | Description |
---|---|
BorderRadius |
horizontal(Radius, Radius)
Declaration
public static BorderRadius horizontal(Radius left = null, Radius right = null)
Parameters
Type | Name | Description |
---|---|---|
Radius | left | |
Radius | right |
Returns
Type | Description |
---|---|
BorderRadius |
lerp(BorderRadius, BorderRadius, Single)
Declaration
public static BorderRadius lerp(BorderRadius a, BorderRadius b, float t)
Parameters
Type | Name | Description |
---|---|---|
BorderRadius | a | |
BorderRadius | b | |
Single | t |
Returns
Type | Description |
---|---|
BorderRadius |
only(Nullable<Single>, Nullable<Single>, Nullable<Single>, Nullable<Single>)
Declaration
public static BorderRadius only(float? topLeft = default(float? ), float? topRight = default(float? ), float? bottomRight = default(float? ), float? bottomLeft = default(float? ))
Parameters
Type | Name | Description |
---|---|---|
Nullable<Single> | topLeft | |
Nullable<Single> | topRight | |
Nullable<Single> | bottomRight | |
Nullable<Single> | bottomLeft |
Returns
Type | Description |
---|---|
BorderRadius |
only(Radius, Radius, Radius, Radius)
Declaration
public static BorderRadius only(Radius topLeft = null, Radius topRight = null, Radius bottomRight = null, Radius bottomLeft = null)
Parameters
Type | Name | Description |
---|---|---|
Radius | topLeft | |
Radius | topRight | |
Radius | bottomRight | |
Radius | bottomLeft |
Returns
Type | Description |
---|---|
BorderRadius |
toRRect(Rect)
Declaration
public RRect toRRect(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect |
Returns
Type | Description |
---|---|
RRect |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
vertical(Nullable<Single>, Nullable<Single>)
Declaration
public static BorderRadius vertical(float? top = default(float? ), float? bottom = default(float? ))
Parameters
Type | Name | Description |
---|---|---|
Nullable<Single> | top | |
Nullable<Single> | bottom |
Returns
Type | Description |
---|---|
BorderRadius |
vertical(Radius, Radius)
Declaration
public static BorderRadius vertical(Radius top = null, Radius bottom = null)
Parameters
Type | Name | Description |
---|---|---|
Radius | top | |
Radius | bottom |
Returns
Type | Description |
---|---|
BorderRadius |
Operators
Addition(BorderRadius, BorderRadius)
Declaration
public static BorderRadius operator +(BorderRadius it, BorderRadius other)
Parameters
Type | Name | Description |
---|---|---|
BorderRadius | it | |
BorderRadius | other |
Returns
Type | Description |
---|---|
BorderRadius |
Division(BorderRadius, Single)
Declaration
public static BorderRadius operator /(BorderRadius it, float other)
Parameters
Type | Name | Description |
---|---|---|
BorderRadius | it | |
Single | other |
Returns
Type | Description |
---|---|
BorderRadius |
Equality(BorderRadius, BorderRadius)
Declaration
public static bool operator ==(BorderRadius a, BorderRadius b)
Parameters
Type | Name | Description |
---|---|---|
BorderRadius | a | |
BorderRadius | b |
Returns
Type | Description |
---|---|
Boolean |
Inequality(BorderRadius, BorderRadius)
Declaration
public static bool operator !=(BorderRadius a, BorderRadius b)
Parameters
Type | Name | Description |
---|---|---|
BorderRadius | a | |
BorderRadius | b |
Returns
Type | Description |
---|---|
Boolean |
Modulus(BorderRadius, Single)
Declaration
public static BorderRadius operator %(BorderRadius it, float other)
Parameters
Type | Name | Description |
---|---|---|
BorderRadius | it | |
Single | other |
Returns
Type | Description |
---|---|
BorderRadius |
Multiply(BorderRadius, Single)
Declaration
public static BorderRadius operator *(BorderRadius it, float other)
Parameters
Type | Name | Description |
---|---|---|
BorderRadius | it | |
Single | other |
Returns
Type | Description |
---|---|
BorderRadius |
Subtraction(BorderRadius, BorderRadius)
Declaration
public static BorderRadius operator -(BorderRadius it, BorderRadius other)
Parameters
Type | Name | Description |
---|---|---|
BorderRadius | it | |
BorderRadius | other |
Returns
Type | Description |
---|---|
BorderRadius |
UnaryNegation(BorderRadius)
Declaration
public static BorderRadius operator -(BorderRadius it)
Parameters
Type | Name | Description |
---|---|---|
BorderRadius | it |
Returns
Type | Description |
---|---|
BorderRadius |