Package pyj2d :: Module cursors

Module cursors

Functions
 
compile(strings, black='X', white='.', xor='o')
Compile binary data from cursor string. Arguments cursor string, and optional symbols representing colors. Data represents black and white pixels, xor color defaulting to black. Data should be a string list of width divisible by 8. Return cursor data and mask, can be used with mouse.set_cursor.
 
create_cursor(size, data, mask)
Create cursor image from binary data. Arguments cursor size and its binary data and mask. Return surface, can be used with mouse.set_cursor.
 
get_cursor_types()
Return list of cursor type names from java.awt.Cursor API.
Variables
  DEFAULT_CURSOR = Cursor.DEFAULT_CURSOR
  CROSSHAIR_CURSOR = Cursor.CROSSHAIR_CURSOR
  E_RESIZE_CURSOR = Cursor.E_RESIZE_CURSOR
  HAND_CURSOR = Cursor.HAND_CURSOR
  MOVE_CURSOR = Cursor.MOVE_CURSOR
  N_RESIZE_CURSOR = Cursor.N_RESIZE_CURSOR
  NE_RESIZE_CURSOR = Cursor.NE_RESIZE_CURSOR
  NW_RESIZE_CURSOR = Cursor.NW_RESIZE_CURSOR
  S_RESIZE_CURSOR = Cursor.S_RESIZE_CURSOR
  SE_RESIZE_CURSOR = Cursor.SE_RESIZE_CURSOR
  SW_RESIZE_CURSOR = Cursor.SW_RESIZE_CURSOR
  TEXT_CURSOR = Cursor.TEXT_CURSOR
  W_RESIZE_CURSOR = Cursor.W_RESIZE_CURSOR
  WAIT_CURSOR = Cursor.WAIT_CURSOR
  CUSTOM_CURSOR = Cursor.CUSTOM_CURSOR
  tri_right = ()
  tri_left = ()
  broken_x = ()
  diamond = ()
  arrow = ()