pub struct CmdlineCompletionWindow { /* private fields */ }Expand description
Plugin window for command-line completion popup
Implementations§
Source§impl CmdlineCompletionWindow
impl CmdlineCompletionWindow
Sourcepub fn new(cache: Arc<CmdlineCompletionCache>) -> Self
pub fn new(cache: Arc<CmdlineCompletionCache>) -> Self
Create a new completion window
Trait Implementations§
Source§impl PluginWindow for CmdlineCompletionWindow
impl PluginWindow for CmdlineCompletionWindow
Source§fn window_config(
&self,
_state: &Arc<PluginStateRegistry>,
ctx: &EditorContext,
) -> Option<WindowConfig>
fn window_config( &self, _state: &Arc<PluginStateRegistry>, ctx: &EditorContext, ) -> Option<WindowConfig>
Get window configuration (position, size, visibility, z-order) Read more
Source§fn render(
&self,
_state: &Arc<PluginStateRegistry>,
ctx: &EditorContext,
buffer: &mut FrameBuffer,
bounds: Rect,
theme: &Theme,
)
fn render( &self, _state: &Arc<PluginStateRegistry>, ctx: &EditorContext, buffer: &mut FrameBuffer, bounds: Rect, theme: &Theme, )
Render content into the window bounds Read more
Auto Trait Implementations§
impl Freeze for CmdlineCompletionWindow
impl RefUnwindSafe for CmdlineCompletionWindow
impl Send for CmdlineCompletionWindow
impl Sync for CmdlineCompletionWindow
impl Unpin for CmdlineCompletionWindow
impl UnwindSafe for CmdlineCompletionWindow
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