Struct asefile::Tileset[][src]

pub struct Tileset<P = Pixels> { /* fields omitted */ }
Expand description

A set of tiles of the same size.

In the GUI, this is the collection of tiles that you build up in the side bar. Each tile has the same size and is identified by an Id.

See official docs for tilemaps and tilesets for details.

Implementations

Tileset id.

From the Aseprite file spec: When true, tilemaps using this tileset use tile ID=0 as empty tile. In rare cases this is false, the empty tile will be equal to 0xffffffff (used in internal versions of Aseprite).

Number of tiles.

Tile width and height.

Number to show in the UI for the tile with index=0. Default is 1. Only used for Aseprite UI purposes. Not used for data representation.

Tileset name. May not be unique among tilesets.

When non-empty, describes a link to an external file.

Get the image for the given tile.

Collect all tiles into one long vertical image.

The image has width equal to the tile width and height equal to tile_size().width() * tile_count().

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.