mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-10 10:21:14 +00:00
25 lines
415 B
C++
25 lines
415 B
C++
|
|
#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;
|
|
};
|