Expand description
FFI Bindings for native_drawing
on OpenHarmony
The native drawing module provides APIs for drawing 2D graphics and text.
The graphics and text drawn by using the APIs cannot be directly displayed on the screen.
To display the drawn graphics and text, you’ll need the capabilities provided by the
Please consult the official documentation for more details: English docs, Chinese docs
§Feature flags
§OpenHarmony API level
This crate by default exposes bindings for API-level 10.
Optionally enable one of the api-*
features to get access to bindings for newer
OpenHarmony versions.
api-10
(enabled by default) — No effect. API-10 bindings can’t be deselected. The feature exists for internal purposes.api-11
— Enables bindings for OpenHarmony API-level 11api-12
— Bindings for OpenHarmony API-level 12.api-13
— Bindings for OpenHarmony API-level 13.api-14
— Bindings for OpenHarmony API-level 14.api-15
— Bindings for OpenHarmony API-level 15.api-16
— Enables bindings for OpenHarmony API-level 16.api-17
— Enables bindings for OpenHarmony API-level 17.api-18
— Enables bindings for OpenHarmony API-level 18 (5.1.0).document-features
— Document available features when building the documentation
Modules§
- bitmap
- brush
- canvas
- color
- color_
filter api-11
- color_
space api-12
- error_
code api-12
- filter
api-11
- font
api-11
- font_
collection - font_
mgr api-12
- gpu_
context api-12
- image
api-12
- image_
filter api-12
- mask_
filter api-11
- matrix
api-11
- memory_
stream api-12
- path
- path_
effect api-12
- pen
- pixel_
map api-12
- point
api-11
- record_
cmd api-13
- rect
api-11
- region
api-12
- register_
font api-11
- round_
rect api-11
- sampling_
options api-12
- shader_
effect api-11
- shadow_
layer api-12
- surface
api-12
- text_
blob api-11
- text_
declaration - text_
font_ descriptor api-14
- text_
line api-18
- Declares functions related to textLine in the drawing module.
- text_
line_ typography api-18
- text_
run api-18
- text_
typography - typeface
api-11
- types