tahoma2d/toonz/sources/include/tw/label.h

36 lines
589 B
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef TNZ_LABEL_INCLUDED
#define TNZ_LABEL_INCLUDED
#include "tw/tw.h"
#undef DVAPI
#undef DVVAR
#ifdef TWIN_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
class DVAPI TLabel : public TWidget
{
wstring m_text;
bool m_border;
Alignment m_alignment;
public:
TLabel(TWidget *parent, string name = "label");
void draw();
void setText(string s);
void setText(wstring s);
void setBorder(bool b) { m_border = b; };
void setAlignment(Alignment a) { m_alignment = a; };
};
#endif