made cursor() commands public

This commit is contained in:
benfry
2004-10-01 15:40:33 +00:00
parent 4c46923ee9
commit 8dc3972fe7
2 changed files with 10 additions and 4 deletions

View File

@@ -1215,7 +1215,7 @@ public class PApplet extends Applet
/**
* Set the cursor type
*/
void cursor(int _cursor_type) {
public void cursor(int _cursor_type) {
//if (cursor_visible && _cursor_type != cursor_type) {
setCursor(Cursor.getPredefinedCursor(_cursor_type));
//}
@@ -1229,7 +1229,7 @@ public class PApplet extends Applet
* Only works with JDK 1.2 and later.
* Currently seems to be broken on Java 1.4 for Mac OS X
*/
void cursor(PImage image, int hotspotX, int hotspotY) {
public void cursor(PImage image, int hotspotX, int hotspotY) {
//if (!isOneTwoOrBetter()) {
if (jdkVersion < 1.2) {
System.err.println("cursor() error: Java 1.2 or higher is " +
@@ -1278,7 +1278,7 @@ public class PApplet extends Applet
* Show the cursor after noCursor() was called.
* Notice that the program remembers the last set cursor type
*/
void cursor() {
public void cursor() {
// maybe should always set here? seems dangerous, since
// it's likely that java will set the cursor to something
// else on its own, and the applet will be stuck b/c bagel
@@ -1294,7 +1294,7 @@ public class PApplet extends Applet
* Hide the cursor by creating a transparent image
* and using it as a custom cursor.
*/
void noCursor() {
public void noCursor() {
if (!cursor_visible) return; // don't hide if already hidden.
if (invisible_cursor == null) {

View File

@@ -1,6 +1,12 @@
0071
X properly swap alpha values when lines need to be rendered backwards
X make cursor() commands public
_ now that it's actually a key, should it be a char? (what's keyChar?)
_ that way println(c) would work a little better..
_ write PApplet2, a full screen version of PApplet
_ this might be used for presentation mode
text fixes
_ if a word (no spaces) is too long to fit, insert a 'space'