Struct nvim_gtk::shell::Shell[][src]

pub struct Shell {
    pub state: Arc<UiMutex<State>>,
    ui_state: Rc<RefCell<UiState>>,
    widget: Box,
}

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]

pub fn set_nvim_started_cb<F>(&self, cb: Option<F>) where
    F: FnMut() + Send + 'static, 
[src]

pub fn set_nvim_command_cb<F>(&self, cb: Option<F>) where
    F: FnMut(&mut State, NvimCommand) + Send + 'static, 
[src]

pub fn set_completeopts(&self, options: &str)[src]

Methods from Deref<Target = Box>

Trait Implementations

impl Deref for Shell[src]

type Target = Box

The resulting type after dereferencing.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.