#[non_exhaustive]pub struct FloatShown {
pub key: String,
pub dock: String,
pub viewport: ViewportId,
pub native: bool,
pub rect: Rect,
pub tab_bars: Vec<(NodePath, Rect)>,
}Expand description
A float just drawn, for FloatsArea::decorate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: StringThe float’s key.
dock: StringThe dock it shows.
viewport: ViewportIdThe viewport it is drawn in: its native window’s (ViewportHost::viewport_id), or the
main window’s for a float over it.
native: boolWhether it is a native float (FloatHost::Native).
rect: RectThe rect its dock was drawn in, in the viewport’s points.
tab_bars: Vec<(NodePath, Rect)>Its tab bars, each with its leaf, in the viewport’s points: the whole bar, margins
included, as DockArea::tab_bars lists them. A hidden tab bar is not listed.
Trait Implementations§
Source§impl Clone for FloatShown
impl Clone for FloatShown
Source§impl Debug for FloatShown
impl Debug for FloatShown
Source§impl PartialEq for FloatShown
impl PartialEq for FloatShown
impl StructuralPartialEq for FloatShown
Auto Trait Implementations§
impl Forget for FloatShown
impl Freeze for FloatShown
impl Move for FloatShown
impl RefUnwindSafe for FloatShown
impl Send for FloatShown
impl Sync for FloatShown
impl Unpin for FloatShown
impl UnsafeUnpin for FloatShownwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<(NodePath, Rect)>: UnsafeUnpin,
impl UnwindSafe for FloatShown
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more