Skia Layer
Generic layer for Skiko rendering.
Provides a way to render the content and to receive the input events. Rendering and events processing should be implemented in renderDelegate.
SkikoLayer needs to be initialized with HTMLCanvasElement instance using attachTo method.
SkiaLayer implementation for macOS. Supports only GraphicsApi.METAL
Properties
Current content scale.
See https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio
The scale factor of NSWindow https://developer.apple.com/documentation/appkit/nswindow/1419459-backingscalefactor
If rendering is full screen.
Fullscreen is not supported
Fullscreen is not supported
Pixel geometry corresponding to graphics device which renders this layer
Current graphics API used for rendering.
GraphicsApi.WEBGL is the only supported renderApi for k/js (browser).
GraphicsApi.METAL is the only GraphicsApi supported for macOS. Setter throws an IllegalArgumentException if the value is not GraphicsApi.METAL.
Current view used for rendering.
An implementation of SkikoRenderDelegate with content rendering and event processing logic.
Implements rendering logic and events processing.
If transparency is enabled.
Transparency is not supported
Transparency is not supported on macOS native.