[go: up one dir, main page]

[][src]Trait egui_web::backend::Backend

pub trait Backend {
    fn run_mode(&self) -> RunMode;
fn set_run_mode(&mut self, run_mode: RunMode);
fn cpu_time(&self) -> f32;
fn fps(&self) -> f32; fn web_info(&self) -> Option<WebInfo> { ... }
fn quit(&mut self) { ... } }

Required methods

fn run_mode(&self) -> RunMode

fn set_run_mode(&mut self, run_mode: RunMode)

fn cpu_time(&self) -> f32

excludes painting

fn fps(&self) -> f32

Smoothed frames per second

Loading content...

Provided methods

fn web_info(&self) -> Option<WebInfo>

If the app is running in a Web context, this returns information about the environment.

fn quit(&mut self)

Signal the backend that we'd like to exit the app now. This does nothing for web apps.s

Loading content...

Implementors

impl Backend for WebBackend[src]

fn cpu_time(&self) -> f32[src]

excludes painting

Loading content...