Sha256: 7cb313480d67574654ad1cf1c38d1f6b4352cb92cc1d7440ab0c8a4ec4b1f557
Contents?: true
Size: 851 Bytes
Versions: 30
Compression:
Stored size: 851 Bytes
Contents
#ifndef GOSUIMPL_BLOCKALLOCATOR_HPP #define GOSUIMPL_BLOCKALLOCATOR_HPP #include <boost/optional.hpp> #include <boost/scoped_ptr.hpp> namespace Gosu { class BlockAllocator { struct Impl; boost::scoped_ptr<Impl> pimpl; public: struct Block { unsigned left, top, width, height; Block() {} Block(unsigned aLeft, unsigned aTop, unsigned aWidth, unsigned aHeight) : left(aLeft), top(aTop), width(aWidth), height(aHeight) {} }; BlockAllocator(unsigned width, unsigned height); ~BlockAllocator(); unsigned width() const; unsigned height() const; boost::optional<Block> alloc(unsigned width, unsigned height); void free(unsigned left, unsigned top); }; } #endif
Version data entries
30 entries across 30 versions & 1 rubygems