You.i Engine
YiTextLabelSceneNode.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_TEXT_LABEL_SCENE_NODE_H_
3 #define _YI_TEXT_LABEL_SCENE_NODE_H_
4 
5 #include "framework/YiPredef.h"
7 #include "renderer/YiMaterial.h"
8 
15 class CYITextLabelNodePriv;
16 
17 
33 {
34  friend class CYITextLabelNodePriv;
35 
36 public:
40  virtual ~CYITextLabelSceneNode();
41 
42  /*
43  \details Instantiates CYITextLabelNode, automatically create \a uNbGlyphs children nodes.
44  Initializes the string to all whitespaces.
45  */
46  static std::unique_ptr<CYITextLabelSceneNode> New(CYISceneManager *pSM, uint32_t uNbGlyphs);
47 
48  /*
49  \details Specifies the numerical value to be drawn. Right-aligned, zero-padded
50  */
51  void SetNumValue(uint32_t uValue);
52 
53  /*
54  \details Specifies the string to be drawn. Left-aligned
55  */
56  void SetString(const CYIString &msg);
57 
58 private:
63 
64  CYITextLabelNodePriv *m_pPriv;
65 
67 
69 };
70 
76 #endif // _YI_TEXT_LABEL_SCENE_NODE_H_
#define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
Delete the copy constructor and assignment operator (and consequently the move constructor as well) ...
Definition: YiPredef.h:114
Scene trees composed of CYISceneNode objects are registered with the scene manager in order for them ...
Definition: YiSceneManager.h:73
static std::unique_ptr< CYITextLabelSceneNode > New(CYISceneManager *pSM, uint32_t uNbGlyphs)
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
friend class CYITextLabelNodePriv
Definition: YiTextLabelSceneNode.h:34
#define YI_TYPE_BASES(...)
Definition: YiRtti.h:350
void SetString(const CYIString &msg)
void SetNumValue(uint32_t uValue)
A scene node is the base type for all nodes which are used by the scene manager; it is an integral pa...
Definition: YiSceneNode.h:114
virtual ~CYITextLabelSceneNode()
This class implements a scene node whose purpose is to display a short text message for debugging pur...
Definition: YiTextLabelSceneNode.h:32