|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OffscreenLayerSurface
Interface specifying the offscreen layer surface protocol.
Method Summary | |
---|---|
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. |
boolean |
isSurfaceLayerAttached()
Returns true if a surface layer is attached, otherwise false. |
void |
layoutSurfaceLayer()
Layout the offscreen layer according to the implementing class's constraints. |
void |
setChosenCapabilities(CapabilitiesImmutable caps)
Sets the capabilities of this instance, allowing upstream API's to refine it, i.e. |
Method Detail |
---|
void attachSurfaceLayer(long layerHandle) throws NativeWindowException
Implementation may realize all required resources at this point.
It is mandatory that any related resources, e.g. a shared context, are not locked while calling this method.
NativeWindowException
- if #isOffscreenLayerSurfaceEnabled()
== false#isOffscreenLayerSurfaceEnabled()
void layoutSurfaceLayer() throws NativeWindowException
This method allows triggering a re-layout of the offscreen surface in case the implementation requires it.
Call this method if any parent or ancestor's layout has been changed, which could affects the layout of this surface.
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |