Module NativeWindowOperation

Module NativeWindowOperation 

Source
Available on crate feature native_window only.

Constants§

GET_APP_FRAMEWORK_TYPEapi-12
get app framework type, variable parameter in function is [out] char** frameworkType.
GET_BUFFERQUEUE_SIZEapi-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_TYPEapi-12
get surface source type, variable parameter in function is [out] int32_t *sourceType, the enumeration value refers to [OHSurfaceSource].
GET_STRIDEDeprecated
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_TYPEapi-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_TIMESTAMPapi-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_BRIGHTNESSapi-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_BRIGHTNESSapi-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_TYPEapi-12
set surface source type, variable parameter in function is [in] int32_t sourceType, the enumeration value refers to [OHSurfaceSource].
SET_STRIDEDeprecated
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.