Loading...
Searching...
No Matches
score::SimpleTextItem Class Reference
Inheritance diagram for score::SimpleTextItem:
Public Member Functions | |
| SimpleTextItem (const score::BrushSet &col, QGraphicsItem *) | |
| QRectF | boundingRect () const final override |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) final override |
| void | setFont (const QFont &f) |
| void | setText (const QString &s) |
| void | setText (std::string_view s) |
| void | setColor (const score::BrushSet &c) |
| const QString & | text () const noexcept |
Member Function Documentation
◆ setFont()
| void score::SimpleTextItem::setFont | ( | const QFont & | f | ) |
f must outlive the item, which keeps a reference so it can re-render on a skin change. Always a score::Skin member in practice.
The documentation for this class was generated from the following files:
- TextItem.hpp
- TextItem.cpp