Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/space_outliner.c
| Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | static void outliner_main_region_init(wmWindowManager *wm, ARegion *region) | ||||
| /* Add dropboxes */ | /* Add dropboxes */ | ||||
| lb = WM_dropboxmap_find("Outliner", SPACE_OUTLINER, RGN_TYPE_WINDOW); | lb = WM_dropboxmap_find("Outliner", SPACE_OUTLINER, RGN_TYPE_WINDOW); | ||||
| WM_event_add_dropbox_handler(®ion->handlers, lb); | WM_event_add_dropbox_handler(®ion->handlers, lb); | ||||
| } | } | ||||
| static void outliner_main_region_draw(const bContext *C, ARegion *region) | static void outliner_main_region_draw(const bContext *C, ARegion *region) | ||||
| { | { | ||||
| View2D *v2d = ®ion->v2d; | View2D *v2d = ®ion->v2d; | ||||
| View2DScrollers *scrollers; | |||||
| /* clear */ | /* clear */ | ||||
| UI_ThemeClearColor(TH_BACK); | UI_ThemeClearColor(TH_BACK); | ||||
| GPU_clear(GPU_COLOR_BIT); | GPU_clear(GPU_COLOR_BIT); | ||||
| draw_outliner(C); | draw_outliner(C); | ||||
| /* reset view matrix */ | /* reset view matrix */ | ||||
| UI_view2d_view_restore(C); | UI_view2d_view_restore(C); | ||||
| /* scrollers */ | /* scrollers */ | ||||
| scrollers = UI_view2d_scrollers_calc(v2d, NULL); | UI_view2d_scrollers_draw(v2d, NULL); | ||||
| UI_view2d_scrollers_draw(v2d, scrollers); | |||||
| UI_view2d_scrollers_free(scrollers); | |||||
| } | } | ||||
| static void outliner_main_region_free(ARegion *UNUSED(region)) | static void outliner_main_region_free(ARegion *UNUSED(region)) | ||||
| { | { | ||||
| } | } | ||||
| static void outliner_main_region_listener(wmWindow *UNUSED(win), | static void outliner_main_region_listener(wmWindow *UNUSED(win), | ||||
| ScrArea *UNUSED(area), | ScrArea *UNUSED(area), | ||||
| ▲ Show 20 Lines • Show All 339 Lines • Show Last 20 Lines | |||||