pub struct IdeMenu { /* private fields */ }
Expand description
Menu to present suggestions like similar to Ide completion menus
Implementations§
source§impl IdeMenu
impl IdeMenu
sourcepub fn with_min_completion_width(self, width: u16) -> Self
pub fn with_min_completion_width(self, width: u16) -> Self
Menu builder with new value for min completion width
sourcepub fn with_max_completion_width(self, width: u16) -> Self
pub fn with_max_completion_width(self, width: u16) -> Self
Menu builder with new value for max completion width
sourcepub fn with_max_completion_height(self, height: u16) -> Self
pub fn with_max_completion_height(self, height: u16) -> Self
Menu builder with new value for max completion height
sourcepub fn with_padding(self, padding: u16) -> Self
pub fn with_padding(self, padding: u16) -> Self
Menu builder with new value for padding
sourcepub fn with_default_border(self) -> Self
pub fn with_default_border(self) -> Self
Menu builder with the default border
sourcepub fn with_border(
self,
top_right: char,
top_left: char,
bottom_right: char,
bottom_left: char,
horizontal: char,
vertical: char
) -> Self
pub fn with_border( self, top_right: char, top_left: char, bottom_right: char, bottom_left: char, horizontal: char, vertical: char ) -> Self
Menu builder with new value for border
sourcepub fn with_cursor_offset(self, cursor_offset: i16) -> Self
pub fn with_cursor_offset(self, cursor_offset: i16) -> Self
Menu builder with new value for cursor offset
sourcepub fn with_description_mode(self, description_mode: DescriptionMode) -> Self
pub fn with_description_mode(self, description_mode: DescriptionMode) -> Self
Menu builder with new description mode
sourcepub fn with_min_description_width(self, min_description_width: u16) -> Self
pub fn with_min_description_width(self, min_description_width: u16) -> Self
Menu builder with new min description width
sourcepub fn with_max_description_width(self, max_description_width: u16) -> Self
pub fn with_max_description_width(self, max_description_width: u16) -> Self
Menu builder with new max description width
sourcepub fn with_max_description_height(self, max_description_height: u16) -> Self
pub fn with_max_description_height(self, max_description_height: u16) -> Self
Menu builder with new max description height
sourcepub fn with_description_offset(self, description_offset: u16) -> Self
pub fn with_description_offset(self, description_offset: u16) -> Self
Menu builder with new description offset
sourcepub fn with_correct_cursor_pos(self, correct_cursor_pos: bool) -> Self
pub fn with_correct_cursor_pos(self, correct_cursor_pos: bool) -> Self
Menu builder with new correct cursor pos
Trait Implementations§
source§impl Menu for IdeMenu
impl Menu for IdeMenu
source§fn can_quick_complete(&self) -> bool
fn can_quick_complete(&self) -> bool
The ide menu can to quick complete if there is only one element
Selects what type of event happened with the menu
source§fn update_values(&mut self, editor: &mut Editor, completer: &mut dyn Completer)
fn update_values(&mut self, editor: &mut Editor, completer: &mut dyn Completer)
Update menu values
source§fn update_working_details(
&mut self,
editor: &mut Editor,
completer: &mut dyn Completer,
painter: &Painter
)
fn update_working_details( &mut self, editor: &mut Editor, completer: &mut dyn Completer, painter: &Painter )
The working details for the menu changes based on the size of the lines collected from the completer
source§fn replace_in_buffer(&self, editor: &mut Editor)
fn replace_in_buffer(&self, editor: &mut Editor)
The buffer gets replaced in the Span location