knxdisplay/main/widgets/ButtonWidget.hpp
2026-01-24 10:42:15 +01:00

20 lines
383 B
C++

#pragma once
#include "Widget.hpp"
class ButtonWidget : public Widget {
public:
explicit ButtonWidget(const WidgetConfig& config);
lv_obj_t* create(lv_obj_t* parent) override;
void applyStyle() override;
// Check if button is in checked state
bool isChecked() const;
private:
lv_obj_t* label_ = nullptr;
static void clickCallback(lv_event_t* e);
};