Show / Hide Table of Contents

Struct ColorSerialized

Serializable (pure-data) object representing a Color.

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 ColorSerialized

Fields

View Source

A

Alpha-value for the color.

Declaration
public byte A
Field Value
Type Description
byte
View Source

B

"B" value for the color.

Declaration
public byte B
Field Value
Type Description
byte
View Source

G

"G" value for the color.

Declaration
public byte G
Field Value
Type Description
byte
View Source

R

"R" value for the color.

Declaration
public byte R
Field Value
Type Description
byte

Operators

View Source

implicit operator ColorSerialized(Color)

Converts Color to ColorSerialized.

Declaration
public static implicit operator ColorSerialized(Color color)
Parameters
Type Name Description
Color color
Returns
Type Description
ColorSerialized
View Source

implicit operator Color(ColorSerialized)

Converts ColorSerialized to Color.

Declaration
public static implicit operator Color(ColorSerialized color)
Parameters
Type Name Description
ColorSerialized color
Returns
Type Description
Color

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