Struct nvim_gtk::shell::Shell [−][src]
Fields
state: Arc<UiMutex<State>>
ui_state: Rc<RefCell<UiState>>
widget: Box
Implementations
impl Shell
[src]
pub fn new(settings: Rc<RefCell<Settings>>, options: ShellOptions) -> Shell
[src]
pub fn is_nvim_initialized(&self) -> bool
[src]
pub fn init(&mut self)
[src]
fn create_context_menu(&self) -> Menu
[src]
pub fn set_font_desc(&self, font_name: &str)
[src]
pub fn grab_focus(&self)
[src]
pub fn open_file(&self, path: &str)
[src]
pub fn cd(&self, path: &str)
[src]
pub fn detach_ui(&mut self)
[src]
pub fn edit_paste(&self)
[src]
pub fn edit_save_all(&self)
[src]
pub fn new_tab(&self)
[src]
pub fn set_detach_cb<F>(&self, cb: Option<F>) where
F: FnMut() + Send + 'static,
[src]
F: FnMut() + Send + 'static,
pub fn set_nvim_started_cb<F>(&self, cb: Option<F>) where
F: FnMut() + Send + 'static,
[src]
F: FnMut() + Send + 'static,
pub fn set_nvim_command_cb<F>(&self, cb: Option<F>) where
F: FnMut(&mut State, NvimCommand) + Send + 'static,
[src]
F: FnMut(&mut State, NvimCommand) + Send + 'static,
pub fn set_completeopts(&self, options: &str)
[src]
Methods from Deref<Target = Box>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Shell
impl !Send for Shell
impl !Sync for Shell
impl Unpin for Shell
impl !UnwindSafe for Shell
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,