Struct carnelian::scene::scene::SceneOptions
source · pub struct SceneOptions {
pub background_color: Color,
pub round_scene_corners: bool,
pub enable_mouse_cursor: bool,
pub root_arranger: Option<ArrangerPtr>,
pub mutable: bool,
pub animated: bool,
}
Expand description
Options for creating a scene.
Fields§
§background_color: Color
Background color.
round_scene_corners: bool
True if, when running without Scenic, if the scene should round the corners of the screen to match the presentation that sometimes occurs with Scenic.
enable_mouse_cursor: bool
True if, when running without Scenic, the mouse cursor should be drawn.
root_arranger: Option<ArrangerPtr>
Option arranger for the root group.
mutable: bool
True if the scene should be mutable. If the scene is not going to change, setting this to false can provide some important performance benefits.
animated: bool
True if the scene is animated in a way that requires a render on every frame, for example, Spinning Square.
Implementations§
source§impl SceneOptions
impl SceneOptions
sourcepub fn with_background_color(background_color: Color) -> Self
pub fn with_background_color(background_color: Color) -> Self
Create the default scene options with a specified background color.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SceneOptions
impl !RefUnwindSafe for SceneOptions
impl !Send for SceneOptions
impl !Sync for SceneOptions
impl Unpin for SceneOptions
impl !UnwindSafe for SceneOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more