27 lines
534 B
C++
27 lines
534 B
C++
#pragma once
|
|
|
|
#include "Cevo/CevoButtonBase.h"
|
|
|
|
namespace Cevo {
|
|
|
|
// TButtonA equivalent: a 100x25 captioned button painted from the system
|
|
// sprite sheet.
|
|
class ButtonA : public ButtonBase {
|
|
Q_OBJECT
|
|
public:
|
|
explicit ButtonA(QWidget *parent = nullptr);
|
|
|
|
QString caption() const { return m_caption; }
|
|
void setCaption(const QString &text);
|
|
void setFont(const Dpi::Font &font);
|
|
|
|
protected:
|
|
void paint(Dpi::Canvas &canvas) override;
|
|
|
|
private:
|
|
QString m_caption;
|
|
Dpi::Font m_font;
|
|
};
|
|
|
|
} // namespace Cevo
|