A lot of files were missing copyright field in the header and
the Blender Foundation contributed to them in a sense of bug
fixing and general maintenance.
This change makes it explicit that those files are at least
partially copyrighted by the Blender Foundation.
Note that this does not make it so the Blender Foundation is
the only holder of the copyright in those files, and developers
who do not have a signed contract with the foundation still
hold the copyright as well.
Another aspect of this change is using SPDX format for the
header. We already used it for the license specification,
and now we state it for the copyright as well, following the
FAQ:
https://reuse.software/faq/
54 lines
1.3 KiB
C
54 lines
1.3 KiB
C
/* SPDX-FileCopyrightText: 2009 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup editors
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct ARegion;
|
|
struct SpaceText;
|
|
struct Text;
|
|
struct UndoStep;
|
|
struct UndoType;
|
|
struct bContext;
|
|
|
|
bool ED_text_activate_in_screen(struct bContext *C, struct Text *text);
|
|
|
|
/**
|
|
* Moves the view to the cursor location, also used to make sure the view isn't outside the file.
|
|
*/
|
|
void ED_text_scroll_to_cursor(struct SpaceText *st, struct ARegion *region, bool center);
|
|
|
|
/**
|
|
* Takes a cursor (row, character) and returns x,y pixel coords.
|
|
*/
|
|
bool ED_text_region_location_from_cursor(struct SpaceText *st,
|
|
struct ARegion *region,
|
|
const int cursor_co[2],
|
|
int r_pixel_co[2]);
|
|
|
|
/* text_undo.cc */
|
|
|
|
/** Export for ED_undo_sys. */
|
|
void ED_text_undosys_type(struct UndoType *ut);
|
|
|
|
/** Use operator system to finish the undo step. */
|
|
struct UndoStep *ED_text_undo_push_init(struct bContext *C);
|
|
|
|
/* text_format.c */
|
|
|
|
const char *ED_text_format_comment_line_prefix(struct Text *text);
|
|
|
|
bool ED_text_is_syntax_highlight_supported(struct Text *text);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|