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: usize
Target and max number of times [Scene::update] can be called per second Default is 240
scaling: WindowScaling
How the window should be scaled Default is [Auto][WindowScaling::Auto]
vsync: bool
If vsync should be enabled Default is true
hide_cursor: bool
If 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: bool
If the mouse cursor should be locked to within this window while it’s in the foreground Default is false
style: UiStyle
Style 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