00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 #ifndef GCN_LABEL_HPP
00056 #define GCN_LABEL_HPP
00057
00058 #include <string>
00059
00060 #include "guichan/platform.h"
00061 #include "guichan/widget.h"
00062
00063 namespace gcn
00064 {
00068 class GCN_CORE_DECLSPEC Label: public Widget
00069 {
00070 public:
00074 Label();
00075
00081 Label(const std::string& caption);
00082
00088 virtual const std::string &getCaption() const;
00089
00095 virtual void setCaption(const std::string& caption);
00096
00103 virtual void setAlignment(unsigned int alignment);
00104
00110 virtual unsigned int getAlignment();
00111
00115 virtual void adjustSize();
00116
00117
00118
00119
00120 virtual void draw(Graphics* graphics);
00121
00122 virtual void drawBorder(Graphics* graphics);
00123
00124 private:
00125 std::string mCaption;
00126 unsigned int mAlignment;
00127 };
00128 }
00129
00130 #endif // end GCN_LABEL_HPP