Blender  V2.93
Functions
space_graph.c File Reference
#include <stdio.h>
#include <string.h>
#include "DNA_anim_types.h"
#include "DNA_collection_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "BKE_screen.h"
#include "ED_anim_api.h"
#include "ED_markers.h"
#include "ED_screen.h"
#include "ED_space_api.h"
#include "ED_time_scrub_ui.h"
#include "GPU_framebuffer.h"
#include "GPU_immediate.h"
#include "GPU_state.h"
#include "WM_api.h"
#include "WM_message.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "graph_intern.h"

Go to the source code of this file.

Functions

static SpaceLinkgraph_create (const ScrArea *UNUSED(area), const Scene *scene)
 
static void graph_free (SpaceLink *sl)
 
static void graph_init (struct wmWindowManager *wm, ScrArea *area)
 
static SpaceLinkgraph_duplicate (SpaceLink *sl)
 
static void graph_main_region_init (wmWindowManager *wm, ARegion *region)
 
static void graph_main_region_draw (const bContext *C, ARegion *region)
 
static void graph_main_region_draw_overlay (const bContext *C, ARegion *region)
 
static void graph_channel_region_init (wmWindowManager *wm, ARegion *region)
 
static void graph_channel_region_draw (const bContext *C, ARegion *region)
 
static void graph_header_region_init (wmWindowManager *UNUSED(wm), ARegion *region)
 
static void graph_header_region_draw (const bContext *C, ARegion *region)
 
static void graph_buttons_region_init (wmWindowManager *wm, ARegion *region)
 
static void graph_buttons_region_draw (const bContext *C, ARegion *region)
 
static void graph_region_listener (const wmRegionListenerParams *params)
 
static void graph_region_message_subscribe (const wmRegionMessageSubscribeParams *params)
 
static void graph_listener (const wmSpaceTypeListenerParams *params)
 
static void graph_refresh_fcurve_colors (const bContext *C)
 
static void graph_refresh (const bContext *C, ScrArea *area)
 
static void graph_id_remap (ScrArea *UNUSED(area), SpaceLink *slink, ID *old_id, ID *new_id)
 
static int graph_space_subtype_get (ScrArea *area)
 
static void graph_space_subtype_set (ScrArea *area, int value)
 
static void graph_space_subtype_item_extend (bContext *UNUSED(C), EnumPropertyItem **item, int *totitem)
 
void ED_spacetype_ipo (void)
 

Function Documentation

◆ ED_spacetype_ipo()

void ED_spacetype_ipo ( void  )

Definition at line 828 of file space_graph.c.

References BKE_spacetype_register(), BKE_ST_MAXNAME, BLI_addhead(), SpaceType::create, ARegionType::draw, ARegionType::draw_overlay, SpaceType::duplicate, ED_area_type_hud(), ED_KEYMAP_ANIMATION, ED_KEYMAP_FRAMES, ED_KEYMAP_HEADER, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, SpaceType::free, graph_buttons_region_draw(), graph_buttons_region_init(), graph_buttons_register(), graph_channel_region_draw(), graph_channel_region_init(), graph_create(), graph_duplicate(), graph_free(), graph_header_region_draw(), graph_header_region_init(), graph_id_remap(), graph_init(), graph_listener(), graph_main_region_draw(), graph_main_region_draw_overlay(), graph_main_region_init(), graph_refresh(), graph_region_listener(), graph_region_message_subscribe(), graph_space_subtype_get(), graph_space_subtype_item_extend(), graph_space_subtype_set(), graphedit_keymap(), graphedit_operatortypes(), HEADERY, SpaceType::id_remap, ARegionType::init, SpaceType::init, SpaceType::keymap, ARegionType::keymapflag, ARegionType::listener, SpaceType::listener, MEM_callocN, ARegionType::message_subscribe, SpaceType::name, SpaceType::operatortypes, ARegionType::prefsizex, ARegionType::prefsizey, SpaceType::refresh, ARegionType::regionid, SpaceType::regiontypes, RGN_TYPE_CHANNELS, RGN_TYPE_HEADER, RGN_TYPE_UI, RGN_TYPE_WINDOW, SPACE_GRAPH, SpaceType::space_subtype_get, SpaceType::space_subtype_item_extend, SpaceType::space_subtype_set, SpaceType::spaceid, UI_SIDEBAR_PANEL_WIDTH, and V2D_SCROLL_WIDTH.

Referenced by ED_spacetypes_init().

◆ graph_buttons_region_draw()

static void graph_buttons_region_draw ( const bContext C,
ARegion region 
)
static

Definition at line 401 of file space_graph.c.

References C, and ED_region_panels().

Referenced by ED_spacetype_ipo().

◆ graph_buttons_region_init()

static void graph_buttons_region_init ( wmWindowManager wm,
ARegion region 
)
static

◆ graph_channel_region_draw()

static void graph_channel_region_draw ( const bContext C,
ARegion region 
)
static

◆ graph_channel_region_init()

static void graph_channel_region_init ( wmWindowManager wm,
ARegion region 
)
static

◆ graph_create()

static SpaceLink* graph_create ( const ScrArea UNUSEDarea,
const Scene scene 
)
static

◆ graph_duplicate()

static SpaceLink* graph_duplicate ( SpaceLink sl)
static

◆ graph_free()

static void graph_free ( SpaceLink sl)
static

◆ graph_header_region_draw()

static void graph_header_region_draw ( const bContext C,
ARegion region 
)
static

Definition at line 385 of file space_graph.c.

References C, and ED_region_header().

Referenced by ED_spacetype_ipo().

◆ graph_header_region_init()

static void graph_header_region_init ( wmWindowManager UNUSEDwm,
ARegion region 
)
static

Definition at line 380 of file space_graph.c.

References ED_region_header_init().

Referenced by ED_spacetype_ipo().

◆ graph_id_remap()

static void graph_id_remap ( ScrArea UNUSEDarea,
SpaceLink slink,
ID old_id,
ID new_id 
)
static

Definition at line 794 of file space_graph.c.

References SpaceGraph::ads, bDopeSheet::filter_grp, and bDopeSheet::source.

Referenced by ED_spacetype_ipo().

◆ graph_init()

static void graph_init ( struct wmWindowManager wm,
ScrArea area 
)
static

◆ graph_listener()

static void graph_listener ( const wmSpaceTypeListenerParams params)
static

◆ graph_main_region_draw()

static void graph_main_region_draw ( const bContext C,
ARegion region 
)
static

◆ graph_main_region_draw_overlay()

static void graph_main_region_draw_overlay ( const bContext C,
ARegion region 
)
static

◆ graph_main_region_init()

static void graph_main_region_init ( wmWindowManager wm,
ARegion region 
)
static

◆ graph_refresh()

static void graph_refresh ( const bContext C,
ScrArea area 
)
static

◆ graph_refresh_fcurve_colors()

static void graph_refresh_fcurve_colors ( const bContext C)
static

◆ graph_region_listener()

static void graph_region_listener ( const wmRegionListenerParams params)
static

◆ graph_region_message_subscribe()

static void graph_region_message_subscribe ( const wmRegionMessageSubscribeParams params)
static

◆ graph_space_subtype_get()

static int graph_space_subtype_get ( ScrArea area)
static

Definition at line 808 of file space_graph.c.

References blender::compositor::area(), and SpaceGraph::mode.

Referenced by ED_spacetype_ipo().

◆ graph_space_subtype_item_extend()

static void graph_space_subtype_item_extend ( bContext UNUSEDC,
EnumPropertyItem **  item,
int *  totitem 
)
static

Definition at line 820 of file space_graph.c.

References RNA_enum_items_add(), and rna_enum_space_graph_mode_items.

Referenced by ED_spacetype_ipo().

◆ graph_space_subtype_set()

static void graph_space_subtype_set ( ScrArea area,
int  value 
)
static

Definition at line 814 of file space_graph.c.

References blender::compositor::area(), and SpaceGraph::mode.

Referenced by ED_spacetype_ipo().