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§
source§impl<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§
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