rendering element rewrite
This commit is contained in:
parent
4c286e1fd8
commit
3d40256bde
22 changed files with 799 additions and 795 deletions
|
|
@ -31,18 +31,8 @@ export namespace Crafter {
|
|||
std::int_fast32_t spacingY;
|
||||
|
||||
public:
|
||||
GridElement(std::uint_fast32_t columns = 1, std::uint_fast32_t rows = 1,
|
||||
std::int_fast32_t spacingX = 0, std::int_fast32_t spacingY = 0,
|
||||
std::int_fast32_t anchorX = FractionalToMapped(0.5),
|
||||
std::int_fast32_t anchorY = FractionalToMapped(0.5),
|
||||
std::uint_fast32_t relativeWidth = FractionalToMapped(1),
|
||||
std::uint_fast32_t relativeHeight = FractionalToMapped(1),
|
||||
std::int_fast32_t anchorOffsetX = FractionalToMapped(0.5),
|
||||
std::int_fast32_t anchorOffsetY = FractionalToMapped(0.5),
|
||||
std::int_fast32_t z = 0);
|
||||
|
||||
void SetGridSize(std::uint_fast32_t columns, std::uint_fast32_t rows);
|
||||
void SetSpacing(std::int_fast32_t spacingX, std::int_fast32_t spacingY);
|
||||
GridElement(std::uint_fast32_t columns, std::uint_fast32_t rows, std::int_fast32_t spacingX, std::int_fast32_t spacingY, 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