MCPcopy Create free account

hub / github.com/Bruce-Hopkins/code-editor-prototype / functions

Functions314 in github.com/Bruce-Hopkins/code-editor-prototype

↓ 31 callersMethodline
(&self)
src/core/position.rs:65
↓ 28 callersMethodcan_edit_textbox
For methods that requiere editing the state of the textbox. */
src/lib.rs:592
↓ 24 callersMethodcharacter
(&self)
src/core/position.rs:69
↓ 24 callersMethodto_string
(&self)
src/core/document.rs:31
↓ 19 callersMethodlen
(&self)
src/core/buffer.rs:88
↓ 18 callersMethodinto
(self)
src/core/position.rs:54
↓ 16 callersMethodchildren
(&self)
src/widgets/main_view.rs:44
↓ 14 callersMethodwidth
(&self)
src/widgets/main_view.rs:88
↓ 10 callersMethodstart
(&self)
src/core/selection.rs:16
↓ 9 callersMethodclear
* Sets both positions of the selection to the smallest value. * * Sets the cursor to the position of the selection */
src/core/selection.rs:71
↓ 9 callersMethodclear_floating_elements
(&mut self)
src/widgets/textbox.rs:214
↓ 9 callersMethodend
(&self)
src/core/selection.rs:20
↓ 9 callersMethodheight
(&self)
src/widgets/textbox.rs:258
↓ 9 callersMethodis_empty
Returns true if the start and end values are not the same */
src/core/selection.rs:27
↓ 8 callersMethodpadding
* The padding of the virual window in pixels */
src/core/window.rs:116
↓ 7 callersFunctionfile_path
(relative_path: &str)
src/lsp/client.rs:146
↓ 6 callersMethodbuffer
(&self)
src/widgets/textbox.rs:285
↓ 6 callersMethodcorrect_position
* Corrects the position of the cursor when it's out of bounds */
src/core/buffer.rs:303
↓ 6 callersMethodfilename
(&self)
src/core/buffer.rs:72
↓ 6 callersMethodline_len
* Get's the length of characters within the line */
src/core/buffer.rs:99
↓ 6 callersMethodmove_vertically
(&mut self, distance: isize)
src/core/buffer.rs:263
↓ 6 callersMethodset_character
(&mut self, character: usize)
src/core/position.rs:77
↓ 5 callersMethodas_initialized
(&self)
src/lsp/client.rs:41
↓ 5 callersMethodbuffer
(&self)
src/core/buffer.rs:80
↓ 5 callersMethodsend_notification
* Sends an LSP notification */
src/lsp/transport.rs:81
↓ 5 callersMethodstart_line
(&self)
src/core/window.rs:139
↓ 4 callersMethodchildren
(&self)
src/widgets/view_port.rs:50
↓ 4 callersMethoddelete
(&mut self)
src/core/buffer.rs:128
↓ 4 callersMethodend_line
(&self)
src/core/window.rs:143
↓ 4 callersMethodget_line_bytes
(&self, line_number: usize)
src/core/document.rs:118
↓ 4 callersMethodinsert
(&mut self, content: String)
src/core/buffer.rs:158
↓ 4 callersMethodmove_horizontally
(&mut self, distance: isize, text_info: &TextInfo)
src/core/buffer.rs:248
↓ 4 callersMethodmove_selection_with_shift
(&mut self, modifier: Modifiers)
src/widgets/textbox.rs:75
↓ 4 callersMethodselect
* Selects a color based on the highlighted item. * * If at any time the highlighted item is `None` what means the iterator is finished, so w
src/highlighter/color_selector.rs:57
↓ 4 callersMethodtext_info
(&self)
src/widgets/textbox.rs:230
↓ 3 callersMethodchildren
(&self)
src/widgets/textbox_container.rs:66
↓ 3 callersMethodget_character_pos
(&self, position: &Position)
src/core/document.rs:110
↓ 3 callersMethodget_line
(&self, line_idx: usize)
src/core/document.rs:149
↓ 3 callersMethodget_position
(&self)
src/core/buffer.rs:236
↓ 3 callersMethodheight
(&self)
src/core/window.rs:50
↓ 3 callersMethodis_saved
(&self)
src/lib.rs:605
↓ 3 callersMethodis_within
* Returns if the pos is greater than or eq the start pos and less than the end pos */
src/core/position.rs:83
↓ 3 callersFunctionlayout
(child: Element<'a, Message>, modal: Option<Element<'a, Message>>, is_saved: bool)
src/widgets/layout.rs:10
↓ 3 callersMethodlines
(&self)
src/core/buffer.rs:120
↓ 3 callersMethodmodal_view
(&self)
src/lib.rs:601
↓ 3 callersMethodnew_file
(&mut self, commands: &mut Vec<Command<Message>>)
src/lib.rs:329
↓ 3 callersFunctionread_message
(reader: &mut BufReader<T>)
src/lsp/transport.rs:374
↓ 3 callersMethodsend
(self, msg: JsonRpc)
src/lsp/transport.rs:74
↓ 3 callersMethodset_end
Sets the end position of the selection. */
src/core/selection.rs:41
↓ 3 callersMethodtext_width
(&self)
src/widgets/textbox.rs:241
↓ 3 callersMethodworkspace
(&self)
src/lib.rs:650
↓ 2 callersMethodchange_file
(&mut self, file: String, commands: &mut Vec<Command<Message>>)
src/lib.rs:641
↓ 2 callersMethodcharacter_deleted
(&mut self, start_byte: usize, end_byte: usize, start_pos: Position, end_pos: Position)
src/core/buffer.rs:149
↓ 2 callersMethodcharacter_inputed
(&mut self, start_byte: usize, end_byte:usize, start_pos: Position, end_pos:Position, length: usize)
src/core/buffer.rs:154
↓ 2 callersMethodcorrect_possition_x
(&mut self, longest_line: usize, text_width: f32)
src/core/window.rs:88
↓ 2 callersMethodcorrect_possition_y
(&mut self, lines: usize)
src/core/window.rs:79
↓ 2 callersMethoddefault_text_color
(&self)
src/highlighter/color_selector.rs:39
↓ 2 callersMethoddid_save
(self, path: String)
src/lsp/transport.rs:178
↓ 2 callersMethodedit
(&mut self, input: &InputEdit, content: &RopeSlice)
src/highlighter/mod.rs:39
↓ 2 callersMethodend_character
(&self, text_width: f32)
src/core/window.rs:151
↓ 2 callersMethodget_cursor_row_len
(&self)
src/core/buffer.rs:276
↓ 2 callersFunctionget_files
* Uses breadth first search to find all the folders in a given directory. Does not search for the files within the excluded list. */
src/widgets/modal/file_selector.rs:86
↓ 2 callersMethodget_selected_text
(&self)
src/core/buffer.rs:197
↓ 2 callersFunctionline_hit_test
(text: &Document, line_height: f32, glyph_width: f32, point: Point)
src/widgets/textbox_container.rs:294
↓ 2 callersMethodlines_height
(&self)
src/core/window.rs:147
↓ 2 callersMethodmove_offset_x
(&mut self, direction: MoveDirectionX, longest_line: usize, text_width: f32)
src/core/window.rs:105
↓ 2 callersMethodmove_offset_y
(&mut self, direction: MoveDirectionY, lines: usize)
src/core/window.rs:97
↓ 2 callersMethodmove_to_end_of_insert
(&mut self, insert: String)
src/core/position.rs:170
↓ 2 callersMethodopen_document
(self, path: String)
src/lsp/transport.rs:129
↓ 2 callersMethodopen_folder
(&self)
src/lib.rs:619
↓ 2 callersMethodpos_in_range
(&self, pos: Position)
src/core/selection.rs:93
↓ 2 callersFunctionprocess_reader
(reader: &mut BufReader<T>, sender: &Sender<Input>, message: impl Fn(String) -> Input)
src/lsp/transport.rs:30
↓ 2 callersMethodrecv
* Receives a message from the LSP. * * If it fails to recieve a message, it will print an error and return early. * If it succeeds, i
src/lsp/transport.rs:207
↓ 2 callersMethodreplace
(&mut self, start_idx:&Position, end_idx:&Position, character: String)
src/core/buffer.rs:124
↓ 2 callersMethodsave
(&mut self, workspace: Option<String>)
src/core/buffer.rs:76
↓ 2 callersFunctionsend
* A generic send method for both notifications and requests */
src/lsp/transport.rs:347
↓ 2 callersMethodset_curor
(&mut self, cursor: Position)
src/widgets/textbox.rs:276
↓ 2 callersMethodset_file
(&mut self, document: Document, old_file: Option<String>, commands: &mut Vec<Command<Message>>)
src/lib.rs:339
↓ 2 callersMethodset_floating_message
(&mut self)
src/widgets/textbox.rs:185
↓ 2 callersMethodset_focus
(&mut self, focus: bool)
src/widgets/textbox.rs:71
↓ 2 callersMethodset_modal
(&mut self, file: String)
src/lib.rs:612
↓ 2 callersMethodset_selection
(&mut self, pos: Position)
src/widgets/textbox.rs:301
↓ 2 callersMethodset_selection_end
(&mut self, pos: Position)
src/widgets/textbox.rs:307
↓ 2 callersMethodset_start
Sets the start positions of the selection. */
src/core/selection.rs:34
↓ 2 callersMethodset_workspace
(&mut self, file: Option<PathBuf>, commands: &mut Vec<Command<Message>>)
src/lib.rs:657
↓ 2 callersMethodshow
(&self, filter: &str)
src/widgets/modal/file_selector.rs:18
↓ 2 callersMethodslice_all
(&self)
src/core/document.rs:46
↓ 2 callersMethodstart_character
(&self, text_width: f32)
src/core/window.rs:155
↓ 2 callersMethodwidth
(&self)
src/widgets/view_port.rs:76
↓ 1 callersMethodadd
(&mut self, position: Self)
src/core/position.rs:94
↓ 1 callersMethodadd_diagnostics
* Adds the diagnostic to the buffer if the paths match. */
src/core/buffer.rs:44
↓ 1 callersMethodbackspace
(&mut self)
src/widgets/textbox.rs:130
↓ 1 callersMethodclose_floating_elements
* Closes both floating elements and modals */
src/lib.rs:775
↓ 1 callersMethodclosed_document
(self, path: String)
src/lsp/transport.rs:148
↓ 1 callersMethodcolor
(&self)
src/lsp/response.rs:39
↓ 1 callersFunctionconnect
(client_id: usize, reciever: MessageReciever)
src/lsp/connect.rs:14
↓ 1 callersMethodcopy
* Copies the selected text */
src/core/buffer.rs:209
↓ 1 callersMethodcorrect_position
Returns a new selection with the positions corrected. If the start pos is greater than the end, it will swap the values */
src/core/selection.rs:58
↓ 1 callersMethodcorrect_position
(&mut self)
src/widgets/textbox.rs:289
↓ 1 callersMethodcorrect_position_to_cursor
(&mut self, text_width: f32, longest_line: usize)
src/core/buffer.rs:240
next →1–100 of 314, ranked by callers