pub unsafe extern "C" fn OH_NativeWindow_NativeWindowAttachBuffer(
window: *mut OHNativeWindow,
buffer: *mut OHNativeWindowBuffer,
) -> i32Expand 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