mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-14 16:11:11 +00:00
22 lines
327 B
C
22 lines
327 B
C
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "../../core/widget.h"
|
||
|
|
||
|
class TextLabel : public Widget
|
||
|
{
|
||
|
public:
|
||
|
TextLabel(Widget* parent = nullptr);
|
||
|
|
||
|
void SetText(const std::string& value);
|
||
|
const std::string& GetText() const;
|
||
|
|
||
|
double GetPreferredHeight() const;
|
||
|
|
||
|
protected:
|
||
|
void OnPaint(Canvas* canvas) override;
|
||
|
|
||
|
private:
|
||
|
std::string text;
|
||
|
};
|