scaling
This commit is contained in:
parent
dcbe05a75d
commit
c84504331b
12 changed files with 867 additions and 17 deletions
|
|
@ -24,14 +24,14 @@ import :Types;
|
|||
|
||||
export namespace Crafter {
|
||||
class GridElement : public Transform {
|
||||
private:
|
||||
public:
|
||||
std::uint_fast32_t columns;
|
||||
std::uint_fast32_t rows;
|
||||
std::int_fast32_t spacingX;
|
||||
std::int_fast32_t spacingY;
|
||||
|
||||
public:
|
||||
GridElement(std::uint_fast32_t columns, std::uint_fast32_t rows, std::int_fast32_t spacingX, std::int_fast32_t spacingY, Anchor anchor);
|
||||
std::int_fast32_t paddingX;
|
||||
std::int_fast32_t paddingY;
|
||||
GridElement(std::uint_fast32_t columns, std::uint_fast32_t rows, std::int_fast32_t spacingX, std::int_fast32_t spacingY, std::int_fast32_t paddingX, std::int_fast32_t paddingY, Anchor anchor);
|
||||
void UpdatePositionScaled(Window& window);
|
||||
void UpdatePosition(Window& window) override;
|
||||
void UpdatePosition(Window& window, Transform& parent) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue