IconAtlas

Description

class Tinman.Engine.Drawing.IconAtlas

Extended by

DefaultIcons sealed

Base class for icon atlases.

Public / Constructors

Icon​Atlas


public constructor IconAtlas → (3)

iconWidth in : int32

[>0]
The icon width.

iconHeight in : int32

[>0]
The icon height.

handle in : IResourceHandle

[not-null]
The resource handle.

Creates a new icon atlas.

Public / Attributes

Handle


public attribute Handle → (get)

value : IResourceHandle

The Bitmap handle.

The bitmap handle for loading the icon atlas image.

Icons


public attribute Icons → (get)

value : ISortedMapConst<string, IconItem>

[not-null]
The icons.

Returns the icons of this atlas.

Icon​Size


public attribute IconSize → (get)

value : Vec2I

The untrimmed icon size.

Returns the untrimmed icon size.