#include <memory>
#include <SDL.h>
+#include "math/vector.hpp"
#include "video/color.hpp"
+#include "video/surface_ptr.hpp"
class DrawingContext;
class MenuItem;
-class Surface;
bool confirm_dialog(Surface* background, std::string text);
int hit_item;
// position of the menu (ie. center of the menu, not top/left)
- float pos_x;
- float pos_y;
+ Vector pos;
/** input event for the menu (up, down, left, right, etc.) */
MenuAction menuaction;
int arrange_left;
int active_item;
- std::auto_ptr<Surface> checkbox;
- std::auto_ptr<Surface> checkbox_checked;
- std::auto_ptr<Surface> back;
- std::auto_ptr<Surface> arrow_left;
- std::auto_ptr<Surface> arrow_right;
+ SurfacePtr checkbox;
+ SurfacePtr checkbox_checked;
+ SurfacePtr back;
+ SurfacePtr arrow_left;
+ SurfacePtr arrow_right;
};
#endif