|
java-gnome version 4.0.13 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Pointer
org.gnome.glib.Boxed
org.gnome.gdk.Cursor
public final class Cursor
That which indicateth where your mouse is pointing!
A Cursor object must be bound to a underlying Window before [changing it]
will actually cause what the user sees to change; see
setCursor()
on the Window here in
org.gnome.gdk
.
Quite frequently you want to change the Cursor for the entire application (in a manner reminiscent of modal behaviour). This is trickier than it should be, but you've got a couple possibilities. You can either
[org.gnome.gtk]
Windows being displayed by your application and then call
getWindow().setCursor(BLAH)
on each of them, or you can
getToplevels()
on
[org.gnome.gdk]
Window and then similarly just call
setCursor(BLAH)
as you iterate over the returned set.
Almost inevitably the Cursor your want is WATCH
which is the "busy" pointer. You can revert to "normal" by setting
LEFT_PTR
directly (which is the default cursor
you spend most of your time looking at), or by passing null
to
setCursor()
.
Note that different theme engines (let alone different Linux vendors) tend to screw with the default pointer icons set quite a bit, so you may find that pointers appear very different for users on different distributions.
Our implementation of Cursor assumes you want to manipulate
GdkCursors
on the "default" GdkDisplay
. Where
else would you be working?
Constructor Summary | |
---|---|
Cursor(CursorType type)
Create a new Cursor with the specified CursorType. |
Method Summary |
---|
Methods inherited from class org.freedesktop.bindings.Pointer |
---|
toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Cursor(CursorType type)
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |