[][src]Trait egui_web::Painter

pub trait Painter {
    pub fn as_tex_allocator(&mut self) -> &mut dyn TextureAllocator;
pub fn debug_info(&self) -> String;
pub fn canvas_id(&self) -> &str;
pub fn upload_egui_texture(&mut self, texture: &Texture);
pub fn clear(&mut self, lear_color: Rgba);
pub fn paint_jobs(
        &mut self,
        jobs: PaintJobs,
        pixels_per_point: f32
    ) -> Result<(), JsValue>; }

Required methods

pub fn as_tex_allocator(&mut self) -> &mut dyn TextureAllocator[src]

pub fn debug_info(&self) -> String[src]

pub fn canvas_id(&self) -> &str[src]

id of the canvas html element containing the rendering

pub fn upload_egui_texture(&mut self, texture: &Texture)[src]

pub fn clear(&mut self, lear_color: Rgba)[src]

pub fn paint_jobs(
    &mut self,
    jobs: PaintJobs,
    pixels_per_point: f32
) -> Result<(), JsValue>
[src]

Loading content...

Implementors

impl Painter for WebGlPainter[src]

pub fn canvas_id(&self) -> &str[src]

id of the canvas html element containing the rendering

impl Painter for WebGl2Painter[src]

pub fn canvas_id(&self) -> &str[src]

id of the canvas html element containing the rendering

Loading content...