mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/graph] Display parametric name in the middle of values cell
This commit is contained in:
@@ -13,6 +13,7 @@ public:
|
||||
void setColor(KDColor color) override;
|
||||
void setText(const char * textContent);
|
||||
void setFont(const KDFont * font) { m_bufferTextView.setFont(font); }
|
||||
void setHorizontalAlignment(const float alignment) { return m_bufferTextView.setAlignment(alignment, k_verticalAlignment); }
|
||||
const KDFont * font() const override { return m_bufferTextView.font(); }
|
||||
const char * text() const override {
|
||||
return m_bufferTextView.text();
|
||||
@@ -24,6 +25,7 @@ protected:
|
||||
KDRect bufferTextViewFrame() const;
|
||||
EvenOddBufferTextCell * bufferTextView() { return &m_bufferTextView; }
|
||||
private:
|
||||
constexpr static float k_verticalAlignment = 0.5f;
|
||||
EvenOddBufferTextCell m_bufferTextView;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user