Struct pixels_graphics_lib::Options
source · 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 programs
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
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 other programs) 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§
Auto Trait Implementations§
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().