Blender V5.0
text_autocomplete.cc File Reference
#include <cctype>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_text_types.h"
#include "BLI_ghash.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLI_string_utf8.h"
#include "BKE_context.hh"
#include "BKE_screen.hh"
#include "BKE_text.h"
#include "BKE_text_suggestions.h"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_screen.hh"
#include "ED_text.hh"
#include "ED_undo.hh"
#include "text_format.hh"
#include "text_intern.hh"

Go to the source code of this file.

Functions

Public API
bool space_text_do_suggest_select (SpaceText *st, const ARegion *region, const int mval[2])
void text_pop_suggest_list ()
Private API
static void text_autocomplete_free (bContext *C, wmOperator *op)
static GHashtext_autocomplete_build (Text *text)
static void get_suggest_prefix (Text *text, int offset)
static void confirm_suggestion (Text *text)
Auto Complete Operator
static wmOperatorStatus text_autocomplete_invoke (bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus text_autocomplete_modal (bContext *C, wmOperator *op, const wmEvent *event)
static void text_autocomplete_cancel (bContext *C, wmOperator *op)
void TEXT_OT_autocomplete (wmOperatorType *ot)

Function Documentation

◆ confirm_suggestion()

◆ get_suggest_prefix()

void get_suggest_prefix ( Text * text,
int offset )
static

◆ space_text_do_suggest_select()

◆ text_autocomplete_build()

◆ text_autocomplete_cancel()

void text_autocomplete_cancel ( bContext * C,
wmOperator * op )
static

Definition at line 560 of file text_autocomplete.cc.

References C, and text_autocomplete_free().

Referenced by TEXT_OT_autocomplete().

◆ text_autocomplete_free()

◆ text_autocomplete_invoke()

◆ text_autocomplete_modal()

◆ TEXT_OT_autocomplete()

◆ text_pop_suggest_list()