Skip to main content

ZViewport

actualpackageZViewport
13 items
constructorZViewport
constructor()
var clearColor: ZColor
Represents the clear color used for rendering in a viewport.
valdata
val data: ZViewportData
Provides access to the component's serializable data.
override val isInitialized: Boolean
Represents a boolean value indicating whether a component has been initialized.
override val isRenderizable: Boolean
Represents a boolean value indicating whether a component is renderizable.
val isSerializable: Boolean
Indicates whether this component can be serialized.
override val refId: String
Represents the unique identifier for a reference-based component. The refId is used as a distinctive key for retrieving or linking this component within reference-dependent systems.
val renderer: ZViewportRenderer
Provides access to the component's renderer.
var viewBox: ZBox2D
Represents the view box used as viewport for rendering objects. The view box defines the boundaries and dimensions of the viewport.
open override fun createRenderer(ctx: ZRenderingContext): ZViewportRenderer
Creates a new renderer instance for this component.
open override fun initialize(ctx: ZRenderingContext)
Initializes the ZComponent using the provided ZRenderingContext.
open override fun onViewportResize(width: Int, height: Int)
Notifies the listener when the viewport dimensions change.
open override fun render()
Renders the object's visual representation on the screen.