#[non_exhaustive]pub struct FloatingPanel {
pub id: String,
pub rect: [f32; 4],
pub visible: bool,
}Available on crate features
state and storage only.Expand description
A free-floating panel (a tool window, not a split).
§Example
use crisol_core::state::FloatingPanel;
let panel = FloatingPanel::new("inspector", [20.0, 40.0, 320.0, 200.0]);
assert!(panel.visible);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.id: StringStable application id.
rect: [f32; 4]Screen rectangle: x, y, width, height.
visible: boolWhether it is visible.
Implementations§
Trait Implementations§
Source§impl Clone for FloatingPanel
impl Clone for FloatingPanel
Source§impl Debug for FloatingPanel
impl Debug for FloatingPanel
Source§impl<'de> Deserialize<'de> for FloatingPanel
impl<'de> Deserialize<'de> for FloatingPanel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FloatingPanel
impl PartialEq for FloatingPanel
Source§impl Serialize for FloatingPanel
impl Serialize for FloatingPanel
impl StructuralPartialEq for FloatingPanel
Auto Trait Implementations§
impl Forget for FloatingPanel
impl Freeze for FloatingPanel
impl Move for FloatingPanel
impl RefUnwindSafe for FloatingPanel
impl Send for FloatingPanelwhere
RawVecInner: Send,
impl Sync for FloatingPanelwhere
RawVecInner: Sync,
impl Unpin for FloatingPanel
impl UnsafeUnpin for FloatingPanel
impl UnwindSafe for FloatingPanelwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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