MCPcopy Create free account

hub / github.com/FedericoBruzzone/tgt / functions

Functions413 in github.com/FedericoBruzzone/tgt

↓ 1 callersMethodview_all_messages
(&self)
src/tg/tg_backend.rs:105
↓ 1 callersMethodwith_small_area
Set small area flag. # Arguments `small_area` - A flag indicating whether the `CoreWindow` should be displayed as a
src/components/core_window.rs:131
Methodcheck_duplicates
Check for duplicates in the keymaps. It is used to check for duplicates in the keymaps. If a keymap entry is present in multiple keymaps, it is consid
src/configs/custom/keymap_custom.rs:279
Methodconvert_time
(timestamp: i32)
src/tg/message_entry.rs:16
Methoddefault
()
src/configs/config_theme.rs:196
Methoddefault
()
src/configs/custom/palette_custom.rs:77
Methoddefault
()
src/configs/custom/app_custom.rs:96
Methoddefault
()
src/configs/custom/keymap_custom.rs:399
Methoddefault
()
src/configs/custom/logger_custom.rs:88
Methoddefault
()
src/configs/custom/telegram_custom.rs:117
Methoddefault
()
src/configs/custom/theme_custom.rs:118
Methoddefault
()
src/components/prompt_window.rs:508
Methoddefault
()
src/components/chat_list_window.rs:33
Methoddefault_format
Get the default file extension for the configuration file type. The default file extension is `.toml`. # Returns `&'static str` - The default file ex
src/configs/config_type.rs:59
Methoddefault_result
Get the default palette configuration. # Returns `Result<Self>` - The default palette configuration.
src/configs/custom/palette_custom.rs:24
Methoddefault_result
Get the default application configuration. # Returns The default application configuration.
src/configs/custom/app_custom.rs:35
Methoddefault_result
Get the default keymap configuration. # Returns The default keymap configuration.
src/configs/custom/keymap_custom.rs:65
Methoddefault_result
Get the default logger configuration. # Returns The default logger configuration.
src/configs/custom/logger_custom.rs:40
Methoddefault_result
Get the default telegram configuration. # Returns The default telegram configuration.
src/configs/custom/telegram_custom.rs:47
Methoddefault_result
Get the default theme configuration. # Returns `Result<Self>` - The default theme configuration.
src/configs/custom/theme_custom.rs:37
Methoddeserialize_config_or_default
Deserialize a configuration file into a configuration struct or return the default configuration. This function searches the configuration directories
src/configs/config_file.rs:140
Methoddeserialize_custom_config
Deserialize a custom configuration file into a configuration struct. This function searches the configuration directories for the specified file name
src/configs/config_file.rs:103
Functiondeserialize_to_config
Deserialize a configuration file into a configuration struct. This function attempts to parse the specified file and returns the parsed configuration.
src/configs/mod.rs:24
Functiondeserialize_to_config_into
Deserialize a configuration file into a configuration struct and convert it into another configuration struct. This function attempts to parse the spe
src/configs/mod.rs:44
Methoddraw
(&mut self, frame: &mut ratatui::Frame<'_>, area: Rect)
src/components/status_bar.rs:101
Methoddraw
(&mut self, frame: &mut Frame<'_>, area: Rect)
src/components/prompt_window.rs:799
Methoddraw
(&mut self, frame: &mut Frame<'_>, area: Rect)
src/components/chat_list_window.rs:277
Methoddraw
(&mut self, frame: &mut ratatui::Frame<'_>, area: Rect)
src/components/reply_message.rs:78
Methoddraw
(&mut self, frame: &mut ratatui::Frame<'_>, area: Rect)
src/components/title_bar.rs:97
Methoddraw
(&mut self, frame: &mut ratatui::Frame<'_>, area: Rect)
src/components/chat_window.rs:215
Methoddraw
(&mut self, frame: &mut ratatui::Frame<'_>, area: Rect)
src/components/core_window.rs:269
Methodevent_with_modifiers
Create an event with a key code and modifiers. # Arguments `s` - A string that represents the key code. `modifiers` - A `KeyModifiers` struct that re
src/event.rs:71
Methodfmt
(&self, f: &mut Formatter<'_>)
src/event.rs:144
Methodfmt
(&self, f: &mut Formatter)
src/component_name.rs:24
Methodfmt
(&self, f: &mut std::fmt::Formatter)
src/app_error.rs:46
Methodfmt
(&self, f: &mut Formatter<'_>)
src/configs/config_type.rs:116
Methodfocus
Set the `focused` flag for the `StatusBar`.
src/components/status_bar.rs:75
Methodfocus
Set the `focused` flag for the `PromptWindow`.
src/components/prompt_window.rs:595
Methodfocus
Set the `focused` flag for the `ChatListWindow`.
src/components/chat_list_window.rs:251
Methodfocus
Set the `focused` flag for the `ReplyMessage`.
src/components/reply_message.rs:62
Methodfocus
Set the `focused` flag for the `TitleBar`.
src/components/title_bar.rs:81
Methodfocus
Set the `focused` flag for the `ChatWindow`.
src/components/chat_window.rs:185
Methodforce_exit
Exit the user interface and stop processing events. This will disable the raw mode for the terminal and switch back to the main screen. # Arguments `
src/tui_backend.rs:115
Methodformat_message_content
(message: &FormattedText)
src/tg/message_entry.rs:284
Methodfrom
(config: LoggerConfig)
src/logger.rs:127
Methodfrom
(modifiers: KeyModifiers)
src/action.rs:32
Methodfrom
(error: io::Error)
src/app_error.rs:31
Methodfrom
(entry: ThemeEntry)
src/configs/config_theme.rs:151
Methodfrom
(raw: PaletteRaw)
src/configs/custom/palette_custom.rs:84
Methodfrom
(raw: AppRaw)
src/configs/custom/app_custom.rs:103
Methodfrom
(raw: KeymapRaw)
src/configs/custom/keymap_custom.rs:406
Methodfrom
(raw: LoggerRaw)
src/configs/custom/logger_custom.rs:95
Methodfrom
(raw: TelegramRaw)
src/configs/custom/telegram_custom.rs:124
Methodfrom
(raw: ThemeRaw)
src/configs/custom/theme_custom.rs:124
Methodfrom
(message: &tdlib_rs::types::Message)
src/tg/message_entry.rs:415
Methodfrom
(reply_to_message: &TdMessageReplyToMessage)
src/tg/td_enums.rs:33
Methodfrom_config
Create a new logger from the logger configuration. # Arguments `logger_config` - The logger configuration. # Returns The new logger.
src/logger.rs:35
Methodfrom_key_event
Create an action from a key event. # Arguments `key` - A `KeyCode` that represents the key code. `modifiers` - A `KeyModifiers` struct that represent
src/action.rs:179
Methodfrom_span_to_lines
(span: Span)
src/tg/message_entry.rs:207
Methodfrom_spans_to_lines
(spans: Vec<Span>)
src/tg/message_entry.rs:214
Methodfrom_str
(s: &str)
src/action.rs:188
Methodfrom_str
(s: &str)
src/event.rs:119
Methodget_config
Get the configuration of the specified type. # Returns The configuration of the specified type.
src/configs/config_file.rs:60
Methodget_config
We need to override the default implementation of the get_config function to use the theme_filename from the app config. The default value of theme_fi
src/configs/custom/palette_custom.rs:45
Methodget_config
We need to override the default implementation of the get_config function to use the theme_filename from the app config. The default value of theme_fi
src/configs/custom/theme_custom.rs:57
Methodget_span_styled
(&self, app_context: &AppContext)
src/tg/message_entry.rs:28
Methodget_text_styled
( &self, myself: bool, app_context: &AppContext, is_unread: bool, // When myse
src/tg/message_entry.rs:78
Methodget_type
()
src/configs/custom/palette_custom.rs:34
Methodget_type
()
src/configs/custom/app_custom.rs:45
Methodget_type
()
src/configs/custom/keymap_custom.rs:330
Methodget_type
()
src/configs/custom/logger_custom.rs:50
Methodget_type
()
src/configs/custom/telegram_custom.rs:57
Methodget_type
()
src/configs/custom/theme_custom.rs:47
Methodhandle_events
Handle incoming events and produce actions if necessary. # Arguments `event` - An optional event to be processed. # Returns `Result<Option<Action>
src/components/component_traits.rs:50
Methodhandle_events
(&mut self, event: Option<Event>)
src/components/core_window.rs:191
Methodhash
(&self, state: &mut H)
src/tg/ordered_chat.rs:10
Methodhash
(&self, state: &mut H)
examples/telegram.rs:37
Methodinit
(&mut self, area: layout::Rect)
src/components/component_traits.rs:38
Methodinsert_keymap
Insert a keymap entry into the keymap hashmap. It is used to insert a keymap entry into the keymap hashmap. It is recursive and it is used to insert a
src/configs/custom/keymap_custom.rs:209
Methodkeymaps_vec_to_map
Convert a vector of keymap entries to a hashmap of event and action binding. When the keymap entries are read from the default configuration file, the
src/configs/custom/keymap_custom.rs:124
Methodload_all_chats
(&mut self)
src/tg/tg_backend.rs:79
Functionmain
()
build.rs:21
Functionmain
()
src/main.rs:150
Functionmain
()
examples/example_chat_list.rs:165
Functionmain
()
examples/telegram.rs:848
Functionmain
()
examples/example.rs:291
Functionmain
()
examples/get_me.rs:108
Methodmerge_two_style
(a: Style, b: Style)
src/tg/message_entry.rs:227
Methodmessage_content_lines
(content: &MessageContent)
src/tg/message_entry.rs:193
Methodnew
Create a new instance of the `TuiBackend` struct. # Arguments `app_context` - An Arc wrapped AppContext struct. # Returns `Result<Self, io::Error>` -
src/tui_backend.rs:56
Methodnew
Create a new instance of the `App` struct. # Arguments `app_config` - The application configuration. `keymap_config` - The keymap configuration. `the
src/app_context.rs:107
Methodnew
Create a new instance of the `Tui` struct. # Arguments `app_context` - An Arc wrapped AppContext struct. # Returns `Self` - The new instance of the
src/tui.rs:37
Methodnew
Create a new instance of the `StatusBar` struct. # Arguments `app_context` - An Arc wrapped AppContext struct. # Returns `Self` - The new instance o
src/components/status_bar.rs:42
Methodnew
Create a new instance of the `PromptWindow` struct. # Arguments `app_context` - An Arc wrapped AppContext struct. # Returns `Self` - The new instanc
src/components/prompt_window.rs:547
Methodnew
()
src/components/chat_list_window.rs:38
Methodnew
(app_context: Arc<AppContext>)
src/components/reply_message.rs:34
Methodnew
(app_context: Arc<AppContext>)
src/components/title_bar.rs:33
Methodnew
Create a new instance of the `ChatWindow` struct. # Arguments `app_context` - An Arc wrapped AppContext struct. # Returns `Self` - The new instance
src/components/chat_window.rs:46
Methodnew
Create a new instance of the `CoreWindow` struct. # Arguments `app_context` - An Arc wrapped AppContext struct. # Returns `Self` - The new instance
src/components/core_window.rs:60
Methodnew
(app_context: Arc<AppContext>)
src/tg/tg_backend.rs:33
← previousnext →201–300 of 413, ranked by callers