Listing the "Blender Foundation" as copyright holder implied the Blender Foundation holds copyright to files which may include work from many developers. While keeping copyright on headers makes sense for isolated libraries, Blender's own code may be refactored or moved between files in a way that makes the per file copyright holders less meaningful. Copyright references to the "Blender Foundation" have been replaced with "Blender Authors", with the exception of `./extern/` since these this contains libraries which are more isolated, any changed to license headers there can be handled on a case-by-case basis. Some directories in `./intern/` have also been excluded: - `./intern/cycles/` it's own `AUTHORS` file is planned. - `./intern/opensubdiv/`. An "AUTHORS" file has been added, using the chromium projects authors file as a template. Design task: #110784 Ref !110783.
65 lines
1.5 KiB
C
65 lines
1.5 KiB
C
/* SPDX-FileCopyrightText: 2008 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#pragma once
|
|
|
|
/** \file
|
|
* \ingroup bke
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* ****************************************************************************
|
|
* 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 <-- first
|
|
* aab
|
|
* aba <-- firstmatch
|
|
* abb <-- lastmatch
|
|
* baa
|
|
* bab <-- last
|
|
**************************************************************************** */
|
|
|
|
struct Text;
|
|
|
|
typedef struct SuggItem {
|
|
struct SuggItem *prev, *next;
|
|
char type;
|
|
char name[0];
|
|
} SuggItem;
|
|
|
|
typedef struct SuggList {
|
|
SuggItem *first, *last;
|
|
SuggItem *firstmatch, *lastmatch;
|
|
SuggItem *selected;
|
|
int top;
|
|
} SuggList;
|
|
|
|
/* Free all text tool memory */
|
|
void free_texttools(void);
|
|
|
|
/* Used to identify which Text object the current tools should appear against */
|
|
void texttool_text_set_active(struct Text *text);
|
|
void texttool_text_clear(void);
|
|
short texttool_text_is_active(struct Text *text);
|
|
|
|
/* Suggestions */
|
|
void texttool_suggest_add(const char *name, char type);
|
|
void texttool_suggest_prefix(const char *prefix, int prefix_len);
|
|
void texttool_suggest_clear(void);
|
|
SuggItem *texttool_suggest_first(void);
|
|
SuggItem *texttool_suggest_last(void);
|
|
void texttool_suggest_select(SuggItem *sel);
|
|
SuggItem *texttool_suggest_selected(void);
|
|
int *texttool_suggest_top(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|