pub struct WindowConfig {
pub bounds: Rect,
pub z_order: u32,
pub visible: bool,
}Expand description
Window configuration returned by plugins
Fields§
§bounds: RectWindow bounds (position and size)
z_order: u32Z-order for rendering (higher = on top) Recommended values:
- 100: Editor windows (buffers)
- 150: Sidebars (explorer)
- 200: Dropdowns (completion)
- 300: Floating (telescope, picker)
- 400: Modal (settings, dialogs)
visible: boolWhether the window is visible
Implementations§
Trait Implementations§
Source§impl Clone for WindowConfig
impl Clone for WindowConfig
Source§fn clone(&self) -> WindowConfig
fn clone(&self) -> WindowConfig
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 moreSource§impl Debug for WindowConfig
impl Debug for WindowConfig
impl Copy for WindowConfig
Auto Trait Implementations§
impl Freeze for WindowConfig
impl RefUnwindSafe for WindowConfig
impl Send for WindowConfig
impl Sync for WindowConfig
impl Unpin for WindowConfig
impl UnwindSafe for WindowConfig
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