Can now use lel::center to center something inside a cell.
This commit is contained in:
parent
c03a384372
commit
aa149b6574
4 changed files with 32 additions and 5 deletions
4
lel.hpp
4
lel.hpp
|
@ -9,6 +9,8 @@ namespace lel {
|
|||
int y = 0;
|
||||
int w = 0;
|
||||
int h = 0;
|
||||
int mid_x = 0;
|
||||
int mid_y = 0;
|
||||
int max_w = 0;
|
||||
int max_h = 0;
|
||||
int col = 0;
|
||||
|
@ -38,4 +40,6 @@ namespace lel {
|
|||
bool parse(std::string input);
|
||||
void finalize();
|
||||
};
|
||||
|
||||
Cell center(int width, int height, Cell &parent);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue