Blender V5.0
BKE_text_suggestions.h File Reference

Go to the source code of this file.

Classes

struct  SuggItem
struct  SuggList

Typedefs

typedef struct SuggItem SuggItem
typedef struct SuggList SuggList

Functions

void free_texttools (void)
void texttool_text_set_active (struct Text *text)
void texttool_text_clear (void)
short texttool_text_is_active (struct Text *text)
void texttool_suggest_add (const char *name, char type)
void texttool_suggest_prefix (const char *prefix, int prefix_len)
void texttool_suggest_clear (void)
SuggItemtexttool_suggest_first (void)
SuggItemtexttool_suggest_last (void)
void texttool_suggest_select (SuggItem *sel)
SuggItemtexttool_suggest_selected (void)
int * texttool_suggest_top (void)

Typedef Documentation

◆ SuggItem

typedef struct SuggItem SuggItem

◆ SuggList

typedef struct SuggList SuggList

Suggestions should be added in sorted order although a linear sorting method is implemented. The list is then divided up based on the prefix provided by update_suggestions:

Example: Prefix: ab aaa <- SuggList::first aab aba <- SuggList::firstmatch abb <- SuggList::lastmatch baa bab <- SuggList::last

Function Documentation

◆ free_texttools()

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().

◆ texttool_suggest_add()

void texttool_suggest_add ( const char * name,
char type )

◆ texttool_suggest_clear()

void texttool_suggest_clear ( void )

Definition at line 180 of file text_suggestions.cc.

References txttl_free_suggest().

Referenced by text_autocomplete_modal().

◆ texttool_suggest_first()

◆ texttool_suggest_last()

SuggItem * texttool_suggest_last ( void )

◆ texttool_suggest_prefix()

void texttool_suggest_prefix ( const char * prefix,
int prefix_len )

◆ texttool_suggest_select()

void texttool_suggest_select ( SuggItem * sel)

Definition at line 195 of file text_suggestions.cc.

References suggestions.

Referenced by space_text_do_suggest_select(), and text_autocomplete_modal().

◆ texttool_suggest_selected()

SuggItem * texttool_suggest_selected ( void )

◆ texttool_suggest_top()

int * texttool_suggest_top ( void )

◆ texttool_text_clear()

void texttool_text_clear ( void )

◆ texttool_text_is_active()

short texttool_text_is_active ( struct Text * text)

◆ texttool_text_set_active()

void texttool_text_set_active ( struct Text * text)

Definition at line 57 of file text_suggestions.cc.

References activeToolText, and texttool_text_clear().

Referenced by text_autocomplete_build().