ShishGL  1.0
A simple modular cross-platform graphics library
UILabel.hpp
Go to the documentation of this file.
1 /*============================================================================*/
2 #ifndef SHISHGL_TEXT_BUFFER_HPP
3 #define SHISHGL_TEXT_BUFFER_HPP
4 /*============================================================================*/
5 #include "Text.hpp"
6 #include "UIWindow.hpp"
7 #include "TextShape.hpp"
8 /*============================================================================*/
9 namespace Sh {
10 
11  class UILabel : public UIWindow {
12  public:
13 
14  UILabel(const Frame& frame, const std::string_view& text,
15  IPlatform::Align align = IPlatform::Align::LEFT)
16  : UIWindow(frame) {
17  applyShape<TextShape>(text, align);
18  }
19 
20  ~UILabel() override = default;
21 
22  };
23 
24 }
25 /*============================================================================*/
26 #endif //SHISHGL_TEXT_BUFFER_HPP
27 /*============================================================================*/
Sh::UILabel::~UILabel
~UILabel() override=default
Sh::IPlatform::Align
Align
Definition: IPlatform.hpp:83
prettify_colors.text
text
Definition: prettify_colors.py:6
Sh::Frame
Definition: Frame.hpp:9
Sh::UILabel::UILabel
UILabel(const Frame &frame, const std::string_view &text, IPlatform::Align align=IPlatform::Align::LEFT)
Definition: UILabel.hpp:14
Sh::UIWindow
Definition: UIWindow.hpp:16
Text.hpp
Sh
Definition: CoreApplication.hpp:10
Sh::UILabel
Definition: UILabel.hpp:11
UIWindow.hpp
TextShape.hpp