Crate ohos_drawing_sys

Source
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 and native window module.

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 11
  • api-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_filterapi-11
color_spaceapi-12
error_codeapi-12
filterapi-11
fontapi-11
font_collection
font_mgrapi-12
gpu_contextapi-12
imageapi-12
image_filterapi-12
mask_filterapi-11
matrixapi-11
memory_streamapi-12
path
path_effectapi-12
pen
pixel_mapapi-12
pointapi-11
record_cmdapi-13
rectapi-11
regionapi-12
register_fontapi-11
round_rectapi-11
sampling_optionsapi-12
shader_effectapi-11
shadow_layerapi-12
surfaceapi-12
text_blobapi-11
text_declaration
text_font_descriptorapi-14
text_lineapi-18
Declares functions related to textLine in the drawing module.
text_line_typographyapi-18
text_runapi-18
text_typography
typefaceapi-11
types