IconItem

Description

[ShutdownSurvive]
sealed class Tinman.Engine.Drawing.IconItem

Describes an icon item in an icon atlas.

IconItem objects act as resource handles and produce Bitmap resource objects.

Public / Attributes

Bounds


public attribute Bounds → (get)

value : Box2I

The trimmed pixel bounds.

Returns the bound of the trimmed icon in the atlas.

Height


public attribute Height → (get)

value : int32

The untrimmed icon height.

The untrimmed icon height.

Icons


public attribute Icons → (get)

value : IconAtlas

The icon atlas or null if none.

Returns the icon atlas this icon belongs to.

Name


public attribute Name → (get)

value : string

[not-empty]
The icon name.

The icon name.

Offset​X


public attribute OffsetX → (get)

value : int32

The horizontal offset.

The horizontal offset from the untrimmed icon rectangle to the trimmed bounds.

Offset​Y


public attribute OffsetY → (get)

value : int32

The vertical offset.

The vertical offset from the untrimmed icon rectangle to the trimmed bounds.

Width


public attribute Width → (get)

value : int32

The untrimmed icon width.

The untrimmed icon width.