SkiaLayer
Generic layer for Skiko rendering.
Generic layer for Skiko rendering.
Generic layer for Skiko rendering.
Generic layer for Skiko rendering.
SkiaLayer implementation for macOS. Supports only GraphicsApi.METAL
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.
Constructors
Properties
A list of rectangles to cut out from the rendered content; No content will be drawn inside them.
Returns the pointer to an OS specific handle (native resource) of the SkiaLayer.
Current content scale.
Current content scale.
Current content scale.
Current content scale.
The scale factor of NSWindow https://developer.apple.com/documentation/appkit/nswindow/1419459-backingscalefactor
Current content scale.
See https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio
Returns the physical DPI value (number of dots per inch) of the current monitor.
If rendering is full screen.
If rendering is full screen.
If rendering is full screen.
If rendering is full screen.
Fullscreen is not supported
If rendering is full screen.
Fullscreen is not supported
Pixel geometry corresponding to graphics device which renders this layer
Pixel geometry corresponding to graphics device which renders this layer
Pixel geometry corresponding to graphics device which renders this layer
Pixel geometry corresponding to graphics device which renders this layer
Pixel geometry corresponding to graphics device which renders this layer
Pixel geometry corresponding to graphics device which renders this layer
Pixel geometry corresponding to graphics device which renders this layer
Current graphics API used for rendering.
Current graphics API used for rendering.
Current graphics API used for rendering.
Current graphics API used for rendering.
GraphicsApi.METAL is the only GraphicsApi supported for macOS. Setter throws an IllegalArgumentException if the value is not GraphicsApi.METAL.
Current graphics API used for rendering.
GraphicsApi.WEBGL is the only supported renderApi for k/js (browser).
Current view used for rendering.
Current view used for rendering.
Current view used for rendering.
Current view used for rendering.
Implements rendering logic and events processing.
Current view used for rendering.
An implementation of SkikoRenderDelegate with content rendering and event processing logic.
Whether transparency is enabled.
Returns the pointer to an OS specific window handle (native resource) which the current SkiaLayer is attached.
Functions
Attach this SkikoRenderDelegate to platform container. Actual type of attach container is platform-specific.
Attach this SkikoRenderDelegate to platform container. Actual type of attach container is platform-specific.
Attach this SkikoRenderDelegate to platform container. Actual type of attach container is platform-specific.
Attach this SkikoRenderDelegate to platform container. Actual type of attach container is platform-specific.
Attach this SkikoRenderDelegate to platform container. Actual type of attach container is platform-specific.
Detach this SkikoRenderDelegate from platform container.
Detach this SkikoRenderDelegate from platform container.
Detach this SkikoRenderDelegate from platform container.
Detach this SkikoRenderDelegate from platform container.
Detach this SkikoRenderDelegate from platform container.
Detach this SkikoRenderDelegate from platform container.
Detach this SkikoRenderDelegate from platform container.
Disable showing the window title bar.
Request redrawing of the content; The renderDelegate will be asked to re-render, and the result will be drawn on the screen.
Redraw on the next animation Frame (on vsync signal if vsync is enabled).
Request redrawing of the content; The renderDelegate will be asked to re-render, and the result will be drawn on the screen.
Request redrawing of the content; The renderDelegate will be asked to re-render, and the result will be drawn on the screen.
Schedules a frame to an appropriate moment.
Request redrawing of the content; The renderDelegate will be asked to re-render, and the result will be drawn on the screen.
Schedules a drawFrame to the appropriate moment.
Updates the layer and redraws synchronously.