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

35 lines
598 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
2016-06-15 18:43:10 +12:00
class DVAPI TLabel : public TWidget {
wstring m_text;
bool m_border;
Alignment m_alignment;
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
TLabel(TWidget *parent, string name = "label");
void draw();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void setText(string s);
void setText(wstring s);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void setBorder(bool b) { m_border = b; };
void setAlignment(Alignment a) { m_alignment = a; };
2016-03-19 06:57:51 +13:00
};
#endif