// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Development Kit" // For conditions of distribution and use, see copyright notice in Prerequesites.hpp #pragma once #ifndef NDK_WIDGETS_LABELWIDGET_HPP #define NDK_WIDGETS_LABELWIDGET_HPP #include #include #include #include namespace Ndk { class World; class NDK_API LabelWidget : public BaseWidget { public: LabelWidget(const WorldHandle& world, BaseWidget* parent = nullptr); LabelWidget(const LabelWidget&) = delete; LabelWidget(LabelWidget&&) = default; ~LabelWidget() = default; //virtual LabelWidget* Clone() const = 0; void ResizeToContent(); inline void UpdateText(const Nz::AbstractTextDrawer& drawer); LabelWidget& operator=(const LabelWidget&) = delete; LabelWidget& operator=(LabelWidget&&) = default; private: EntityHandle m_textEntity; Nz::TextSpriteRef m_textSprite; }; } #include #endif // NDK_WIDGETS_LABELWIDGET_HPP