MCPcopy
hub / github.com/libgdx/libgdx / setCursor

Method setCursor

gdx/src/com/badlogic/gdx/Graphics.java:371–371  ·  view source on GitHub ↗

Only viable on the lwjgl-backend and on the gwt-backend. Browsers that support cursor:url() and support the png format (the pixmap is converted to a data-url of type image/png) should also support custom cursors. Will set the mouse cursor image to the image represented by the {@link com.badlogic.gdx

(Cursor cursor)

Source from the content-addressed store, hash-verified

369 *
370 * @param cursor the mouse cursor as a {@link com.badlogic.gdx.graphics.Cursor} */
371 void setCursor (Cursor cursor);
372
373 /** Sets one of the predefined {@link SystemCursor}s */
374 void setSystemCursor (SystemCursor systemCursor);

Callers 8

showCursorMethod · 0.65
renderMethod · 0.65
applyCursorMethod · 0.65
applyCursorMethod · 0.65
renderMethod · 0.65
createMethod · 0.65
setIsAlwayShownMethod · 0.65
initializeComponentsMethod · 0.65

Implementers 1

AbstractGraphicsgdx/src/com/badlogic/gdx/AbstractGraph

Calls

no outgoing calls

Tested by 2

renderMethod · 0.52
createMethod · 0.52