AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzUILabel.h File Reference
#include "CzUIBase.h"
#include "CzActorText.h"

Go to the source code of this file.

Classes

class  CzUILabel
class  CzUILabelCreator

Defines

#define CZ_NEW_LABEL(scene, label, name, text, background, font, size, auto_height)

Define Documentation

#define CZ_NEW_LABEL (   scene,
  label,
  name,
  text,
  background,
  font,
  size,
  auto_height 
)
Value:
CzUILabel* label = new CzUILabel();                                             \
    label->setName(name);                                                           \
    scene->addActor(label);                                                         \
    label->Init(background, size.x, size.y);                                        \
    {                                                                               \
		CzIRect rc = CzIRect(0, 0, -100, -100);                                       \
        label->InitTextActor(font, rc, text, auto_height);                          \
    }