Blender V4.3
text_autocomplete.cc File Reference
#include <cctype>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_text_types.h"
#include "BLI_blenlib.h"
#include "BLI_ghash.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 int text_autocomplete_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static int 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()

static void get_suggest_prefix ( Text * text,
int offset )
static

◆ space_text_do_suggest_select()

◆ text_autocomplete_build()

◆ text_autocomplete_cancel()

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

Definition at line 554 of file text_autocomplete.cc.

References text_autocomplete_free().

Referenced by TEXT_OT_autocomplete().

◆ text_autocomplete_free()

◆ text_autocomplete_invoke()

◆ text_autocomplete_modal()

◆ TEXT_OT_autocomplete()

◆ text_pop_suggest_list()

void text_pop_suggest_list ( )