pub struct OverlayEntry {
pub kind: OverlayKind,
pub content: Vec<String>,
pub width_fraction: f32,
pub height_fraction: f32,
}Expand description
An overlay entry on the stack.
Fields§
§kind: OverlayKindWhat kind of overlay this is.
content: Vec<String>Content lines to display.
width_fraction: f32Width as a fraction of terminal width (0.0-1.0).
height_fraction: f32Height as a fraction of terminal height (0.0-1.0).
Implementations§
Source§impl OverlayEntry
impl OverlayEntry
Sourcepub fn confirm(confirm: &ConfirmContent) -> Self
pub fn confirm(confirm: &ConfirmContent) -> Self
Create a confirmation dialog overlay.
Sourcepub fn gate_detail(detail: &GateDetailContent) -> Self
pub fn gate_detail(detail: &GateDetailContent) -> Self
Create a gate detail overlay.
Sourcepub fn compute_rect(&self, area: Rect) -> Rect
pub fn compute_rect(&self, area: Rect) -> Rect
Compute the centered rectangle for this overlay within the given area.
Trait Implementations§
Source§impl Clone for OverlayEntry
impl Clone for OverlayEntry
Source§fn clone(&self) -> OverlayEntry
fn clone(&self) -> OverlayEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OverlayEntry
impl RefUnwindSafe for OverlayEntry
impl Send for OverlayEntry
impl Sync for OverlayEntry
impl Unpin for OverlayEntry
impl UnsafeUnpin for OverlayEntry
impl UnwindSafe for OverlayEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request