back to index

Cursor

Inheritance

Object -> Cursor

Properties



Methods

boolean create (String _bitmap, int _width, _height, _hotx, _hoty) - 'X'=black, '.'=white, ' '=transparent
boolean show   () - select/show this cursor
        revert () - revert to previously shown cursor bitmap

Example:
class CursorShapes {

   public static GetNormal() {
      local Cursor c;
      c.create(
         "X                               "
         "XX                              "
         "X.X                             "
         "X..X                            "
         "X...X                           "
         "X....X                          "
         "X.....X                         "
         "X......X                        "
         "X.......X                       "
         "X........X                      "
         "X.....XXXXX                     "
         "X..X..X                         "
         "X.X X..X                        "
         "XX  X..X                        "
         "X    X..X                       "
         "     X..X                       "
         "      X..X                      "
         "      X..X                      "
         "       XX                       "
         "                                "
         "                                "
         "                                "
         "                                "
         "                                "
         "                                "
         "                                "
         "                                "
         "                                "
         "                                "
         "                                "
         "                                "
         "                                ",
         32,32,1,1);
      return deref c;
   }
}

back to index