Class zebkit.ui.web.CursorManager
extends <zebkit.ui.event.Manager>
<zebkit.ui.web>

Cursor manager class. Allows developers to control pointer cursor type by implementing an own getCursorType method or by specifying a cursor by cursorType field. Imagine an UI component needs to change cursor type. It can be done by one of the following way:

  • Implement getCursorType method by the component itself if the cursor type depends on cursor location

     var p = new zebkit.ui.Panel([
          // implement getCursorType method to set required
          // pointer cursor type
          function getCursorType(target, x, y) {
              return zebkit.ui.Cursor.WAIT;
          }
     ]);
    
  • Define "cursorType" property in component if the cursor type doesn't depend on cursor location

     var myPanel = new zebkit.ui.Panel();
     ...
     myPanel.cursorType = zebkit.ui.Cursor.WAIT;
Constructor:
zebkit.ui.web.CursorManager ( )



public void pointerDragged (e)
public void pointerEntered (e)
public void pointerExited (e)
public void pointerMoved (e)

public void pointerDragged (e)

Define pointer dragged events handler.


Parameters:
public void pointerEntered (e)

Define pointer entered events handler.


Parameters:
public void pointerExited (e)

Define pointer exited events handler.


Parameters:
public void pointerMoved (e)

Define pointer moved events handler.


Parameters: