Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::TBFragmentSpaceAllocator Class Reference

Allocates space for TBBitmapFragment in a row (used in TBBitmapFragmentMap). More...

#include <tb_bitmap_fragment.h>

Inheritance diagram for tb::TBFragmentSpaceAllocator:
tb::TBSpaceAllocator

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...
 
SpaceAllocSpace (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
 

Detailed Description

Allocates space for TBBitmapFragment in a row (used in TBBitmapFragmentMap).


The documentation for this class was generated from the following file: