Available on crate feature
native_window only.Constants§
- GET_
APP_ FRAMEWORK_ TYPE api-12 - get app framework type, variable parameter in function is [out] char** frameworkType.
- GET_
BUFFERQUEUE_ SIZE api-12 - get native window bufferqueue size, variable parameter in function is [out] int32_t *size.
- GET_
BUFFER_ GEOMETRY - get native window buffer geometry, variable parameter in function is [out] int32_t *height, [out] int32_t *width
- GET_
COLOR_ GAMUT - get native window buffer colorGamut,
variable parameter in function is
[out] int32_t *colorGamut, the enumeration value refers to [
OH_NativeBuffer_ColorGamut]. - GET_
FORMAT - get native window buffer format,
variable parameter in function is
[out] int32_t *format, the enumeration value refers to [
OH_NativeBuffer_Format]. - GET_
SOURCE_ TYPE api-12 - get surface source type,
variable parameter in function is
[out] int32_t *sourceType, the enumeration value refers to [
OHSurfaceSource]. - GET_
STRIDE Deprecated - get native window buffer stride, variable parameter in function is [out] int32_t *stride.
- GET_
SWAP_ INTERVAL - get native window buffer swap interval, variable parameter in function is [out] int32_t *interval.
- GET_
TIMEOUT - get the timeout in milliseconds when the native window requests a buffer, the default value is 3000 milliseconds when not set, variable parameter in function is [out] int32_t *timeout, in milliseconds.
- GET_
TRANSFORM - get native window buffer transform,
variable parameter in function is
[out] int32_t *transform, the enumeration value refers to [
OH_NativeBuffer_TransformType]. - GET_
USAGE - get native window buffer usage,
variable parameter in function is
[out] uint64_t *usage, the enumeration value refers to [
OH_NativeBuffer_Usage]. - SET_
APP_ FRAMEWORK_ TYPE api-12 - set app framework type, variable parameter in function is [in] char* frameworkType. maximum length is 64 bytes, otherwise the setting fails.
- SET_
BUFFER_ GEOMETRY - set native window buffer geometry, variable parameter in function is [in] int32_t width, [in] int32_t height
- SET_
COLOR_ GAMUT - set native window buffer colorGamut,
variable parameter in function is
[in] int32_t colorGamut, the enumeration value refers to [
OH_NativeBuffer_ColorGamut]. - SET_
DESIRED_ PRESENT_ TIMESTAMP api-13 - Set native window buffer desiredPresentTimestamp, indicates the desired time to present the buffer.
- SET_
FORMAT - set native window buffer format,
variable parameter in function is
[in] int32_t format, the enumeration value refers to [
OH_NativeBuffer_Format]. - SET_
HDR_ WHITE_ POINT_ BRIGHTNESS api-12 - set hdr white point brightness, variable parameter in function is [in] float brightness. the value range is 0.0f to 1.0f.
- SET_
SDR_ WHITE_ POINT_ BRIGHTNESS api-12 - set sdr white point brightness, variable parameter in function is [in] float brightness. the value range is 0.0f to 1.0f.
- SET_
SOURCE_ TYPE api-12 - set surface source type,
variable parameter in function is
[in] int32_t sourceType, the enumeration value refers to [
OHSurfaceSource]. - SET_
STRIDE Deprecated - set native window buffer stride, variable parameter in function is [in] int32_t stride.
- SET_
SWAP_ INTERVAL - set native window buffer swap interval, variable parameter in function is [in] int32_t interval.
- SET_
TIMEOUT - set the timeout in milliseconds when the native window requests a buffer, the default value is 3000 milliseconds when not set, variable parameter in function is [in] int32_t timeout, in milliseconds.
- SET_
TRANSFORM - set native window buffer transform,
variable parameter in function is
[in] int32_t transform, the enumeration value refers to [
OH_NativeBuffer_TransformType]. - SET_
UI_ TIMESTAMP - set native window buffer uiTimestamp, variable parameter in function is [in] uint64_t uiTimestamp.
- SET_
USAGE - set native window buffer usage,
variable parameter in function is
[in] uint64_t usage, the enumeration value refers to [
OH_NativeBuffer_Usage].
Type Aliases§
- Type
- Indicates the operation code in the function OH_NativeWindow_NativeWindowHandleOpt.