Interface

GraphicsContext

Class responsible for providing graphics related dependencies.

Source set: Common
public interface GraphicsContext

Class responsible for providing graphics related dependencies. This includes the creation and management of GraphicsLayer instances.

Properties

shadowContext

Source set: Common
public val shadowContext: ShadowContext

Returns a ShadowContext instance used to obtain shared dependencies to render drop and inner shadows

Functions

createGraphicsLayer

Source set: Common
public fun createGraphicsLayer(): GraphicsLayer

Create a GraphicsLayer instance. This may internally return a previously released GraphicsLayer instance passed to releaseGraphicsLayer

releaseGraphicsLayer

Source set: Common
public fun releaseGraphicsLayer(layer: GraphicsLayer)

Releases a GraphicsLayer instance so it can be re-used. After this method is invoked, it is an error to use this GraphicsLayer instance again. The GraphicsLayer maybe reused internally and obtained again through a subsequent call to createGraphicsLayer

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: