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

Static Public Member Functions

static String event_flavor (int ef)
 
static String key_action (int action)
 
static String key_event_desc (KeyEvent event)
 
static String mod (int modifiers)
 
static String mouse_action (int action)
 

Detailed Description

Simple utility class with various methods to help in debugging.

Author
Peter Lager

Member Function Documentation

◆ event_flavor()

static String g4p_controls.Util.event_flavor ( int  ef)
static

Provide a text description of the event flavour

Parameters
efevent flavour id
Returns
the flavour as text

◆ key_action()

static String g4p_controls.Util.key_action ( int  action)
static

Provide a text description of the KeyEvent action

Parameters
actionthe action id
Returns
the action as text

◆ key_event_desc()

static String g4p_controls.Util.key_event_desc ( KeyEvent  event)
static

Get a textual description of a KeyEvent object

Parameters
eventthe event to describe
Returns
event description

◆ mod()

static String g4p_controls.Util.mod ( int  modifiers)
static

Provide a textual list of modifiers associated with an event

Parameters
modifiersthe bit encoded modifiers
Returns
the modifiers as text

◆ mouse_action()

static String g4p_controls.Util.mouse_action ( int  action)
static

Provide a text description of the MouseEvent action

Parameters
actionthe action id
Returns
action the action as text