Skip to main content

ss_placement_default

Function ss_placement_default 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_placement_default( out: *mut SsPlacement, ) -> i32
Expand description

Fill out with the default placement: contain, centred, unscaled, unflipped, unrotated, and the animation’s own canvas as the box.

Start every ss_placement_t here. A zeroed struct asks for scale = 0, which is a placement that draws nothing.

§Safety

out must point at a writable ss_placement_t.