Skip to main content

UIController

Complete API reference for UIController, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: UI

Component: yes


public class UIController extends Component

Constructors

SignatureDescription
UIController()Creates a new instance of UIController.

Virtual Attributes

NameTypeAccessDescription
allowScreenTouchbooleanget/setVirtual attribute exposed by isAllowScreenTouch. Access it like a field to read or write the underlying value.
drawToScreenbooleanget/setVirtual attribute exposed by isDrawToScreen. Access it like a field to read or write the underlying value.
fixedResolutionPixelsHeightintget/setVirtual attribute exposed by getFixedResolutionPixelsHeight. Access it like a field to read or write the underlying value.
fixedResolutionPixelsWidthintget/setVirtual attribute exposed by getFixedResolutionPixelsWidth. Access it like a field to read or write the underlying value.
frameBufferFrameBuffergetVirtual attribute exposed by getFrameBuffer. Access it like a field to read or write the underlying value.
frameBufferHintgetVirtual attribute exposed by getFrameBufferH. Access it like a field to read or write the underlying value.
frameBufferWintgetVirtual attribute exposed by getFrameBufferW. Access it like a field to read or write the underlying value.
freeResolutionPixelsintget/setVirtual attribute exposed by getFreeResolutionPixels. Access it like a field to read or write the underlying value.
imageRatiofloatgetVirtual attribute exposed by getImageRatio. Access it like a field to read or write the underlying value.
pxSizefloatget/setVirtual attribute exposed by getPxSize. Access it like a field to read or write the underlying value.
renderTextureFileStringget/setVirtual attribute exposed by getRenderTextureFile. Access it like a field to read or write the underlying value.
resolutionModeResolutionModeget/setVirtual attribute exposed by getResolutionMode. Access it like a field to read or write the underlying value.
resolutionPercentagefloatget/setVirtual attribute exposed by getResolutionPercentage. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
emitVirtualTouch()TouchReturns the result of emitVirtualTouch.
getFixedResolutionPixelsHeight()intReturns the current fixedResolutionPixelsHeight value.
getFixedResolutionPixelsWidth()intReturns the current fixedResolutionPixelsWidth value.
getFrameBuffer()FrameBufferReturns the current frameBuffer value.
getFrameBufferH()intReturns the current frameBufferH value.
getFrameBufferW()intReturns the current frameBufferW value.
getFreeResolutionPixels()intReturns the current freeResolutionPixels value.
getImageRatio()floatReturns the current imageRatio value.
getPxSize()floatReturns the current pxSize value.
getRenderTextureFile()StringReturns the current renderTextureFile value.
getResolutionMode()ResolutionModeReturns the current resolutionMode value.
getResolutionPercentage()floatReturns the current resolutionPercentage value.
getTouchPos(Touch)Vector2Returns the current touchPos value.
getVirtualToucheAt(int)TouchReturns the current virtualToucheAt value.
isAllowScreenTouch()booleanReturns whether allowScreenTouch is true.
isDrawToScreen()booleanReturns whether drawToScreen is true.
pxToDP(float)floatReturns the result of pxToDP.
pxToDP(int)intReturns the result of pxToDP.
releaseVirtualTouch(Touch)voidExecutes releaseVirtualTouch.
setAllowScreenTouch(boolean)voidSets allowScreenTouch.
setDrawToScreen(boolean)voidSets drawToScreen.
setFixedResolutionPixelsHeight(int)voidSets fixedResolutionPixelsHeight.
setFixedResolutionPixelsWidth(int)voidSets fixedResolutionPixelsWidth.
setFreeResolutionPixels(int)voidSets freeResolutionPixels.
setPxSize(float)voidSets pxSize.
setRenderTextureFile(String)voidSets renderTextureFile.
setResolutionMode(ResolutionMode)voidSets resolutionMode.
setResolutionPercentage(float)voidSets resolutionPercentage.
virtualTouchsCount()intReturns the result of virtualTouchsCount.