pub struct WindowOps { /* private fields */ }Expand description
Window operations module.
Manages window lifecycle events and viewport tracking across the editor. Subscriptions are stored to keep handlers active until module exit.
Implementations§
Trait Implementations§
Source§impl CommandProvider for WindowOps
impl CommandProvider for WindowOps
Source§fn command_handlers(&self) -> Vec<Box<dyn CommandHandler>>
fn command_handlers(&self) -> Vec<Box<dyn CommandHandler>>
Get command handlers to register. Read more
Source§impl Module for WindowOps
impl Module for WindowOps
Source§fn init(&mut self, ctx: &ModuleContext) -> ProbeResult
fn init(&mut self, ctx: &ModuleContext) -> ProbeResult
Initialize module (Linux equivalent:
probe() function). Read moreSource§fn exit(&mut self) -> Result<(), ModuleError>
fn exit(&mut self) -> Result<(), ModuleError>
Cleanup module (Linux equivalent:
remove() function). Read moreSource§fn api_version(&self) -> Version
fn api_version(&self) -> Version
Required kernel API version. Read more
Source§fn dependencies(&self) -> Vec<ModuleId>
fn dependencies(&self) -> Vec<ModuleId>
Required dependencies (must be loaded before this module). Read more
Source§fn optional_dependencies(&self) -> Vec<ModuleId>
fn optional_dependencies(&self) -> Vec<ModuleId>
Optional dependencies (load before if available, but not required). Read more
Source§fn extension_kinds(&self) -> &[&'static str]
fn extension_kinds(&self) -> &[&'static str]
Extension kinds pushed by this module via
ExtensionStateBridge (#584). Read moreSource§fn version_constraints(&self) -> Vec<(ModuleId, &'static str)>
fn version_constraints(&self) -> Vec<(ModuleId, &'static str)>
Version constraints on dependencies (#619). Read more
Source§fn on_all_loaded(&mut self, _ctx: &ModuleContext)
fn on_all_loaded(&mut self, _ctx: &ModuleContext)
Called after ALL modules are loaded (post-init phase). Read more
Source§fn on_buffer_focus(&mut self, _buffer_id: BufferId, _ctx: &ModuleContext)
fn on_buffer_focus(&mut self, _buffer_id: BufferId, _ctx: &ModuleContext)
Called when session focuses on a buffer. Read more
Source§fn on_unload(&mut self) -> Result<(), ModuleError>
fn on_unload(&mut self) -> Result<(), ModuleError>
Called before module unload for cleanup. Read more
Source§fn commands(&self) -> Vec<CommandRegistration>
fn commands(&self) -> Vec<CommandRegistration>
Get command registrations.
Source§fn keybindings(&self) -> Vec<KeybindingRegistration>
fn keybindings(&self) -> Vec<KeybindingRegistration>
Get keybinding registrations.
Source§fn event_handlers(&self) -> Vec<EventHandlerRegistration>
fn event_handlers(&self) -> Vec<EventHandlerRegistration>
Get event handler registrations.
Source§fn supports_hot_reload(&self) -> bool
fn supports_hot_reload(&self) -> bool
Whether this module supports hot reload. Read more
Source§fn restore_state(&mut self, _state: &[u8]) -> Result<(), ModuleError>
fn restore_state(&mut self, _state: &[u8]) -> Result<(), ModuleError>
Restore module state after hot reload. Read more
Auto Trait Implementations§
impl Freeze for WindowOps
impl !RefUnwindSafe for WindowOps
impl Send for WindowOps
impl Sync for WindowOps
impl Unpin for WindowOps
impl UnsafeUnpin for WindowOps
impl !UnwindSafe for WindowOps
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