Struct bevy_doryen::doryen::AppOptions
source · pub struct AppOptions {
pub console_width: u32,
pub console_height: u32,
pub screen_width: u32,
pub screen_height: u32,
pub window_title: String,
pub font_path: String,
pub vsync: bool,
pub fullscreen: bool,
pub show_cursor: bool,
pub resizable: bool,
pub intercept_close_request: bool,
pub max_fps: usize,
}
Fields§
§console_width: u32
the console width in characters. Default is 80
console_height: u32
the console height in characters. Default is 45
screen_width: u32
the game window width in pixels
screen_height: u32
the game window height in pixels
window_title: String
the title of the game window (only in native mode)
font_path: String
the font to use. See DoryenApi::set_font_path
. Default is ‘terminal_8x8.png’
vsync: bool
whether framerate are limited by the screen frequency. On web platforms, this parameter is ignored and vsync is always enabled. Default is true.
fullscreen: bool
Native only. Might not work on every platforms. Default is false.
show_cursor: bool
Whether the mouse cursor should be visible in the game window. Default is true.
resizable: bool
Whether the game window can be resized. Default is true.
intercept_close_request: bool
Intercepts clicks on the window close button. Can be checked with InputApi::close_requested
Default is false (clicking on the window close button exits the game)
max_fps: usize
Limit the number of frames per second to lower CPU consumption. Use 0 for unlimited. Note that if vsync = true, frames per second cannot go over the screen refresh rate.
Trait Implementations§
source§impl Default for AppOptions
impl Default for AppOptions
source§fn default() -> AppOptions
fn default() -> AppOptions
Auto Trait Implementations§
impl RefUnwindSafe for AppOptions
impl Send for AppOptions
impl Sync for AppOptions
impl Unpin for AppOptions
impl UnwindSafe for AppOptions
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Self
using data from the given World
.