|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Display.PointerIcon
Native PointerIcon handle.
Instances can be created via Display's
createPointerIcon(pngResource, ..)
or createPointerIcon(pixelrect, ..).
Instance is destroy()'ed automatically if it's associated Display is destroyed.
Instance can be re-validated after destruction via validate().
Display.PointerIcon must not be destroyed while in use!
Display.PointerIcon may be destroyed manually after use,
i.e. when no Window uses them anymore.
However, this is not required.
PointerIcons can be used via Window#setPointerIcon(PointerIcon).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.media.nativewindow.util.PixelRectangle |
|---|
PixelRectangle.GenericPixelRect |
| Method Summary | |
|---|---|
void |
destroy()
Destroys this instance. |
Display |
getDisplay()
|
PointImmutable |
getHotspot()
Returns the hotspot. |
int |
getStride()
Always neatly packed, i.e. |
int |
hashCode()
Computes a hash code over: display pixelformat size stride isGLOriented pixels hotspot Dismissing the native handle! |
boolean |
isGLOriented()
Always false, i.e. |
boolean |
isValid()
Returns true if valid, otherwise false. |
boolean |
validate()
Returns true if instance isValid() or validation was successful, otherwise false. |
| Methods inherited from interface javax.media.nativewindow.util.PixelRectangle |
|---|
getPixelformat, getPixels, getSize, toString |
| Method Detail |
|---|
int getStride()
Returns stride in byte-size, i.e. byte count from one line to the next.
Must be >= PixelRectangle.getPixelformat().bytesPerPixel() * PixelRectangle.getSize().getWidth().
getStride in interface PixelRectangleboolean isGLOriented()
Returns true if the memory is laid out in
OpenGL's coordinate system, origin at bottom left.
Otherwise returns false, i.e. origin at top left.
isGLOriented in interface PixelRectangleint hashCode()
The hashCode shall be computed only once with first call and stored for later retrieval to enhance performance.
Computes a hash code over:
The hashCode shall be computed only once with first call and stored for later retrieval to enhance performance.
hashCode in interface PixelRectanglehashCode in class ObjectDisplay getDisplay()
PointImmutable getHotspot()
boolean isValid()
A PointerIcon instance becomes invalid if it's associated Display is destroyed.
boolean validate()
isValid() or validation was successful, otherwise false.
Validation, i.e. recreation, is required if instance became invalid, see isValid().
void destroy()
Will be called automatically if it's associated Display is destroyed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||