gnu.x11
Class Cursor
java.lang.Object
gnu.x11.Resource
gnu.x11.Cursor
public class Cursor
- extends Resource
X cursor.
Constructor Summary |
Cursor(Display display,
int shape)
|
Cursor(Font src,
Font mask,
int source_char,
int mask_char,
int fg_r,
int fg_g,
int fg_b,
int bg_r,
int bg_g,
int bg_b)
|
Cursor(int id)
Predefined. |
Cursor(Pixmap src,
Pixmap mask,
int source_char,
int mask_char,
int fg_r,
int fg_g,
int fg_b,
int bg_r,
int bg_g,
int bg_b,
int x,
int y)
|
Method Summary |
void |
create(Font src,
Font mask,
int source_char,
int mask_char,
int fg_r,
int fg_g,
int fg_b,
int bg_r,
int bg_g,
int bg_b)
|
void |
free()
|
void |
recolor(RGB foreground,
RGB background)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NONE
public static final Cursor NONE
- Predefined cursor.
- See Also:
Window.NONE
CURRENT
public static final Cursor CURRENT
X_CURSOR
public static final int X_CURSOR
- See Also:
- Constant Field Values
ARROW
public static final int ARROW
- See Also:
- Constant Field Values
BASED_ARROW_DOWN
public static final int BASED_ARROW_DOWN
- See Also:
- Constant Field Values
BASED_ARROW_UP
public static final int BASED_ARROW_UP
- See Also:
- Constant Field Values
BOAT
public static final int BOAT
- See Also:
- Constant Field Values
BOGOSITY
public static final int BOGOSITY
- See Also:
- Constant Field Values
BOTTOM_LEFT_CORNER
public static final int BOTTOM_LEFT_CORNER
- See Also:
- Constant Field Values
BOTTOM_RIGHT_CORNER
public static final int BOTTOM_RIGHT_CORNER
- See Also:
- Constant Field Values
BOTTOM_SIDE
public static final int BOTTOM_SIDE
- See Also:
- Constant Field Values
BOTTOM_TEE
public static final int BOTTOM_TEE
- See Also:
- Constant Field Values
BOX_SPIRAL
public static final int BOX_SPIRAL
- See Also:
- Constant Field Values
CENTER_PTR
public static final int CENTER_PTR
- See Also:
- Constant Field Values
CIRCLE
public static final int CIRCLE
- See Also:
- Constant Field Values
CLOCK
public static final int CLOCK
- See Also:
- Constant Field Values
COFFEE_MUG
public static final int COFFEE_MUG
- See Also:
- Constant Field Values
CROSS
public static final int CROSS
- See Also:
- Constant Field Values
CROSS_REVERSE
public static final int CROSS_REVERSE
- See Also:
- Constant Field Values
CROSSHAIR
public static final int CROSSHAIR
- See Also:
- Constant Field Values
DIAMOND_CROSS
public static final int DIAMOND_CROSS
- See Also:
- Constant Field Values
DOT
public static final int DOT
- See Also:
- Constant Field Values
DOTBOX
public static final int DOTBOX
- See Also:
- Constant Field Values
DOUBLE_ARROW
public static final int DOUBLE_ARROW
- See Also:
- Constant Field Values
DRAFT_LARGE
public static final int DRAFT_LARGE
- See Also:
- Constant Field Values
DRAFT_SMALL
public static final int DRAFT_SMALL
- See Also:
- Constant Field Values
DRAPED_BOX
public static final int DRAPED_BOX
- See Also:
- Constant Field Values
EXCHANGE
public static final int EXCHANGE
- See Also:
- Constant Field Values
FLEUR
public static final int FLEUR
- See Also:
- Constant Field Values
GOBBLER
public static final int GOBBLER
- See Also:
- Constant Field Values
GUMBY
public static final int GUMBY
- See Also:
- Constant Field Values
HAND1
public static final int HAND1
- See Also:
- Constant Field Values
HAND2
public static final int HAND2
- See Also:
- Constant Field Values
HEART
public static final int HEART
- See Also:
- Constant Field Values
ICON
public static final int ICON
- See Also:
- Constant Field Values
IRON_CROSS
public static final int IRON_CROSS
- See Also:
- Constant Field Values
LEFT_PTR
public static final int LEFT_PTR
- See Also:
- Constant Field Values
LEFT_SIDE
public static final int LEFT_SIDE
- See Also:
- Constant Field Values
LEFT_TEE
public static final int LEFT_TEE
- See Also:
- Constant Field Values
LEFTBUTTON
public static final int LEFTBUTTON
- See Also:
- Constant Field Values
LL_ANGLE
public static final int LL_ANGLE
- See Also:
- Constant Field Values
LR_ANGLE
public static final int LR_ANGLE
- See Also:
- Constant Field Values
MAN
public static final int MAN
- See Also:
- Constant Field Values
MIDDLEBUTTON
public static final int MIDDLEBUTTON
- See Also:
- Constant Field Values
MOUSE
public static final int MOUSE
- See Also:
- Constant Field Values
PENCIL
public static final int PENCIL
- See Also:
- Constant Field Values
PIRATE
public static final int PIRATE
- See Also:
- Constant Field Values
PLUS
public static final int PLUS
- See Also:
- Constant Field Values
QUESTION_ARROW
public static final int QUESTION_ARROW
- See Also:
- Constant Field Values
RIGHT_PTR
public static final int RIGHT_PTR
- See Also:
- Constant Field Values
RIGHT_SIDE
public static final int RIGHT_SIDE
- See Also:
- Constant Field Values
RIGHT_TEE
public static final int RIGHT_TEE
- See Also:
- Constant Field Values
RIGHTBUTTON
public static final int RIGHTBUTTON
- See Also:
- Constant Field Values
RTL_LOGO
public static final int RTL_LOGO
- See Also:
- Constant Field Values
SAILBOAT
public static final int SAILBOAT
- See Also:
- Constant Field Values
SB_DOWN_ARROW
public static final int SB_DOWN_ARROW
- See Also:
- Constant Field Values
SB_H_DOUBLE_ARROW
public static final int SB_H_DOUBLE_ARROW
- See Also:
- Constant Field Values
SB_LEFT_ARROW
public static final int SB_LEFT_ARROW
- See Also:
- Constant Field Values
SB_RIGHT_ARROW
public static final int SB_RIGHT_ARROW
- See Also:
- Constant Field Values
SB_UP_ARROW
public static final int SB_UP_ARROW
- See Also:
- Constant Field Values
SB_V_DOUBLE_ARROW
public static final int SB_V_DOUBLE_ARROW
- See Also:
- Constant Field Values
SHUTTLE
public static final int SHUTTLE
- See Also:
- Constant Field Values
SIZING
public static final int SIZING
- See Also:
- Constant Field Values
SPIDER
public static final int SPIDER
- See Also:
- Constant Field Values
SPRAYCAN
public static final int SPRAYCAN
- See Also:
- Constant Field Values
STAR
public static final int STAR
- See Also:
- Constant Field Values
TARGET
public static final int TARGET
- See Also:
- Constant Field Values
TCROSS
public static final int TCROSS
- See Also:
- Constant Field Values
TOP_LEFT_ARROW
public static final int TOP_LEFT_ARROW
- See Also:
- Constant Field Values
TOP_LEFT_CORNER
public static final int TOP_LEFT_CORNER
- See Also:
- Constant Field Values
TOP_RIGHT_CORNER
public static final int TOP_RIGHT_CORNER
- See Also:
- Constant Field Values
TOP_SIDE
public static final int TOP_SIDE
- See Also:
- Constant Field Values
TOP_TEE
public static final int TOP_TEE
- See Also:
- Constant Field Values
TREK
public static final int TREK
- See Also:
- Constant Field Values
UL_ANGLE
public static final int UL_ANGLE
- See Also:
- Constant Field Values
UMBRELLA
public static final int UMBRELLA
- See Also:
- Constant Field Values
UR_ANGLE
public static final int UR_ANGLE
- See Also:
- Constant Field Values
WATCH
public static final int WATCH
- See Also:
- Constant Field Values
XTERM
public static final int XTERM
- See Also:
- Constant Field Values
FONT
public static Font FONT
Cursor
public Cursor(int id)
- Predefined.
Cursor
public Cursor(Display display,
int shape)
- See Also:
- XCreateFontCursor
Cursor
public Cursor(Font src,
Font mask,
int source_char,
int mask_char,
int fg_r,
int fg_g,
int fg_b,
int bg_r,
int bg_g,
int bg_b)
- See Also:
- XCreateGlyphCursor
Cursor
public Cursor(Pixmap src,
Pixmap mask,
int source_char,
int mask_char,
int fg_r,
int fg_g,
int fg_b,
int bg_r,
int bg_g,
int bg_b,
int x,
int y)
- Parameters:
mask
- possible: Pixmap.NONE
- See Also:
- XCreatePixmapCursor
create
public void create(Font src,
Font mask,
int source_char,
int mask_char,
int fg_r,
int fg_g,
int fg_b,
int bg_r,
int bg_g,
int bg_b)
free
public void free()
- See Also:
- XFreeCursor
recolor
public void recolor(RGB foreground,
RGB background)
- See Also:
- XRecolorCursor