Struct guillotiere::SimpleAtlasAllocator[][src]

pub struct SimpleAtlasAllocator { /* fields omitted */ }
Expand description

A simpler atlas allocator implementation that can allocate rectangles but not deallocate them.

Implementations

Create a simple atlas allocator with default options.

Create a simple atlas allocator with the provided options.

Drop all rectangles, clearing the atlas to its initial state.

Clear the allocator and reset its size and options.

The total size of the atlas.

Allocate a rectangle in the atlas.

Resize the atlas without changing the allocations.

This method is not allowed to shrink the width or height of the atlas.

Initialize this simple allocator with the content of an atlas allocator.

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.