com.jogamp.newt.impl
Interface WindowImpl.LifecycleHook

All Known Implementing Classes:
GLWindow.GLLifecycleHook
Enclosing class:
WindowImpl

public static interface WindowImpl.LifecycleHook


Method Summary
 void destroyActionInLock()
          Invoked before Window destroy action, allows releasing of resources depending on the native Window.
Surface locked.
Called from EDT while window is locked.
 void destroyActionPreLock()
          Invoked before Window destroy action, allows releasing of resources depending on the native Window.
Surface not locked yet.
Called not necessarily from EDT.
 void invalidate(boolean unrecoverable)
          Invoked after destruction from Window's invalidate method.
Called while window is locked.
 boolean pauseRenderingAction()
          Invoked for expensive modifications, ie while reparenting and ScreenMode change.
No lock is hold when invoked.
 void resetCounter()
          Reset of internal state counter, ie totalFrames, etc.
 void resumeRenderingAction()
          Invoked for expensive modifications, ie while reparenting and ScreenMode change.
 void setVisibleActionPost(boolean visible, boolean nativeWindowCreated)
          Invoked after Window setVisible, allows allocating resources depending on the native Window.
 

Method Detail

resetCounter

void resetCounter()
Reset of internal state counter, ie totalFrames, etc. Called from EDT while window is locked.


setVisibleActionPost

void setVisibleActionPost(boolean visible,
                          boolean nativeWindowCreated)
Invoked after Window setVisible, allows allocating resources depending on the native Window. Called from EDT while window is locked.


destroyActionPreLock

void destroyActionPreLock()
Invoked before Window destroy action, allows releasing of resources depending on the native Window.
Surface not locked yet.
Called not necessarily from EDT.


destroyActionInLock

void destroyActionInLock()
Invoked before Window destroy action, allows releasing of resources depending on the native Window.
Surface locked.
Called from EDT while window is locked.


invalidate

void invalidate(boolean unrecoverable)
Invoked after destruction from Window's invalidate method.
Called while window is locked.

Parameters:
unrecoverable -

pauseRenderingAction

boolean pauseRenderingAction()
Invoked for expensive modifications, ie while reparenting and ScreenMode change.
No lock is hold when invoked.

Returns:
true is paused, otherwise false. If true resumeRenderingAction() shall be issued.
See Also:
resumeRenderingAction()

resumeRenderingAction

void resumeRenderingAction()
Invoked for expensive modifications, ie while reparenting and ScreenMode change. No lock is hold when invoked.

See Also:
pauseRenderingAction()


Copyright 2010 JogAmp Community.