Struct Ui

Source
pub struct Ui {
    open_paths: Box<[String]>,
    initialized: bool,
    comps: Arc<UiMutex<Components>>,
    settings: Rc<RefCell<Settings>>,
    shell: Rc<RefCell<Shell>>,
    projects: Arc<UiMutex<Projects>>,
    plug_manager: Arc<UiMutex<Manager>>,
    file_browser: Arc<UiMutex<FileBrowserWidget>>,
}

Fields§

§open_paths: Box<[String]>§initialized: bool§comps: Arc<UiMutex<Components>>§settings: Rc<RefCell<Settings>>§shell: Rc<RefCell<Shell>>§projects: Arc<UiMutex<Projects>>§plug_manager: Arc<UiMutex<Manager>>§file_browser: Arc<UiMutex<FileBrowserWidget>>

Implementations§

Source§

impl Ui

Source

pub fn new(options: ShellOptions, open_paths: Box<[String]>) -> Ui

Source

pub fn init(&mut self, app: &Application, restore_win_state: bool)

Source

fn nvim_started( shell: &State, plug_manager: &UiMutex<Manager>, file_browser: &UiMutex<FileBrowserWidget>, files_list: &Box<[String]>, update_title: &SubscriptionHandle, update_subtitle: &Option<SubscriptionHandle>, update_completeopt: &SubscriptionHandle, )

Source

fn nvim_command( shell: &mut State, command: NvimCommand, sidebar_action: &UiMutex<SimpleAction>, projects: &Arc<UiMutex<Projects>>, comps: &UiMutex<Components>, )

Source

fn create_header_bar(&self, app: &Application) -> SubscriptionHandle

Source

fn create_primary_menu_btn( &self, app: &Application, window: &ApplicationWindow, ) -> MenuButton

Auto Trait Implementations§

§

impl Freeze for Ui

§

impl !RefUnwindSafe for Ui

§

impl !Send for Ui

§

impl !Sync for Ui

§

impl Unpin for Ui

§

impl !UnwindSafe for Ui

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.