Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef TNZ_LABEL_INCLUDED
Toshihiro Shimizu 890ddd
#define TNZ_LABEL_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tw/tw.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#undef DVAPI
Toshihiro Shimizu 890ddd
#undef DVVAR
Toshihiro Shimizu 890ddd
#ifdef TWIN_EXPORTS
Toshihiro Shimizu 890ddd
#define DVAPI DV_EXPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_EXPORT_VAR
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define DVAPI DV_IMPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_IMPORT_VAR
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class DVAPI TLabel : public TWidget
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	wstring m_text;
Toshihiro Shimizu 890ddd
	bool m_border;
Toshihiro Shimizu 890ddd
	Alignment m_alignment;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Toshihiro Shimizu 890ddd
	TLabel(TWidget *parent, string name = "label");
Toshihiro Shimizu 890ddd
	void draw();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	void setText(string s);
Toshihiro Shimizu 890ddd
	void setText(wstring s);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	void setBorder(bool b) { m_border = b; };
Toshihiro Shimizu 890ddd
	void setAlignment(Alignment a) { m_alignment = a; };
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif