|
|
Hasty Badger
Small UI library (a branch of Turbo Badger)
|
Allocates space for TBBitmapFragment in a row (used in TBBitmapFragmentMap). More...
#include <tb_bitmap_fragment.h>
Public Member Functions | |
| TBFragmentSpaceAllocator (int y, int width, int height) | |
Public Member Functions inherited from tb::TBSpaceAllocator | |
| TBSpaceAllocator (int available_space) | |
| bool | IsAllAvailable () const |
| Return true if no allocations are currently live using this allocator. More... | |
| bool | HasSpace (int needed_w) const |
| Return true if the given width is currently available. More... | |
| Space * | AllocSpace (int needed_w) |
| Allocate the given space and return the Space, or nullptr on error. More... | |
| void | FreeSpace (Space *space) |
| Free the given space so it is available for new allocations. More... | |
Public Attributes | |
| int | y |
| int | height |
Allocates space for TBBitmapFragment in a row (used in TBBitmapFragmentMap).