Blender V4.5
space_text.cc File Reference
#include <cstring>
#include "DNA_text_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BKE_context.hh"
#include "BKE_lib_query.hh"
#include "BKE_lib_remap.hh"
#include "BKE_screen.hh"
#include "ED_screen.hh"
#include "ED_space_api.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "UI_view2d.hh"
#include "BLO_read_write.hh"
#include "RNA_access.hh"
#include "RNA_path.hh"
#include "text_format.hh"
#include "text_intern.hh"

Go to the source code of this file.

Functions

static SpaceLinktext_create (const ScrArea *, const Scene *)
static void text_free (SpaceLink *sl)
static void text_init (wmWindowManager *, ScrArea *)
static SpaceLinktext_duplicate (SpaceLink *sl)
static void text_listener (const wmSpaceTypeListenerParams *params)
static void text_operatortypes ()
static void text_keymap (wmKeyConfig *keyconf)
static int text_context (const bContext *C, const char *member, bContextDataResult *result)
static void text_main_region_init (wmWindowManager *wm, ARegion *region)
static void text_main_region_draw (const bContext *C, ARegion *region)
static void text_cursor (wmWindow *win, ScrArea *area, ARegion *region)
static bool text_drop_path_poll (bContext *, wmDrag *drag, const wmEvent *)
static void text_drop_path_copy (bContext *, wmDrag *drag, wmDropBox *drop)
static bool text_drop_id_poll (bContext *, wmDrag *drag, const wmEvent *)
static void text_drop_id_copy (bContext *, wmDrag *drag, wmDropBox *drop)
static bool text_drop_string_poll (bContext *, wmDrag *drag, const wmEvent *)
static void text_drop_string_copy (bContext *, wmDrag *drag, wmDropBox *drop)
static void text_dropboxes ()
static void text_header_region_init (wmWindowManager *, ARegion *region)
static void text_header_region_draw (const bContext *C, ARegion *region)
static void text_properties_region_init (wmWindowManager *wm, ARegion *region)
static void text_properties_region_draw (const bContext *C, ARegion *region)
static void text_id_remap (ScrArea *, SpaceLink *slink, const blender::bke::id::IDRemapper &mappings)
static void text_foreach_id (SpaceLink *space_link, LibraryForeachIDData *data)
static void text_space_blend_read_data (BlendDataReader *, SpaceLink *sl)
static void text_space_blend_write (BlendWriter *writer, SpaceLink *sl)
void ED_spacetype_text ()

Variables

const char * text_context_dir [] = {"edit_text", nullptr}

Function Documentation

◆ ED_spacetype_text()

◆ text_context()

◆ text_create()

◆ text_cursor()

◆ text_drop_id_copy()

void text_drop_id_copy ( bContext * ,
wmDrag * drag,
wmDropBox * drop )
static

◆ text_drop_id_poll()

bool text_drop_id_poll ( bContext * ,
wmDrag * drag,
const wmEvent *  )
static

Definition at line 324 of file space_text.cc.

References text_drop_id_poll(), wmDrag::type, and WM_DRAG_ID.

Referenced by text_drop_id_poll(), and text_dropboxes().

◆ text_drop_path_copy()

void text_drop_path_copy ( bContext * ,
wmDrag * drag,
wmDropBox * drop )
static

◆ text_drop_path_poll()

bool text_drop_path_poll ( bContext * ,
wmDrag * drag,
const wmEvent *  )
static

◆ text_drop_string_copy()

void text_drop_string_copy ( bContext * ,
wmDrag * drag,
wmDropBox * drop )
static

◆ text_drop_string_poll()

bool text_drop_string_poll ( bContext * ,
wmDrag * drag,
const wmEvent *  )
static

Definition at line 338 of file space_text.cc.

References text_drop_string_poll(), wmDrag::type, and WM_DRAG_STRING.

Referenced by text_drop_string_poll(), and text_dropboxes().

◆ text_dropboxes()

◆ text_duplicate()

SpaceLink * text_duplicate ( SpaceLink * sl)
static

Definition at line 102 of file space_text.cc.

References MEM_dupallocN(), SpaceText::runtime, and text_duplicate().

Referenced by ED_spacetype_text(), and text_duplicate().

◆ text_foreach_id()

void text_foreach_id ( SpaceLink * space_link,
LibraryForeachIDData * data )
static

◆ text_free()

void text_free ( SpaceLink * sl)
static

Definition at line 91 of file space_text.cc.

References SpaceText::runtime, space_text_free_caches(), SpaceText::text, and text_free().

Referenced by ED_spacetype_text(), and text_free().

◆ text_header_region_draw()

void text_header_region_draw ( const bContext * C,
ARegion * region )
static

Definition at line 370 of file space_text.cc.

References C, ED_region_header(), and text_header_region_draw().

Referenced by ED_spacetype_text(), and text_header_region_draw().

◆ text_header_region_init()

void text_header_region_init ( wmWindowManager * ,
ARegion * region )
static

Definition at line 365 of file space_text.cc.

References ED_region_header_init(), and text_header_region_init().

Referenced by ED_spacetype_text(), and text_header_region_init().

◆ text_id_remap()

void text_id_remap ( ScrArea * ,
SpaceLink * slink,
const blender::bke::id::IDRemapper & mappings )
static

◆ text_init()

void text_init ( wmWindowManager * ,
ScrArea *  )
static

Definition at line 100 of file space_text.cc.

References text_init().

Referenced by ED_spacetype_text(), and text_init().

◆ text_keymap()

void text_keymap ( wmKeyConfig * keyconf)
static

Definition at line 220 of file space_text.cc.

References RGN_TYPE_WINDOW, SPACE_TEXT, text_keymap(), and WM_keymap_ensure().

Referenced by ED_spacetype_text(), and text_keymap().

◆ text_listener()

◆ text_main_region_draw()

void text_main_region_draw ( const bContext * C,
ARegion * region )
static

◆ text_main_region_init()

◆ text_operatortypes()

◆ text_properties_region_draw()

void text_properties_region_draw ( const bContext * C,
ARegion * region )
static

◆ text_properties_region_init()

◆ text_space_blend_read_data()

void text_space_blend_read_data ( BlendDataReader * ,
SpaceLink * sl )
static

◆ text_space_blend_write()

void text_space_blend_write ( BlendWriter * writer,
SpaceLink * sl )
static

Definition at line 416 of file space_text.cc.

References BLO_write_struct, and text_space_blend_write().

Referenced by ED_spacetype_text(), and text_space_blend_write().

Variable Documentation

◆ text_context_dir

const char* text_context_dir[] = {"edit_text", nullptr}

Definition at line 226 of file space_text.cc.

Referenced by bpy_context_members(), and text_context().