#include <SDL.h>
+#include <functional>
+
namespace IPDF
{
/*
// Get the current width/height of the window's viewport.
int ViewportWidth() { return m_viewport_width; }
int ViewportHeight() { return m_viewport_height; }
+
+ // Handle mouse input.
+ typedef std::function<void(int x, int y, int button, int wheel)> MouseHandler;
+ void SetMouseHandler(MouseHandler handler)
+ {
+ m_mouse_handler = handler;
+ }
+
+ enum MouseCursors
+ {
+ CursorArrow,
+ CursorWait,
+ CursorWaitArrow,
+ CursorMove,
+ CursorHand
+ };
+ void SetMouseCursor(MouseCursors cursor);
private:
void ResizeViewport(int width, int height);
+
+ MouseHandler m_mouse_handler;
int m_viewport_width;
int m_viewport_height;
SDL_Window *m_window;
SDL_GLContext m_gl_context;
};
+
}
#endif // _SCREEN_H