Struct egui::containers::collapsing_header::CollapsingResponse
source · [−]pub struct CollapsingResponse<R> {
pub header_response: Response,
pub body_response: Option<Response>,
pub body_returned: Option<R>,
pub openness: f32,
}
Expand description
The response from showing a CollapsingHeader
.
Fields
header_response: Response
Response of the actual clickable header.
body_response: Option<Response>
None iff collapsed.
body_returned: Option<R>
None iff collapsed.
openness: f32
0.0 if fully closed, 1.0 if fully open, and something in-between while animating.
Implementations
sourceimpl<R> CollapsingResponse<R>
impl<R> CollapsingResponse<R>
sourcepub fn fully_closed(&self) -> bool
pub fn fully_closed(&self) -> bool
Was the CollapsingHeader
fully closed (and not being animated)?
sourcepub fn fully_open(&self) -> bool
pub fn fully_open(&self) -> bool
Was the CollapsingHeader
fully open (and not being animated)?
Auto Trait Implementations
impl<R> !RefUnwindSafe for CollapsingResponse<R>
impl<R> Send for CollapsingResponse<R> where
R: Send,
impl<R> Sync for CollapsingResponse<R> where
R: Sync,
impl<R> Unpin for CollapsingResponse<R> where
R: Unpin,
impl<R> !UnwindSafe for CollapsingResponse<R>
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