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)?