Show / Hide Table of Contents

Struct RectangleSerialized

Serializable (pure-data) object representing a Rectangle.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: SadRogue.Primitives.SerializedTypes
Assembly: TheSadRogue.Primitives.dll
Syntax
public struct RectangleSerialized

Fields

View Source

Height

Height of the rectangle.

Declaration
public int Height
Field Value
Type Description
int
View Source

Width

Width of the rectangle.

Declaration
public int Width
Field Value
Type Description
int
View Source

X

X-coordinate of the minimum extent of the rectangle.

Declaration
public int X
Field Value
Type Description
int
View Source

Y

Y-coordinate of the minimum extent of the rectangle.

Declaration
public int Y
Field Value
Type Description
int

Operators

View Source

implicit operator RectangleSerialized(Rectangle)

Converts from Rectangle to RectangleSerialized.

Declaration
public static implicit operator RectangleSerialized(Rectangle rect)
Parameters
Type Name Description
Rectangle rect
Returns
Type Description
RectangleSerialized
View Source

implicit operator Rectangle(RectangleSerialized)

Converts from RectangleSerialized to Rectangle.

Declaration
public static implicit operator Rectangle(RectangleSerialized rect)
Parameters
Type Name Description
RectangleSerialized rect
Returns
Type Description
Rectangle

Extension Methods

PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>?)
PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>?, EventHandler<ValueChangedEventArgs<TProperty>>?)
  • View Source
In this article
Back to top Generated by DocFX