|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gdk.DragContext
public class DragContext
A DragContext holds information about a drag in process. It is used on both source and destination sides.
Constructor Summary | |
---|---|
DragContext()
Construct a DragContext. |
|
DragContext(org.gnu.glib.Handle handle)
Construct a DragContext using native resources. |
Method Summary | |
---|---|
void |
finish(boolean success,
boolean delete,
int time)
|
DragAction |
getAction()
Return the action chosen by the destination. |
Window |
getDestination()
Return the destination window. |
DragProtocol |
getProtocol()
Return the Drag Protocol |
Window |
getSource()
Return the source window. |
DragAction |
getSuggestedAction()
Return the action suggested by the source. |
Atom[] |
getTargets()
|
boolean |
isSource()
Returns true if the context is used on the source side. |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DragContext()
public DragContext(org.gnu.glib.Handle handle)
Method Detail |
---|
public Window getSource()
public Window getDestination()
public DragProtocol getProtocol()
public boolean isSource()
public DragAction getSuggestedAction()
public DragAction getAction()
public Atom[] getTargets()
public void finish(boolean success, boolean delete, int time)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |