pub struct EguiGlow {
pub egui_ctx: Context,
pub egui_winit: State,
pub painter: Painter,
/* private fields */
}
Fields
egui_ctx: Context
egui_winit: State
painter: Painter
Implementations
sourceimpl EguiGlow
impl EguiGlow
pub fn new<E>(event_loop: &EventLoopWindowTarget<E>, gl: Arc<Context>) -> Self
sourcepub fn on_event(&mut self, event: &WindowEvent<'_>) -> bool
pub fn on_event(&mut self, event: &WindowEvent<'_>) -> bool
Returns true
if egui wants exclusive use of this event
(e.g. a mouse click on an egui window, or entering text into a text field).
For instance, if you use egui for a game, you want to first call this
and only when this returns false
pass on the events to your game.
Note that egui uses tab
to move focus between elements, so this will always return true
for tabs.
Auto Trait Implementations
impl !RefUnwindSafe for EguiGlow
impl Send for EguiGlow
impl !Sync for EguiGlow
impl Unpin for EguiGlow
impl !UnwindSafe for EguiGlow
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more