Skip to content

StardewUI.Graphics Namespace

Classes

Name Description
ButtonSpriteMap Base class for a ISpriteMap<T> for controller/keyboard bindings.
Cursor Defines a cursor that can be drawn instead of or in addition to the regular mouse pointer.
CustomButtonSpriteMap Controller/keyboard/mouse sprite map using custom/configured asset data.
GlobalTransform Global transform applied to an ISpriteBatch.
Hsv A color in the HSV space.
NineSlice Draws sprites according to a nine-slice scale.
PropagatedSpriteBatch Sprite batch wrapper with transform propagation.
RenderTargetPool Pools RenderTarget2D instances so they can be reused across multiple frames.
SimpleRotationExtensions Helper extensions for the SimpleRotation type.
SliceSettings Additional nine-slice settings for dealing with certain "unique" structures.
Sprite Definition for a scalable sprite.
SpriteMap<T> General implementation of an ISpriteMap<T> that can be prepared in a variety of ways.
SpriteMapBuilder<T> Builder interface for a SpriteMap<T> using a single texture source.
Transform Global transform applied to an ISpriteBatch.
TransformOrigin Describes the origin point to use for a local Transform.
UiSprites Included game sprites that are required for many UI/menu widgets.
XeluButtonSpriteMap Controller/keyboard sprite map based on Xelu's CC0 pack.

Interfaces

Name Description
ISpriteBatch Abstraction for the SpriteBatch providing sprite-drawing methods.
ISpriteMap<T> Provides a single method to obtain a sprite for some key, such as SButton.

Enums

Name Description
SimpleRotation Types of rotations that are considered to be "simple", i.e. those that only transpose pixels and are therefore fast and non-deforming.
SliceCenterPosition Specifies which side the center position of a SliceSettings instance is on.
XeluButtonSpriteMap.SpriteTheme Available theme variants for certain sprites.