PGDisplayModeChangeHandler

Type Alias PGDisplayModeChangeHandler 

Source
pub type PGDisplayModeChangeHandler = *mut DynBlock<dyn Fn(PGDisplayCoord_t, u32)>;
Available on crate features PGDisplay and block2 only.
Expand description

A block that will be invoked at display mode change boundaries.

Parameter sizeInPixels: Size of upcoming frames.

Parameter pixelFormat: Pixel format of upcoming frames.

See also Apple’s documentation