public abstract class ImgLyUISurfaceView extends GLSurfaceView implements UIOverlayDrawer, GlThreadRunner
Modifier and Type | Field and Description |
---|---|
protected boolean |
isAttached |
protected EditorShowState |
showState |
protected float |
uiDensity |
protected boolean |
willDrawUi |
Constructor and Description |
---|
ImgLyUISurfaceView(Context context) |
ImgLyUISurfaceView(Context context,
AttributeSet attrs) |
ImgLyUISurfaceView(Context context,
AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
protected StateHandler |
getStateHandler() |
protected void |
onAttachedToUI(StateHandler stateHandler) |
protected void |
onAttachedToWindow() |
protected void |
onDetachedFromUI(StateHandler stateHandler) |
protected void |
onDetachedFromWindow() |
void |
onDrawUI(Canvas canvas) |
void |
onPause() |
void |
onResume() |
void |
postInvalidateUi() |
void |
requestRender() |
void |
runWithGlContext(java.lang.Runnable runnable) |
void |
setWillDrawUi(boolean willDrawUi) |
void |
surfaceChanged(SurfaceHolder holder,
int format,
int w,
int h) |
void |
surfaceCreated(SurfaceHolder holder) |
void |
surfaceDestroyed(SurfaceHolder holder) |
protected boolean isAttached
protected EditorShowState showState
protected float uiDensity
protected boolean willDrawUi
public ImgLyUISurfaceView(Context context)
public ImgLyUISurfaceView(Context context, AttributeSet attrs)
public ImgLyUISurfaceView(Context context, AttributeSet attrs, int defStyleAttr)
@AnyThread protected final StateHandler getStateHandler()
@CallSuper protected void onAttachedToUI(StateHandler stateHandler)
@CallSuper protected void onAttachedToWindow()
@CallSuper protected void onDetachedFromUI(StateHandler stateHandler)
@CallSuper protected void onDetachedFromWindow()
@CallSuper public void onDrawUI(Canvas canvas)
onDrawUI
in interface UIOverlayDrawer
public void onPause()
public void onResume()
@AnyThread public void postInvalidateUi()
@AnyThread public void requestRender()
@AnyThread public void runWithGlContext(java.lang.Runnable runnable)
runWithGlContext
in interface GlThreadRunner
public void setWillDrawUi(boolean willDrawUi)
public void surfaceChanged(SurfaceHolder holder, int format, int w, int h)
public void surfaceCreated(SurfaceHolder holder)
public void surfaceDestroyed(SurfaceHolder holder)