You.i Engine
YiTextLabelSceneNode.h
Go to the documentation of this file.
1 // © You i Labs Inc. 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"
6 #include "renderer/YiMaterial.h"
8 
9 class CYITextLabelNodePriv;
10 
33 {
34  friend class CYITextLabelNodePriv;
35 
36 public:
40  virtual ~CYITextLabelSceneNode();
41 
42  /*
43  \details Instantiates CYITextLabelNode, automatically create \a nbGlyphs children nodes.
44  Initializes the string to all whitespaces.
45  */
46  static std::unique_ptr<CYITextLabelSceneNode> New(CYISceneManager *pSM, uint32_t nbGlyphs);
47 
48  /*
49  \details Specifies the numerical value to be drawn. Right-aligned, zero-padded
50  */
51  void SetNumValue(uint32_t value);
52 
53  /*
54  \details Specifies the string to be drawn. Left-aligned
55  */
56  void SetString(const CYIString &msg);
57 
58 private:
63 
64  std::unique_ptr<CYITextLabelNodePriv> m_pPriv;
65 
67 
69 };
70 
75 #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:69
Scene trees composed of CYISceneNode objects are registered with the scene manager in order for them ...
Definition: YiSceneManager.h:82
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:32
friend class CYITextLabelNodePriv
Definition: YiTextLabelSceneNode.h:34
void SetString(const CYIString &msg)
static std::unique_ptr< CYITextLabelSceneNode > New(CYISceneManager *pSM, uint32_t nbGlyphs)
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:105
virtual ~CYITextLabelSceneNode()
This class implements a scene node whose purpose is to display a short text message for debugging pur...
Definition: YiTextLabelSceneNode.h:32
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:259
void SetNumValue(uint32_t value)