|
G4P (GUI for Processing) 4.3.11
A set of GUI controls for your Processing sketch.
|
Public Member Functions | |
| GIcon | copy () |
| PImage | getFrame () |
| PImage | getFrame (int fn) |
| GIcon | getThis () |
| GIcon (PApplet papp, PImage image, int nbrCols, int nbrRows) | |
| GIcon (PApplet papp, String fname, int nbrCols, int nbrRows) | |
| int | height () |
| int | width () |
Protected Member Functions | |
| GIcon () | |
Protected Attributes | |
| PApplet | app = null |
| int | currFrame = 0 |
| int | height = 0 |
| PImage[] | img = null |
| int | nbrFrames = 0 |
| GAbstractControl | owner = null |
| int | width = 0 |
Class for the creation of non-animated icons to be used with GButton, GLabel, GCheckbox and GOption controls.
Introduced in v4.1
|
protected |
This constructor is not to be used.
| g4p_controls.GIcon.GIcon | ( | PApplet | papp, |
| String | fname, | ||
| int | nbrCols, | ||
| int | nbrRows | ||
| ) |
Create an icon
| papp | the PApplet object that will be used to display this icon |
| fname | the name of the file containing the tiled image. |
| nbrCols | number of horizontal tiles |
| nbrRows | number of vertical tiles |
| g4p_controls.GIcon.GIcon | ( | PApplet | papp, |
| PImage | image, | ||
| int | nbrCols, | ||
| int | nbrRows | ||
| ) |
Create an icon.
| papp | the PApplet object that will be used to display this icon |
| image | the tiled image containing the frames. |
| nbrCols | number of horizontal tiles |
| nbrRows | number of vertical tiles |
| GIcon g4p_controls.GIcon.copy | ( | ) |
Reimplemented in g4p_controls.GAnimIcon.
| PImage g4p_controls.GIcon.getFrame | ( | ) |
| PImage g4p_controls.GIcon.getFrame | ( | int | fn | ) |
Get the image to be displayed for the specified frame number. The supplied frame number will be constrained to a valid value.
| fn | the frame image to retrieve. |
| GIcon g4p_controls.GIcon.getThis | ( | ) |
Reimplemented in g4p_controls.GAnimIcon.
| int g4p_controls.GIcon.height | ( | ) |
| int g4p_controls.GIcon.width | ( | ) |