summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/gtkmm2ext/cursors.h
blob: d628c13cd8fe2b48a76286d63290b06d9cabc58b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __gtkmm2ext_cursor_info_h___
#define __gtkmm2ext_cursor_info_h___

#include <string>
#include <map>

namespace Gtkmm2ext {

class CursorInfo 
{
    public:
        static CursorInfo* lookup_cursor_info (const std::string& image_name);
        static int load_cursor_info (const std::string& path);
        static void drop_cursor_info ();

    private:
        CursorInfo (const std::string& image_name, int hotspot_x, int hotspot_y);
        
        typedef std::map<std::string,CursorInfo*> Infos;
        static Infos infos;

        std::string name;
        int x;
        int y;
};

} /* namespace */

#endif /* __gtkmm2ext_cursor_info_h___ */