org.gnu.gtk
public class Clipboard extends GObject
TODO: This requires gdk.Selections
TODO: callback functions
Method Summary | |
---|---|
void | clear()
Clear the contents of the clipboard. |
static Clipboard | get(Atom atom)
Returns the clipboard object for the given selection. |
SelectionData | getContents(Atom atom)
Requests the contents of the clipboard as SelectionData
|
Display | getDisplay()
Gets the Display associated with clipboard.
|
static Clipboard | getForDisplay(Display display, Atom atom) |
Pixbuf | getImage() |
String | getText()
Requests the contents of the clipboard as text. |
boolean | isImageAvailable() |
boolean | isTextAvailable() |
void | setCanStore(TargetEntry[] targets) |
void | setImage(Pixbuf pixbuf) |
void | setText(String text)
Set the contents of the clipboard. |
void | store() |
Parameters: atom a Atom which identifies the clipboard to use
Returns: the appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent for all time and cannot be freed.
Parameters: atom an Atom representing the form into which the clipboard owner should convert the selection
Returns: a newly-allocated SelectionData object or
NULL
if retrieving the given target failed
TODO: write the JNI
Parameters: display the display for which the clipboard is to be retrieved or created atom a Atom which identifies the clipboard to use
Returns: he appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent for all time and cannot be freed.