pub struct Painter { /* private fields */ }
Implementations§
Source§impl Painter
impl Painter
pub fn new( drv: &mut DriverPtr, window: &mut Window, canvas_width: u32, canvas_height: u32, ) -> Painter
pub fn new_user_texture( &mut self, size: (usize, usize), srgba_pixels: &[Color32], filtering: bool, ) -> TextureId
pub fn update_user_texture_data( &mut self, texture_id: TextureId, pixels: &[Color32], )
pub fn paint_jobs( &mut self, frame_buffer: Option<FrameBufferPtr>, bg_color: Option<Color32>, meshes: Vec<ClippedMesh>, egui_texture: &Texture, pixels_per_point: f32, )
Auto Trait Implementations§
impl Freeze for Painter
impl !RefUnwindSafe for Painter
impl !Send for Painter
impl !Sync for Painter
impl Unpin for Painter
impl !UnwindSafe for Painter
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