3 This file is part of libmspgltk
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GLTK_DROPDOWN_H_
9 #define MSP_GLTK_DROPDOWN_H_
11 #include <sigc++/signal.h>
19 class Dropdown: public Widget
27 sigc::signal<void, int, const std::string &> signal_item_selected;
29 Dropdown(const Resources &);
32 void append(const std::string &);
34 virtual void button_press(int, int, unsigned);
35 virtual void button_release(int, int, unsigned);
36 virtual void pointer_motion(int, int);
37 virtual void pointer_enter();
38 virtual void pointer_leave();
40 virtual const char *get_class() const { return "dropdown"; }
41 virtual void render_special(const Part &) const;
43 virtual void on_geometry_change();
45 void list_item_selected(unsigned, const std::string &);