2#include "TinyGPU/Color/RGB565.h"
3#include "TinyGPU/Color/RGB666.h"
4#include "TinyGPU/Color/RGB888.h"
5#include "TinyMaterialDesign/Core/Widget.h"
18 void draw(tinygpu::ISurface<RGB_T>& target)
override {
19 const RGB_T color =
this->theme().colors.outline;
20 if (
this->bounds.w >=
this->bounds.h) {
21 const int32_t y =
this->bounds.centerY();
22 target.drawLine(toPx(
this->bounds.x), toPx(y), toPx(
this->bounds.right() - 1), toPx(y),
25 const int32_t x =
this->bounds.centerX();
26 target.drawLine(toPx(x), toPx(
this->bounds.y), toPx(x), toPx(
this->bounds.bottom() - 1),
A themed hairline. Orientation follows the bounds' aspect ratio: wider than tall draws horizontal (ce...
Definition: Divider.h:13
Divider(Bounds bounds)
Definition: Divider.h:16
void draw(tinygpu::ISurface< RGB_T > &target) override
Definition: Divider.h:18
Definition: AnchorLayout.h:4
Axis-aligned pixel rectangle used for widget bounds and hit-testing.
Definition: Bounds.h:21