mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-21 23:09:45 +02:00
30 lines
695 B
C++
30 lines
695 B
C++
//
|
|
// TextOverlay.h
|
|
// interface/src/ui/overlays
|
|
//
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_TextOverlay_h
|
|
#define hifi_TextOverlay_h
|
|
|
|
#include "QmlOverlay.h"
|
|
|
|
class TextOverlay : public QmlOverlay {
|
|
public:
|
|
static QString const TYPE;
|
|
QString getType() const override { return TYPE; }
|
|
static QUrl const URL;
|
|
|
|
TextOverlay();
|
|
TextOverlay(const TextOverlay* textOverlay);
|
|
|
|
TextOverlay* createClone() const override;
|
|
QSizeF textSize(const QString& text) const; // Pixels
|
|
};
|
|
|
|
|
|
#endif // hifi_TextOverlay_h
|