Skip to content

StardewUI.Framework.Converters Namespace

Classes

Name Description
AnyCastConverterFactory Factory supporting conversions to and from IAnyCast.
BaseTypeConverterFactory Allows implicit conversion from a type's ancestor to the destination type, if the source type does not have its own explicitly-defined conversion but a base type does.
CastingValueConverterFactory Factory that automatically implements casting conversions, where the source type can be assigned directly to the destination type.
DuckTypeClassConverterFactory Factory that creates duck-typing converters for class and struct types.
DuckTypeEnumConverterFactory Factory that automatically implements duck-typing conversions between enum types that share the same names.
EnumNameConverterFactory Factory that automatically implements string-to-enum conversions based on the case-insensitive enum names.
IdentityValueConverterFactory Factory that automatically implements identity conversions, where the source and destination type are the same.
ItemSpriteConverter Converts data from a game item to its corresponding sprite.
LayoutConverter String converter for the LayoutParameters type.
NamedFontConverter Converter for fonts that are already built into the game, i.e. found on Game1.
NullableConverterFactory Factory that implements automatic conversion between nullable and non-nullable types.
PointConverter String converter for the XNA Point type.
StringConverterFactory Provides conversions from any type to string.
TextureRectSpriteConverter Converts a tuple with a texture and source rectangle (within the texture) to a sprite record.
TextureSpriteConverter Converts a texture to a sprite record, using the texture's entire bounds as the source rectangle.
TransformConverter String converter for the Transform type.
ValueConverter<TSource, TDestination> Generic delegating converter, accepting a conversion function.
ValueConverterFactory Standard implementation of IValueConverterFactory that allows registering new converters.

Interfaces

Name Description
IValueConverter Provides a method to convert between arbitrary types.
IValueConverter<TSource, TDestination> Provides a method to convert between value types.
IValueConverterFactory Factory for obtaining instance of IValueConverter<TSource, TDestination>.