pub struct EguiGlow {
pub ctx: Context,
pub state: State,
pub painter: Painter,
/* private fields */
}
Fields§
§ctx: Context
§state: State
§painter: Painter
Implementations§
Source§impl EguiGlow
impl EguiGlow
Sourcepub fn new(
window: &Window,
glow_ctx: Arc<Context>,
shader_version: Option<ShaderVersion>,
dithering: bool,
) -> Self
pub fn new( window: &Window, glow_ctx: Arc<Context>, shader_version: Option<ShaderVersion>, dithering: bool, ) -> Self
For automatic shader version detection set shader_version
to None
.
Sourcepub fn run(&mut self, run_ui: impl FnMut(&Context))
pub fn run(&mut self, run_ui: impl FnMut(&Context))
Call Self::paint
later to paint.
pub fn clear(&self, color: [f32; 4])
Auto Trait Implementations§
impl Freeze for EguiGlow
impl !RefUnwindSafe for EguiGlow
impl !Send for EguiGlow
impl !Sync for EguiGlow
impl Unpin for EguiGlow
impl !UnwindSafe for EguiGlow
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