Blender V2.61 - r43446
Functions | Variables

space_text.c File Reference

#include <string.h>
#include <stdio.h>
#include "DNA_text_types.h"
#include "DNA_object_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_rand.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_screen.h"
#include "ED_space_api.h"
#include "ED_screen.h"
#include "BIF_gl.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "RNA_access.h"
#include "text_intern.h"

Go to the source code of this file.

Functions

static SpaceLinktext_new (const bContext *UNUSED(C))
static void text_free (SpaceLink *sl)
static void text_init (struct wmWindowManager *UNUSED(wm), ScrArea *UNUSED(sa))
static SpaceLinktext_duplicate (SpaceLink *sl)
static void text_listener (ScrArea *sa, wmNotifier *wmn)
static void text_operatortypes (void)
static void text_keymap (struct wmKeyConfig *keyconf)
static int text_context (const bContext *C, const char *member, bContextDataResult *result)
static void text_main_area_init (wmWindowManager *wm, ARegion *ar)
static void text_main_area_draw (const bContext *C, ARegion *ar)
static void text_cursor (wmWindow *win, ScrArea *UNUSED(sa), ARegion *UNUSED(ar))
static int text_drop_poll (bContext *UNUSED(C), wmDrag *drag, wmEvent *UNUSED(event))
static void text_drop_copy (wmDrag *drag, wmDropBox *drop)
static void text_dropboxes (void)
static void text_header_area_init (wmWindowManager *UNUSED(wm), ARegion *ar)
static void text_header_area_draw (const bContext *C, ARegion *ar)
static void text_properties_area_init (wmWindowManager *wm, ARegion *ar)
static void text_properties_area_draw (const bContext *C, ARegion *ar)
void ED_spacetype_text (void)

Variables

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

Detailed Description

Definition in file space_text.c.


Function Documentation

void ED_spacetype_text ( void  )
static int text_context ( const bContext C,
const char *  member,
bContextDataResult result 
) [static]
static void text_cursor ( wmWindow win,
ScrArea UNUSEDsa,
ARegion UNUSEDar 
) [static]

Definition at line 444 of file space_text.c.

References BC_TEXTEDITCURSOR, and WM_cursor_set().

Referenced by ED_spacetype_text().

static void text_drop_copy ( wmDrag drag,
wmDropBox drop 
) [static]

Definition at line 461 of file space_text.c.

References wmDrag::path, wmDropBox::ptr, and RNA_string_set().

Referenced by text_dropboxes().

static int text_drop_poll ( bContext UNUSEDC,
wmDrag drag,
wmEvent UNUSEDevent 
) [static]

Definition at line 453 of file space_text.c.

References ELEM, wmDrag::icon, wmDrag::type, and WM_DRAG_PATH.

Referenced by text_dropboxes().

static void text_dropboxes ( void  ) [static]
static SpaceLink* text_duplicate ( SpaceLink sl) [static]

Definition at line 111 of file space_text.c.

References SpaceText::drawcache, MEM_dupallocN(), and NULL.

Referenced by ED_spacetype_text().

static void text_free ( SpaceLink sl) [static]

Definition at line 96 of file space_text.c.

References NULL, SpaceText::text, and text_free_caches().

Referenced by ED_spacetype_text().

static void text_header_area_draw ( const bContext C,
ARegion ar 
) [static]

Definition at line 487 of file space_text.c.

References ED_region_header().

Referenced by ED_spacetype_text().

static void text_header_area_init ( wmWindowManager UNUSEDwm,
ARegion ar 
) [static]

Definition at line 482 of file space_text.c.

References ED_region_header_init().

Referenced by ED_spacetype_text().

static void text_init ( struct wmWindowManager UNUSEDwm,
ScrArea UNUSEDsa 
) [static]

Definition at line 106 of file space_text.c.

Referenced by ED_spacetype_text().

static void text_keymap ( struct wmKeyConfig keyconf) [static]
static void text_listener ( ScrArea sa,
wmNotifier wmn 
) [static]
static void text_main_area_draw ( const bContext C,
ARegion ar 
) [static]

Definition at line 423 of file space_text.c.

References CTX_wm_space_text(), draw_text_main(), TH_BACK, and UI_ThemeClearColor().

Referenced by ED_spacetype_text().

static void text_main_area_init ( wmWindowManager wm,
ARegion ar 
) [static]
static SpaceLink* text_new ( const bContext UNUSEDC) [static]
static void text_operatortypes ( void  ) [static]
static void text_properties_area_draw ( const bContext C,
ARegion ar 
) [static]

Definition at line 500 of file space_text.c.

References ED_region_panels(), and NULL.

Referenced by ED_spacetype_text().

static void text_properties_area_init ( wmWindowManager wm,
ARegion ar 
) [static]

Definition at line 495 of file space_text.c.

References ED_region_panels_init().

Referenced by ED_spacetype_text().


Variable Documentation

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

Definition at line 385 of file space_text.c.