pub struct Options {
pub ups: usize,
pub scaling: WindowScaling,
pub vsync: bool,
pub hide_cursor: bool,
pub confine_cursor: bool,
pub style: UiStyle,
}Expand description
Options for program windows
Fields§
§ups: usizeTarget and max number of times [Scene::update] can be called per second Default is 240
scaling: WindowScalingHow the window should be scaled Default is [Auto][WindowScaling::Auto]
vsync: boolIf vsync should be enabled Default is true
hide_cursor: boolIf OS mouse cursor should be hidden (you’ll have to draw your own if this is true, this is often called software cursor in games) Default is false
confine_cursor: boolIf the mouse cursor should be locked to within this window while it’s in the foreground Default is false
style: UiStyleStyle data for [UiElement]
Implementations§
Trait Implementations§
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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