|
Blender V4.3
|
#include <cctype>#include <cstdio>#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_string.h"#include "BKE_text_suggestions.h"Go to the source code of this file.
Functions | |
| static void | txttl_free_suggest () |
| static void | txttl_free_docs () |
| void | free_texttools () |
| void | texttool_text_set_active (Text *text) |
| void | texttool_text_clear () |
| short | texttool_text_is_active (Text *text) |
| void | texttool_suggest_add (const char *name, char type) |
| void | texttool_suggest_prefix (const char *prefix, const int prefix_len) |
| void | texttool_suggest_clear () |
| SuggItem * | texttool_suggest_first () |
| SuggItem * | texttool_suggest_last () |
| void | texttool_suggest_select (SuggItem *sel) |
| SuggItem * | texttool_suggest_selected () |
| int * | texttool_suggest_top () |
Variables | |
| static Text * | activeToolText = nullptr |
| static SuggList | suggestions = {nullptr, nullptr, nullptr, nullptr, nullptr} |
| static char * | documentation = nullptr |
| void free_texttools | ( | void | ) |
Definition at line 51 of file text_suggestions.cc.
References txttl_free_docs(), and txttl_free_suggest().
Referenced by texttool_text_clear().
| void texttool_suggest_add | ( | const char * | name, |
| char | type ) |
Definition at line 81 of file text_suggestions.cc.
References BLI_strncasecmp(), SuggList::first, SuggList::firstmatch, SuggList::last, SuggList::lastmatch, len, MEM_mallocN, SuggItem::name, SuggItem::next, SuggItem::prev, printf, SuggList::selected, suggestions, SuggList::top, and SuggItem::type.
Referenced by text_autocomplete_build().
| void texttool_suggest_clear | ( | void | ) |
Definition at line 180 of file text_suggestions.cc.
References txttl_free_suggest().
Referenced by text_autocomplete_modal().
| SuggItem * texttool_suggest_first | ( | void | ) |
Definition at line 185 of file text_suggestions.cc.
References SuggList::firstmatch, and suggestions.
Referenced by space_text_do_suggest_select(), text_autocomplete_invoke(), text_autocomplete_modal(), and text_pop_suggest_list().
| SuggItem * texttool_suggest_last | ( | void | ) |
Definition at line 190 of file text_suggestions.cc.
References SuggList::lastmatch, and suggestions.
Referenced by space_text_do_suggest_select(), text_autocomplete_invoke(), and text_autocomplete_modal().
| void texttool_suggest_prefix | ( | const char * | prefix, |
| const int | prefix_len ) |
Definition at line 133 of file text_suggestions.cc.
References BLI_strncasecmp(), SuggList::first, SuggList::firstmatch, SuggList::last, SuggList::lastmatch, SuggItem::name, SuggItem::next, SuggItem::prev, SuggList::selected, suggestions, SuggList::top, and top.
Referenced by get_suggest_prefix(), and text_autocomplete_build().
| void texttool_suggest_select | ( | SuggItem * | sel | ) |
Definition at line 195 of file text_suggestions.cc.
References SuggList::selected, and suggestions.
Referenced by space_text_do_suggest_select(), and text_autocomplete_modal().
| SuggItem * texttool_suggest_selected | ( | void | ) |
Definition at line 200 of file text_suggestions.cc.
References SuggList::selected, and suggestions.
Referenced by confirm_suggestion(), text_autocomplete_modal(), and text_pop_suggest_list().
| int * texttool_suggest_top | ( | void | ) |
Definition at line 205 of file text_suggestions.cc.
References suggestions, and SuggList::top.
Referenced by space_text_do_suggest_select(), and text_pop_suggest_list().
| void texttool_text_clear | ( | void | ) |
Definition at line 66 of file text_suggestions.cc.
References activeToolText, and free_texttools().
Referenced by confirm_suggestion(), text_autocomplete_build(), text_autocomplete_free(), and texttool_text_set_active().
| short texttool_text_is_active | ( | Text * | text | ) |
Definition at line 72 of file text_suggestions.cc.
References activeToolText.
Referenced by confirm_suggestion(), get_suggest_prefix(), space_text_do_suggest_select(), and text_autocomplete_modal().
| void texttool_text_set_active | ( | Text * | text | ) |
Definition at line 57 of file text_suggestions.cc.
References activeToolText, and texttool_text_clear().
Referenced by text_autocomplete_build().
|
static |
Definition at line 42 of file text_suggestions.cc.
References documentation, and MEM_SAFE_FREE.
Referenced by free_texttools().
|
static |
Definition at line 29 of file text_suggestions.cc.
References SuggList::first, SuggList::firstmatch, SuggList::last, SuggList::lastmatch, MEM_freeN(), SuggItem::prev, SuggList::selected, suggestions, and SuggList::top.
Referenced by free_texttools(), and texttool_suggest_clear().
|
static |
Definition at line 24 of file text_suggestions.cc.
Referenced by texttool_text_clear(), texttool_text_is_active(), and texttool_text_set_active().
|
static |
Definition at line 26 of file text_suggestions.cc.
Referenced by txttl_free_docs().
|
static |
Definition at line 25 of file text_suggestions.cc.
Referenced by texttool_suggest_add(), texttool_suggest_first(), texttool_suggest_last(), texttool_suggest_prefix(), texttool_suggest_select(), texttool_suggest_selected(), texttool_suggest_top(), and txttl_free_suggest().