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
00033 #ifndef PG_COLUMNITEM_H
00034 #define PG_COLUMNITEM_H
00035
00036 #include "pglistboxitem.h"
00037 #include <vector>
00038 #include <string>
00039
00048 class DECLSPEC PG_ColumnItem : public PG_ListBoxItem {
00049 public:
00050
00059 PG_ColumnItem(PG_Widget* parent, Uint32 columns, Uint16 height, void* userdata = NULL, const std::string& style = "ListBoxItem");
00060
00062 ~PG_ColumnItem();
00063
00069 void SetColumnWidth(Uint32 column, Uint32 width);
00070
00076 int GetColumnWidth(Uint32 column);
00077
00083 void SetColumnText(Uint32 column, const std::string& text);
00084
00090 const PG_String& GetColumnText(Uint32 column);
00091
00092
00093
00094
00095
00096 int GetColumnCount();
00097
00098 protected:
00099
00101 void eventBlit(SDL_Surface* surface, const PG_Rect& src, const PG_Rect& dst);
00102
00103 private:
00104
00105 Uint32 my_columncount;
00106
00107 std::vector <Uint32> my_columnwidth;
00108
00109 std::vector <PG_String> my_columntext;
00110 };
00111
00112 #endif // PG_COLUMNITEM_H