FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
#include <atlasbook.h>
Public Member Functions | |
AtlasBlock (const Rect &rect, uint32_t page) | |
AtlasBlock () | |
void | setTrivial () |
bool | isTrivial () const |
uint32_t | getWidth () const |
uint32_t | getHeight () const |
AtlasBlock | intersects (AtlasBlock const &rect) const |
void | merge (AtlasBlock const &rect) |
Public Attributes | |
uint32_t | page |
uint32_t | left |
uint32_t | right |
uint32_t | top |
uint32_t | bottom |
Definition at line 41 of file atlasbook.h.
|
inline |
Definition at line 46 of file atlasbook.h.
|
inline |
Definition at line 52 of file atlasbook.h.
Referenced by FIFE::AtlasPage::getBlock().
|
inline |
Definition at line 78 of file atlasbook.h.
References intersects(), merge(), and top.
Referenced by FIFE::AtlasPage::getBlock(), isTrivial(), FIFE::GuiImageLoader::load(), and FIFE::AtlasPage::shrink().
|
inline |
Definition at line 77 of file atlasbook.h.
References left.
Referenced by FIFE::AtlasPage::getBlock(), isTrivial(), FIFE::GuiImageLoader::load(), and FIFE::AtlasPage::shrink().
AtlasBlock FIFE::AtlasBlock::intersects | ( | AtlasBlock const & | rect | ) | const |
Definition at line 31 of file atlasbook.cpp.
References bottom, left, right, setTrivial(), and top.
Referenced by FIFE::AtlasPage::getBlock(), getHeight(), FIFE::AtlasPage::getHeight(), and FIFE::AtlasPage::intersects().
|
inline |
Definition at line 73 of file atlasbook.h.
References getHeight(), and getWidth().
Referenced by FIFE::AtlasPage::intersects().
void FIFE::AtlasBlock::merge | ( | AtlasBlock const & | rect | ) |
Definition at line 46 of file atlasbook.cpp.
References bottom, left, right, and top.
Referenced by getHeight(), and FIFE::AtlasPage::shrink().
|
inline |
Definition at line 69 of file atlasbook.h.
Referenced by intersects().
uint32_t FIFE::AtlasBlock::bottom |
Definition at line 44 of file atlasbook.h.
Referenced by FIFE::AtlasPage::getBlock(), intersects(), and merge().
uint32_t FIFE::AtlasBlock::left |
Definition at line 44 of file atlasbook.h.
Referenced by FIFE::AtlasPage::getBlock(), getWidth(), intersects(), FIFE::GuiImageLoader::load(), merge(), and FIFE::AtlasPage::shrink().
uint32_t FIFE::AtlasBlock::page |
Definition at line 43 of file atlasbook.h.
Referenced by FIFE::AtlasPage::getBlock(), FIFE::AtlasBook::getBlock(), FIFE::GuiImageLoader::load(), and FIFE::AtlasBook::shrink().
uint32_t FIFE::AtlasBlock::right |
Definition at line 44 of file atlasbook.h.
Referenced by FIFE::AtlasPage::getBlock(), intersects(), and merge().
uint32_t FIFE::AtlasBlock::top |
Definition at line 44 of file atlasbook.h.
Referenced by FIFE::AtlasPage::getBlock(), getHeight(), intersects(), FIFE::GuiImageLoader::load(), merge(), and FIFE::AtlasPage::shrink().