wmi

git clone git://oldgit.suckless.org/wmi/
Log | Files | Refs | LICENSE

cursors.h (749B)


      1 // Copyright (c) 2003 - 2009 Anselm R Garbe <anselm@garbe.us>
      2 // See LICENSE for license details.
      3 
      4 #ifndef __CURSORS_H
      5 #define __CURSORS_H
      6 
      7 extern "C" {
      8 #include <X11/Xlib.h>
      9 }
     10 
     11 /**
     12  * Container class of all X cursors used by WMI.
     13  */
     14 class Cursors {
     15 
     16 public:
     17 
     18     static void initCursors();
     19 
     20     static Cursor NORMAL_CURSOR;
     21     static Cursor RESIZE_LEFT_CURSOR;
     22     static Cursor RESIZE_RIGHT_CURSOR;
     23     static Cursor RESIZE_UP_CURSOR;
     24     static Cursor RESIZE_DOWN_CURSOR;
     25 
     26     static Cursor RESIZE_NORTH_WEST_CURSOR;
     27     static Cursor RESIZE_NORTH_EAST_CURSOR;
     28     static Cursor RESIZE_SOUTH_EAST_CURSOR;
     29     static Cursor RESIZE_SOUTH_WEST_CURSOR;
     30 
     31     static void cleanup();
     32 
     33 private:
     34 
     35     static bool initialized_;
     36 };
     37 
     38 #endif // __CURSORS_H