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 #ifndef SDLCOLUMNITEM_H
00030 #define SDLCOLUMNITEM_H
00031
00032 #ifdef SWIG
00033 %include "swigcommon.h"
00034 %module sdlcolumnitem
00035 %{
00036 #include "sdlcolumnitem.h"
00037 %}
00038 #endif
00039
00040 #include "sdllistboxitem.h"
00041
00042 class DECLSPEC SDLColumnItem : public SDLListBoxItem {
00043 public:
00044
00046 SDLColumnItem(int columns, int height, void* userdata = NULL);
00047
00049 ~SDLColumnItem();
00050
00052 void SetColumnWidth(int column, int width);
00053
00055 void SetColumnText(int column, char* text);
00056
00057 protected:
00058
00060 void eventDraw(SDL_Surface* surface, SDL_Rect* rect);
00061
00063 void eventBlit(SDL_Surface* srf, SDL_Rect* src, SDL_Rect* dst);
00064
00065 private:
00066
00067 int my_columncount;
00068 int my_columnwidth[10];
00069 char my_columntext[10][255];
00070 SDL_Surface* my_srfColumn[10];
00071 };
00072
00073 #endif // SDLCOLUMNITEM_H