Show / Hide Table of Contents

Struct GradientSerialized

Serializable (pure-data) object representing a Gradient.

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 GradientSerialized

Fields

View Source

Stops

Colors/stop locations that describe the gradient.

Declaration
public List<GradientStopSerialized> Stops
Field Value
Type Description
List<GradientStopSerialized>

Operators

View Source

implicit operator GradientSerialized(Gradient)

Converts Gradient to GradientSerialized.

Declaration
public static implicit operator GradientSerialized(Gradient gradient)
Parameters
Type Name Description
Gradient gradient
Returns
Type Description
GradientSerialized
View Source

implicit operator Gradient(GradientSerialized)

Converts GradientSerialized to Gradient.

Declaration
public static implicit operator Gradient(GradientSerialized serialized)
Parameters
Type Name Description
GradientSerialized serialized
Returns
Type Description
Gradient

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