public interface OffscreenLayerSurface
Modifier and Type | Method and Description |
---|---|
void |
attachSurfaceLayer(long layerHandle)
Attach the offscreen layer to this offscreen layer surface.
|
void |
detachSurfaceLayer()
Detaches a previously attached offscreen layer from this offscreen layer surface.
|
long |
getAttachedSurfaceLayer()
Returns the attached surface layer or null if none is attached.
|
RecursiveLock |
getLock()
Returns the recursive lock object of this surface, which synchronizes multithreaded access.
|
boolean |
hideCursor()
Optional method hiding the cursor in the corresponding on-screen surface/window, if exists.
|
boolean |
isSurfaceLayerAttached()
Returns true if a surface layer is attached, otherwise false.
|
void |
setChosenCapabilities(CapabilitiesImmutable caps)
Sets the capabilities of this instance, allowing upstream API's to refine it, i.e.
|
boolean |
setCursor(PixelRectangle pixelrect,
PointImmutable hotSpot)
Optional method setting cursor in the corresponding on-screen surface/window, if exists.
|
void attachSurfaceLayer(long layerHandle) throws NativeWindowException
Implementation may realize all required resources at this point.
NativeWindowException
- if #isOffscreenLayerSurfaceEnabled()
== false#isOffscreenLayerSurfaceEnabled()
void detachSurfaceLayer() throws NativeWindowException
NativeWindowException
- if #isOffscreenLayerSurfaceEnabled()
== false
or no surface layer is attached.attachSurfaceLayer(long)
,
#isOffscreenLayerSurfaceEnabled()
long getAttachedSurfaceLayer()
boolean isSurfaceLayerAttached()
void setChosenCapabilities(CapabilitiesImmutable caps)
RecursiveLock getLock()
boolean setCursor(PixelRectangle pixelrect, PointImmutable hotSpot)
pixelrect
- cursor pixels, maybe null for default cursorhotSpot
- maybe null for default cursorboolean hideCursor()
Copyright 2010 JogAmp Community.