GraphicsContext
-
Cmn
interface GraphicsContext
Class responsible for providing graphics related dependencies. This includes the creation and management of GraphicsLayer instances.
Summary
Public functions |
||
|---|---|---|
GraphicsLayer |
Create a |
Cmn
|
Unit |
releaseGraphicsLayer(layer: GraphicsLayer)Releases a |
Cmn
|
Public properties |
||
|---|---|---|
open ShadowContext |
Returns a |
Cmn
|
Public functions
createGraphicsLayer
fun createGraphicsLayer(): GraphicsLayer
Create a GraphicsLayer instance. This may internally return a previously released GraphicsLayer instance passed to releaseGraphicsLayer
releaseGraphicsLayer
fun releaseGraphicsLayer(layer: GraphicsLayer): Unit
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
Public properties
shadowContext
open val shadowContext: ShadowContext
Returns a ShadowContext instance used to obtain shared dependencies to render drop and inner shadows