< prev index next >
modules/javafx.graphics/src/main/java/com/sun/glass/ui/Cursor.java
Print this page
rev 10044 : 8166230: use @Native annotation in graphics, media classes
Reviewed-by: kcr
*** 1,7 ****
/*
! * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 22,54 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.sun.glass.ui;
public abstract class Cursor {
! public final static int CURSOR_NONE = -1;
! public final static int CURSOR_CUSTOM = 0;
! public final static int CURSOR_DEFAULT = 1;
! public final static int CURSOR_TEXT = 2;
! public final static int CURSOR_CROSSHAIR = 3;
! public final static int CURSOR_CLOSED_HAND = 4;
! public final static int CURSOR_OPEN_HAND = 5;
! public final static int CURSOR_POINTING_HAND = 6;
! public final static int CURSOR_RESIZE_LEFT = 7;
! public final static int CURSOR_RESIZE_RIGHT = 8;
! public final static int CURSOR_RESIZE_UP = 9;
! public final static int CURSOR_RESIZE_DOWN = 10;
! public final static int CURSOR_RESIZE_LEFTRIGHT = 11;
! public final static int CURSOR_RESIZE_UPDOWN = 12;
! public final static int CURSOR_DISAPPEAR = 13;
! public final static int CURSOR_WAIT = 14;
! public final static int CURSOR_RESIZE_SOUTHWEST = 15;
! public final static int CURSOR_RESIZE_SOUTHEAST = 16;
! public final static int CURSOR_RESIZE_NORTHWEST = 17;
! public final static int CURSOR_RESIZE_NORTHEAST = 18;
! public final static int CURSOR_MOVE = 19;
private final static int CURSOR_MAX = 19;
private final int type;
// Native cursor ptr, for custom cursors
--- 22,56 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.sun.glass.ui;
+ import java.lang.annotation.Native;
+
public abstract class Cursor {
! @Native public final static int CURSOR_NONE = -1;
! @Native public final static int CURSOR_CUSTOM = 0;
! @Native public final static int CURSOR_DEFAULT = 1;
! @Native public final static int CURSOR_TEXT = 2;
! @Native public final static int CURSOR_CROSSHAIR = 3;
! @Native public final static int CURSOR_CLOSED_HAND = 4;
! @Native public final static int CURSOR_OPEN_HAND = 5;
! @Native public final static int CURSOR_POINTING_HAND = 6;
! @Native public final static int CURSOR_RESIZE_LEFT = 7;
! @Native public final static int CURSOR_RESIZE_RIGHT = 8;
! @Native public final static int CURSOR_RESIZE_UP = 9;
! @Native public final static int CURSOR_RESIZE_DOWN = 10;
! @Native public final static int CURSOR_RESIZE_LEFTRIGHT = 11;
! @Native public final static int CURSOR_RESIZE_UPDOWN = 12;
! @Native public final static int CURSOR_DISAPPEAR = 13;
! @Native public final static int CURSOR_WAIT = 14;
! @Native public final static int CURSOR_RESIZE_SOUTHWEST = 15;
! @Native public final static int CURSOR_RESIZE_SOUTHEAST = 16;
! @Native public final static int CURSOR_RESIZE_NORTHWEST = 17;
! @Native public final static int CURSOR_RESIZE_NORTHEAST = 18;
! @Native public final static int CURSOR_MOVE = 19;
private final static int CURSOR_MAX = 19;
private final int type;
// Native cursor ptr, for custom cursors
< prev index next >