ImageScreenObject

open class ImageScreenObject(id: String? = null) : ScreenObject

Renders an image as part of an offscreen composition.

Inheritors

Constructors

Link copied to clipboard
constructor(id: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The bitmap rendered by this object, or null when no image is set.

Link copied to clipboard

The rectangle computed by the most recent layout pass, in pixels.

Link copied to clipboard

The radius of the object's rounded corners, in composition pixels. Zero keeps square corners. The effective radius is limited to half of the object's shorter side.

Link copied to clipboard
open override var elements: Map<String, String>

A key-value representation of this object for serialization.

Link copied to clipboard
open var frame: Rect

The requested layout rectangle, in pixels.

Link copied to clipboard

Specifies the alignment position along the horizontal axis.

Link copied to clipboard
val id: String

Unique identifier of this screen object.

Link copied to clipboard
open var isVisible: Boolean

Specifies the visibility of the object.

Link copied to clipboard

Margins used to position and size this object, in pixels.

Link copied to clipboard

The 4 × 4 model-view-projection matrix used for rendering.

Link copied to clipboard

The container that owns this object, or null when detached.

Link copied to clipboard

Whether the object needs another layout pass.

Link copied to clipboard
val target: Int
Link copied to clipboard
open var textureId: Int

OpenGL ES texture ID associated with this screen object.

Link copied to clipboard
open override val type: String

Logical type of this screen object.

Link copied to clipboard

Specifies the alignment position along the vertical axis.

Link copied to clipboard

The effect applied when rendering this object.

Functions

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

Draws the screen object.

Link copied to clipboard
open fun findById(id: String): ScreenObject?

Returns this object if its identifier matches, or null. Containers also search their descendants.

Link copied to clipboard

Returns packed scissor rectangles in local coordinates for the renderers.

Link copied to clipboard
open fun invalidateLayout()

Invalidates the current layout and triggers a layout update.

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

Calculates the object bounds and updates its rendering layout.