refactor: Move strut handling to window class

This commit is contained in:
Michael Carlberg 2016-11-13 16:10:20 +01:00
parent 4224d838a8
commit c480f6fd1e
4 changed files with 59 additions and 44 deletions
include/components

View file

@ -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',