refactor: Move strut handling to window class
This commit is contained in:
parent
4224d838a8
commit
c480f6fd1e
4 changed files with 59 additions and 44 deletions
include/components
|
@ -28,6 +28,13 @@ enum class strut {
|
|||
BOTTOM_END_X,
|
||||
};
|
||||
|
||||
struct strut_margins {
|
||||
uint16_t t;
|
||||
uint16_t b;
|
||||
uint16_t l;
|
||||
uint16_t r;
|
||||
};
|
||||
|
||||
struct bar_settings {
|
||||
bar_settings() = default;
|
||||
|
||||
|
@ -65,6 +72,8 @@ struct bar_settings {
|
|||
|
||||
int16_t vertical_mid{0};
|
||||
|
||||
strut_margins margins;
|
||||
|
||||
string geom() {
|
||||
char buffer[32]{
|
||||
'\0',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue