#[repr(transparent)]pub struct cp_layer_renderer_state(pub u32);layer_renderer only.Expand description
The potential states of the layer renderer, which tell you how to proceed with drawing operations.
See also Apple’s documentation
Tuple Fields§
§0: u32Implementations§
Source§impl cp_layer_renderer_state
impl cp_layer_renderer_state
Sourcepub const paused: Self
pub const paused: Self
A state that indicates the layer renderer isn’t currently drawing.
A layer renderer starts in this state and later transitions to the running or invalid states. Don’t draw while in this state. Wait until the layer changes to one of the other states to take further action on the layer.
Sourcepub const running: Self
pub const running: Self
A state that indicates the layer renderer is ready for you to draw your content.
When the layer enters this state, start your rendering loop and draw your content. Keep drawing frames of content until the layer transitions to another state.
Sourcepub const invalidated: Self
pub const invalidated: Self
A state that indicates the layer renderer no longer supports drawing operations.
A layer enters this state shortly before the system releases its resources. When the layer enters this state, exit your rendering loop and release any drawing-related structures.
Trait Implementations§
Source§impl Clone for cp_layer_renderer_state
impl Clone for cp_layer_renderer_state
Source§fn clone(&self) -> cp_layer_renderer_state
fn clone(&self) -> cp_layer_renderer_state
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more