Struct search2::buffer_search::BufferSearchBar
source · pub struct BufferSearchBar { /* private fields */ }
Implementations§
source§impl BufferSearchBar
impl BufferSearchBar
pub fn register(workspace: &mut Workspace)
pub fn new(cx: &mut ViewContext<'_, Self>) -> Self
pub fn is_dismissed(&self) -> bool
pub fn dismiss(&mut self, _: &Dismiss, cx: &mut ViewContext<'_, Self>)
pub fn deploy( &mut self, deploy: &Deploy, cx: &mut ViewContext<'_, Self> ) -> bool
pub fn show(&mut self, cx: &mut ViewContext<'_, Self>) -> bool
pub fn search_suggested(&mut self, cx: &mut ViewContext<'_, Self>)
pub fn activate_current_match(&mut self, cx: &mut ViewContext<'_, Self>)
pub fn select_query(&mut self, cx: &mut ViewContext<'_, Self>)
pub fn query(&self, cx: &WindowContext<'_>) -> String
pub fn replacement(&self, cx: &WindowContext<'_>) -> String
pub fn query_suggestion( &mut self, cx: &mut ViewContext<'_, Self> ) -> Option<String>
pub fn set_replacement( &mut self, replacement: Option<&str>, cx: &mut ViewContext<'_, Self> )
pub fn search( &mut self, query: &str, options: Option<SearchOptions>, cx: &mut ViewContext<'_, Self> ) -> Receiver<()>
pub fn activate_search_mode( &mut self, mode: SearchMode, cx: &mut ViewContext<'_, Self> )
pub fn focus_editor(&mut self, _: &FocusEditor, cx: &mut ViewContext<'_, Self>)
pub fn set_search_options( &mut self, search_options: SearchOptions, cx: &mut ViewContext<'_, Self> )
pub fn select_match( &mut self, direction: Direction, count: usize, cx: &mut ViewContext<'_, Self> )
pub fn select_last_match(&mut self, cx: &mut ViewContext<'_, Self>)
pub fn replace_all(&mut self, _: &ReplaceAll, cx: &mut ViewContext<'_, Self>)
Trait Implementations§
source§impl Render for BufferSearchBar
impl Render for BufferSearchBar
source§impl ToolbarItemView for BufferSearchBar
impl ToolbarItemView for BufferSearchBar
fn set_active_pane_item( &mut self, item: Option<&dyn ItemHandle>, cx: &mut ViewContext<'_, Self> ) -> ToolbarItemLocation
source§fn row_count(&self, _: &WindowContext<'_>) -> usize
fn row_count(&self, _: &WindowContext<'_>) -> usize
Number of times toolbar’s height will be repeated to get the effective height.
Useful when multiple rows one under each other are needed.
The rows have the same width and act as a whole when reacting to resizes and similar events.
fn pane_focus_update( &mut self, _pane_focused: bool, _cx: &mut ViewContext<'_, Self> )
impl EventEmitter<Event> for BufferSearchBar
impl EventEmitter<ToolbarItemEvent> for BufferSearchBar
Auto Trait Implementations§
impl !RefUnwindSafe for BufferSearchBar
impl !Send for BufferSearchBar
impl !Sync for BufferSearchBar
impl Unpin for BufferSearchBar
impl !UnwindSafe for BufferSearchBar
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