All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.lessvoid.nifty.slick2d.render.cursor.SlickMouseCursor Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package de.lessvoid.nifty.slick2d.render.cursor;

import de.lessvoid.nifty.spi.render.MouseCursor;
import org.newdawn.slick.Graphics;

/**
 * The extended mouse cursor interface that adds the functions needed to handle the mouse cursor by the Slick render
 * device.
 *
 * @author Martin Karing <[email protected]>
 */
public interface SlickMouseCursor extends MouseCursor {
  /**
   * Render the mouse cursor on the screen. This method is called after every render loop, how ever in case the mouse
   * cursor uses a native implementation, its not needed to do anything in this function.
   *
   * @param g the graphics object that should be used to render
   * @param x the x coordinate of the mouse
   * @param y the y coordinate of the mouse
   */
  void render(Graphics g, int x, int y);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy