Screen

abstract class Screen(val applicationContext: Context) : ScreenObjectContainer

An object that manages offscreen rendering a foundation.

Constructors

Link copied to clipboard
constructor(applicationContext: Context)

Types

Link copied to clipboard
abstract class Callback
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Specifies the screen's background color.

Link copied to clipboard

The bounds rectangle.

Link copied to clipboard

The total of child counts.

Link copied to clipboard
open var frame: Rect

Specifies the frame rectangle.

Link copied to clipboard

Specifies the alignment position along the horizontal axis.

Link copied to clipboard
open var id: Int
Link copied to clipboard
open var isVisible: Boolean

Specifies the visibility of the object.

Link copied to clipboard

Specifies the default spacing to laying out content in the screen object.

Link copied to clipboard

The mvp matrix.

Link copied to clipboard
open override var parent: ScreenObjectContainer?

The screen object container that contains this screen object

Link copied to clipboard
Link copied to clipboard
val target: Int
Link copied to clipboard

Specifies the alignment position along the vertical axis.

Link copied to clipboard

Specifies the video effect such as a monochrome, a sepia.

Functions

Link copied to clipboard
open fun addChild(child: ScreenObject?)

Adds the specified screen object as a child of the current screen object container.

Link copied to clipboard
abstract fun bind(screenObject: ScreenObject)

Binds the gpu texture.

Link copied to clipboard

Change the z order of the child so it's on top of all other children.

Link copied to clipboard
open fun dispose()

Disposes all resources of the screen object.

Link copied to clipboard
open override fun draw(renderer: Renderer)

Draws the screen object.

Link copied to clipboard
open fun invalidateLayout()

Invalidates the current layout and triggers a layout update.

Link copied to clipboard
open override fun layout(renderer: Renderer)

Layouts the screen object.

Link copied to clipboard
abstract fun readPixels(lambda: (bitmap: Bitmap?) -> Unit)

Reads the pixels of a displayed image.

Link copied to clipboard
open fun registerCallback(callback: Screen.Callback)

Registers a listener to receive notifications about when the Screen.

Link copied to clipboard
open fun removeChild(child: ScreenObject?)

Removes the specified screen object as a child of the current screen object container.

Link copied to clipboard
open fun sendChildToBack(child: ScreenObject)

Change the z order of the child so it's on bottom of all other children.

Link copied to clipboard
abstract fun unbind(screenObject: ScreenObject)

Unbinds the gpu texture.

Link copied to clipboard

Unregisters a screen listener.