public abstract class PresentableState extends Object
Modifier and Type | Field and Description |
---|---|
protected static boolean |
hasWindowManager |
protected boolean |
isClosed |
protected boolean |
isWindowMinimized |
protected boolean |
isWindowVisible |
protected int |
nativeFrameBuffer |
protected long |
nativeView |
protected long |
nativeWindowHandle |
protected int |
outputHeight |
protected float |
outputScale |
protected int |
outputWidth |
protected int |
pixelFormat |
protected int |
renderHeight |
protected float |
renderScale |
protected int |
renderWidth |
protected int |
screenHeight |
protected int |
screenWidth |
protected View |
view |
protected int |
viewHeight |
protected int |
viewWidth |
protected Window |
window
The underlying Window and View
|
protected float |
windowAlpha |
protected int |
windowX |
protected int |
windowY |
Constructor and Description |
---|
PresentableState()
Create a PresentableState based on a View.
|
Modifier and Type | Method and Description |
---|---|
float |
getAlpha() |
int |
getHeight() |
int |
getNativeFrameBuffer() |
long |
getNativeView() |
long |
getNativeWindow() |
int |
getOutputHeight() |
float |
getOutputScale() |
int |
getOutputWidth() |
int |
getPixelFormat() |
int |
getRenderHeight() |
float |
getRenderScale() |
int |
getRenderWidth() |
int |
getScreenHeight() |
int |
getScreenWidth() |
View |
getView() |
int |
getWidth() |
Window |
getWindow() |
int |
getWindowX()
The screen relative window X
|
int |
getWindowY()
The screen relative window Y
|
boolean |
hasWindowManager() |
boolean |
isMSAA() |
boolean |
isViewClosed() |
boolean |
isWindowMinimized() |
boolean |
isWindowVisible() |
void |
lock()
Locks the underlying view for rendering
Must be called on Prism renderer thread.
|
void |
unlock()
Unlocks the underlying view after rendering
Must be called on Prism renderer thread.
|
void |
update()
Updates the state of this object based on the current state of its
nativeWindow.
|
protected void |
update(float viewScale,
float renderScale,
float outputScale) |
void |
uploadPixels(PixelSource source)
Put the pixels on the screen.
|
protected Window window
protected View view
protected int nativeFrameBuffer
protected int windowX
protected int windowY
protected float windowAlpha
protected long nativeWindowHandle
protected long nativeView
protected int viewWidth
protected int viewHeight
protected float renderScale
protected int renderWidth
protected int renderHeight
protected float outputScale
protected int outputWidth
protected int outputHeight
protected int screenHeight
protected int screenWidth
protected boolean isWindowVisible
protected boolean isWindowMinimized
protected static final boolean hasWindowManager
protected boolean isClosed
protected final int pixelFormat
public PresentableState()
public int getWindowX()
public int getWindowY()
public int getWidth()
public int getHeight()
public int getRenderWidth()
public int getRenderHeight()
public int getOutputWidth()
public int getOutputHeight()
public float getRenderScale()
public float getOutputScale()
public float getAlpha()
public long getNativeWindow()
public long getNativeView()
public int getScreenHeight()
public int getScreenWidth()
public boolean isViewClosed()
public boolean isWindowMinimized()
public boolean isWindowVisible()
public boolean hasWindowManager()
public Window getWindow()
public boolean isMSAA()
public View getView()
public int getPixelFormat()
public int getNativeFrameBuffer()
public void lock()
public void unlock()
public void uploadPixels(PixelSource source)
source
- - the source for the Pixels object to be uploadedprotected void update(float viewScale, float renderScale, float outputScale)
public void update()
Copyright © 2020. All rights reserved.