Struct eframe::WebOptions
source · pub struct WebOptions {
pub follow_system_theme: bool,
pub default_theme: Theme,
pub depth_buffer: u8,
pub webgl_context_option: WebGlContextOption,
pub wgpu_options: WgpuConfiguration,
pub max_size_points: Vec2,
}
Expand description
Options when using eframe
in a web page.
Fields§
§follow_system_theme: bool
Try to detect and follow the system preferred setting for dark vs light mode.
See also Self::default_theme
.
Default: true
.
default_theme: Theme
Which theme to use in case Self::follow_system_theme
is false
or system theme detection fails.
Default: Theme::Dark
.
depth_buffer: u8
Sets the number of bits in the depth buffer.
egui
doesn’t need the depth buffer, so the default value is 0.
Unused by webgl context as of writing.
webgl_context_option: WebGlContextOption
Which version of WebGl context to select
Default: WebGlContextOption::BestFirst
.
wgpu_options: WgpuConfiguration
Configures wgpu instance/device/adapter/surface creation and renderloop.
max_size_points: Vec2
The size limit of the web app canvas.
By default the max size is [egui::Vec2::INFINITY
], i.e. unlimited.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WebOptions
impl !Send for WebOptions
impl !Sync for WebOptions
impl Unpin for WebOptions
impl !UnwindSafe for WebOptions
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