00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef DROPDOWN_H
00023 #define DROPDOWN_H
00024
00025 #include <guichan/widgets/dropdown.hpp>
00026
00027 class Image;
00028 class ImageRect;
00029
00037 class DropDown : public gcn::DropDown
00038 {
00039 public:
00048 DropDown(gcn::ListModel *listModel = NULL);
00049
00050 ~DropDown();
00051
00052 void draw(gcn::Graphics *graphics);
00053
00054 void drawFrame(gcn::Graphics *graphics);
00055
00056
00057
00058 void keyPressed(gcn::KeyEvent& keyEvent);
00059
00060
00061
00062 void mouseWheelMovedUp(gcn::MouseEvent& mouseEvent);
00063
00064 void mouseWheelMovedDown(gcn::MouseEvent& mouseEvent);
00065
00066 protected:
00072 void drawButton(gcn::Graphics *graphics);
00073
00074
00075 static int instances;
00076 static Image *buttons[2][2];
00077 static ImageRect skin;
00078 static float mAlpha;
00079 };
00080
00081 #endif // end DROPDOWN_H
00082