X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FMeter.hpp;h=722372684c2267670747d25b124856d945b08fb9;hb=d921cba26f21e4a75b22f5e9d9be988707bf6a8f;hp=12885e4bafed27eb43c1266b913c6f299491aa5b;hpb=4ec93ba5186dca958be6e2a4dc2aaf3572a524cb;p=blobs.git diff --git a/src/ui/Meter.hpp b/src/ui/Meter.hpp index 12885e4..7223726 100644 --- a/src/ui/Meter.hpp +++ b/src/ui/Meter.hpp @@ -15,10 +15,9 @@ public: ~Meter() override; public: - Meter *Size(const glm::vec2 &s) noexcept { size = s; return this; } - Meter *Padding(const glm::vec2 &p) noexcept { padding = p; return this; } - // TODO: gl line width is deprecated, use polys instead - Meter *Border(float b) noexcept { border = b; return this; } + Meter *Size(const glm::vec2 &s) noexcept { size = s; BreakParentLayout(); return this; } + Meter *Padding(const glm::vec2 &p) noexcept { padding = p; BreakParentLayout(); return this; } + Meter *Border(float b) noexcept { border = b; BreakParentLayout(); return this; } Meter *FillColor(const glm::vec4 &c) noexcept { fill_color = c; return this; } Meter *BorderColor(const glm::vec4 &c) noexcept { border_color = c; return this; }