Added Pbuffer.isUsingDisplayContext()

This commit is contained in:
Elias Naur 2004-07-24 19:50:50 +00:00
parent 2c28c39fce
commit e9a9ba7c67

View file

@ -158,6 +158,15 @@ public final class Pbuffer {
Sys.initialize();
}
/**
* Determine whether the Pbuffer is using the Display context.
*
* @return true of the Pbuffer is using the Display context, false if not.
*/
public boolean isUsingDisplayContext() {
return display_context != null;
}
/**
* Create an instance of a Pbuffer using the Display context. The buffer is double-buffered, like the Display.
* <p/>