Function SDL_CopyProperties

pub unsafe extern "C" fn SDL_CopyProperties(
    src: u32,
    dst: u32,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Copy a group of properties.

Copy all the properties from one group of properties to another, with the exception of properties requiring cleanup (set using SDL_SetPointerPropertyWithCleanup()), which will not be copied. Any property that already exists on dst will be overwritten.

§Parameters

  • src: the properties to copy.
  • dst: the destination properties.

§Return value

Returns true on success or false on failure; call SDL_GetError() for more information.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.