Blender V4.3
BKE_text_suggestions.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2008 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14struct Text;
15
16typedef struct SuggItem {
17 struct SuggItem *prev, *next;
18 char type;
19 char name[0];
21
41
42/* Free all text tool memory */
43void free_texttools(void);
44
45/* Used to identify which Text object the current tools should appear against */
46void texttool_text_set_active(struct Text *text);
47void texttool_text_clear(void);
48short texttool_text_is_active(struct Text *text);
49
50/* Suggestions */
51void texttool_suggest_add(const char *name, char type);
52void texttool_suggest_prefix(const char *prefix, int prefix_len);
53void texttool_suggest_clear(void);
58int *texttool_suggest_top(void);
59
60#ifdef __cplusplus
61}
62#endif
short texttool_text_is_active(struct Text *text)
void texttool_text_clear(void)
void texttool_suggest_prefix(const char *prefix, int prefix_len)
int * texttool_suggest_top(void)
SuggItem * texttool_suggest_first(void)
void texttool_suggest_select(SuggItem *sel)
struct SuggItem SuggItem
void texttool_suggest_add(const char *name, char type)
SuggItem * texttool_suggest_last(void)
void texttool_text_set_active(struct Text *text)
struct SuggList SuggList
SuggItem * texttool_suggest_selected(void)
void texttool_suggest_clear(void)
void free_texttools(void)
struct SuggItem * prev
struct SuggItem * next
SuggItem * first
SuggItem * firstmatch
SuggItem * selected
SuggItem * lastmatch
SuggItem * last