MouseCursor Class

Inheritance diagram of MouseCursor

class MouseCursor

An abstract mouse cursor.


draw(x, y) Abstract render method.


drawable Type: bool


MouseCursor.draw(x, y)

Abstract render method.

The cursor should be drawn with the “hot” spot at the given coordinates. The projection is set to the pyglet default (i.e., orthographic in window-space), however no other aspects of the state can be assumed.

  • x (int) – X coordinate of the mouse pointer’s hot spot.
  • y (int) – Y coordinate of the mouse pointer’s hot spot.


MouseCursor.drawable = True

Indicates if the cursor is drawn using OpenGL. This is True for all mouse cursors except system cursors.

Table Of Contents

Previous topic

ImageMouseCursor Class

Next topic

Platform Class