Skip to main content

OH_NativeWindow_NativeWindowAttachBuffer

Function OH_NativeWindow_NativeWindowAttachBuffer 

Source
pub unsafe extern "C" fn OH_NativeWindow_NativeWindowAttachBuffer(
    window: *mut OHNativeWindow,
    buffer: *mut OHNativeWindowBuffer,
) -> i32
Expand description

@brief Attach a buffer to an OHNativeWindow instance.\n This interface needs to be used in conjunction with OH_NativeWindow_NativeWindowDetachBuffer, otherwise buffer management will be chaotic.\n This interface is a non-thread-safe type interface.\n

@syscap SystemCapability.Graphic.Graphic2D.NativeWindow @param window Indicates the pointer to an OHNativeWindow instance. @param buffer Indicates the pointer to a OHNativeWindowBuffer instance. @return Returns an error code, 0 is success, otherwise, failed. @since 12 @version 1.0