gzdoom/libraries/ZWidget/include/zwidget/widgets/checkboxlabel/checkboxlabel.h

26 lines
415 B
C
Raw Normal View History

2023-12-26 23:44:40 +00:00
#pragma once
#include "../../core/widget.h"
class CheckboxLabel : public Widget
{
public:
CheckboxLabel(Widget* parent = nullptr);
void SetText(const std::string& value);
const std::string& GetText() const;
void SetChecked(bool value);
bool GetChecked() const;
double GetPreferredHeight() const;
protected:
void OnPaint(Canvas* canvas) override;
private:
std::string text;
bool checked = false;
};