G4P (GUI for Processing) 4.3.9
A set of GUI controls for your Processing sketch.
Loading...
Searching...
No Matches
g4p_controls.GClip Class Reference
Inheritance diagram for g4p_controls.GClip:

Public Member Functions

void lostOwnership (Clipboard clipboard, Transferable contents)
 

Static Public Member Functions

static boolean copy (String chars)
 
static String paste ()
 

Detailed Description

Clipboard functionality for plain text

This provides clipboard functionality for text and is currently only used by the GTextField and GTextArea classes.

Author
Peter Lager

Member Function Documentation

◆ copy()

static boolean g4p_controls.GClip.copy ( String  chars)
static

Copy a string to the clipboard

Parameters
charsthe characters to be stored on the clipboard
Returns
true for a successful copy to clipboard

◆ lostOwnership()

void g4p_controls.GClip.lostOwnership ( Clipboard  clipboard,
Transferable  contents 
)

Reqd by ClipboardOwner interface

◆ paste()

static String g4p_controls.GClip.paste ( )
static

Get a string from the clipboard

Returns
the string on the clipboard