Blender V5.3
BKE_screen.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
9
10#include <functional>
11#include <memory>
12#include <optional>
13#include <string>
14
15#include "BLI_compiler_attrs.hh"
16#include "BLI_enum_flags.hh"
17#include "BLI_map.hh"
19#include "BLI_set.hh"
20#include "BLI_string_ref.hh"
21#include "BLI_vector.hh"
22
23#include "DNA_listBase.h"
24#include "DNA_space_types.h"
25#include "DNA_vec_types.h"
26
27#include "RNA_types.hh"
28
29#include "BKE_context.hh"
30
31namespace blender {
32namespace bke::id {
33class IDRemapper;
34}
35
36namespace asset_system {
38}
39
40namespace ui {
41struct Layout;
42struct Block;
43} // namespace ui
44
45struct ARegion;
46struct ARegionType;
47struct AssetShelfType;
48struct BlendDataReader;
49struct BlendLibReader;
50struct BlendWriter;
51struct Header;
52struct HeaderType;
53struct ID;
54struct LayoutPanelState;
56struct Menu;
57struct Panel;
58struct PanelType;
59struct PanelCategoryDyn;
60struct Scene;
61struct ScrArea;
62struct ScrAreaMap;
63struct ScrEdge;
64struct ScrVert;
65struct SpaceType;
66struct View3D;
67struct View3DShading;
68struct WorkSpace;
69struct bContext;
70struct bScreen;
71struct uiList;
72struct wmDrawBuffer;
73struct wmEventHandler;
74struct wmGizmoMap;
75struct wmKeyConfig;
76struct wmMsgBus;
77struct wmNotifier;
78struct wmTimer;
79struct wmWindow;
80struct wmWindowManager;
81struct PanelType;
82struct HeaderType;
83struct ARegionType;
84struct wmEventHandler;
85struct PanelCategoryDyn;
86
87/* spacetype has everything stored to get an editor working, it gets initialized via
88 * #ED_spacetypes_init() in `editors/space_api/spacetypes.cc` */
89/* an editor in Blender is a combined ScrArea + SpaceType + SpaceData. */
90
91#define BKE_ST_MAXNAME 64
92
100
101struct SpaceType {
110
115 SpaceLink *(*create)(const ScrArea *area, const Scene *scene);
117 void (*free)(SpaceLink *sl);
118
120 void (*init)(wmWindowManager *wm, ScrArea *area);
122 void (*exit)(wmWindowManager *wm, ScrArea *area);
124 void (*listener)(const wmSpaceTypeListenerParams *params);
125
127 void (*deactivate)(ScrArea *area);
128
130 void (*refresh)(const bContext *C, ScrArea *area);
131
133 void (*draw_pre)(const bContext *C, ScrArea *area);
134
136 void (*draw_post)(const bContext *C, ScrArea *area);
137
139 SpaceLink *(*duplicate)(SpaceLink *sl);
140
142 void (*operatortypes)();
144 void (*keymap)(wmKeyConfig *keyconf);
146 void (*dropboxes)();
147
149 void (*gizmos)();
150
153
155 void (*id_remap)(ScrArea *area, SpaceLink *sl, const bke::id::IDRemapper &mappings);
156
163
165 void (*space_subtype_set)(ScrArea *area, int value);
166 void (*space_subtype_item_extend)(bContext *C, EnumPropertyItem **item, int *totitem);
167
171 int (*space_icon_get)(const ScrArea *area);
172
176 void (*blend_read_data)(BlendDataReader *reader, SpaceLink *space_link);
177
181 void (*blend_read_after_liblink)(BlendLibReader *reader, ID *parent_id, SpaceLink *space_link);
182
186 void (*blend_write)(BlendWriter *writer, SpaceLink *space_link);
187
189 ListBaseT<ARegionType> regiontypes;
190
191 /* read and write... */
192
195
196 ~SpaceType();
197};
198
199/* Region types are also defined using spacetypes_init, via a callback. */
200
209
219
222 const ScrArea *area;
224
227};
228
229enum class ARegionTypeFlag {
240 UsePanelCategoryTabs = (1 << 1),
250 UsePanelCategoriesSearch = (1 << 3),
251};
253
254/* #ARegionType::lock */
261
280
291 rcti rect = {0, 0, 0, 0};
293 int font_size = 0;
294};
295
311
316
318struct AZone {
321 int type;
322
323 union {
325 AZEdge edge;
327 };
328
329 short x1, y1, x2, y2;
333 float alpha;
334};
335
339
340 void (*draw)(const bContext *, ARegion *, void *);
342
343 int type;
344};
345
350
352 void (*init)(wmWindowManager *wm, ARegion *region);
354 void (*exit)(wmWindowManager *wm, ARegion *region);
361 bool (*poll)(const RegionPollParams *params);
363 void (*draw)(const bContext *C, ARegion *region);
371 void (*draw_overlay)(const bContext *C, ARegion *region);
373 void (*layout)(const bContext *C, ARegion *region);
375 int (*snap_size)(const ARegion *region, int size, int axis);
377 void (*listener)(const wmRegionListenerParams *params);
380
381 void (*free)(ARegion *);
382
384 void *(*duplicate)(void *poin);
385
387 void (*cursor)(wmWindow *win, ScrArea *area, ARegion *region);
388
391
396 void (*on_poll_success)(const bContext *C, ARegion *region);
397
402 void (*on_user_resize)(const ARegion *region);
413 void (*on_view2d_changed)(const bContext *C, ARegion *region);
414
425 std::optional<ARegionIMECursorState> (*cursor_ime)(wmWindow *win,
426 const ScrArea *area,
427 const ARegion *region,
428 ARegionIMECursor *r_cursor);
429
431
433 ListBaseT<RegionDrawCB> drawcalls;
434
436 ListBaseT<PanelType> paneltypes;
437
439 ListBaseT<HeaderType> headertypes;
440
452 short do_lock, lock;
457};
458
459/* Panel types. */
460
461struct PanelType {
463
469 const char *description;
470 int icon;
477 char owner_id[128];
492 int order;
493
494 int flag;
495
497 bool (*poll)(const bContext *C, PanelType *pt);
499 void (*draw_header)(const bContext *C, Panel *panel);
501 void (*draw_header_preset)(const bContext *C, Panel *panel);
503 void (*draw)(const bContext *C, Panel *panel);
508 void (*listener)(const wmRegionListenerParams *params);
509
510 /* For instanced panels corresponding to a list: */
511
513 void (*reorder)(bContext *C, Panel *pa, int new_index);
527 void (*set_list_data_expand_flag)(const bContext *C, Panel *pa, short expand_flag);
528
531 ListBaseT<LinkData> children;
534};
535
537enum {
547};
548
555
557 float start_y;
558 float end_y;
559};
560
572
573 void clear()
574 {
575 this->headers.clear();
576 this->bodies.clear();
577 }
578};
579
582 int region_ofsx = 0;
583
592
597 ui::Block *block = nullptr;
598
601
604
610 ListBaseT<LayoutPanelState> *layout_panel_states_storage = nullptr;
611};
612
613namespace bke {
614
623
626 HUD_PADDING = (1 << 0),
627};
629
633
636
644
649 int offset_x = 0;
650 int offset_y = 0;
651
653 const char *category = nullptr;
654
657 ListBaseT<ui::Block> uiblocks = {};
658
659 ListBaseT<wmEventHandler> handlers = {};
660
662 char *headerstr = nullptr;
663
666
669
671 Vector<std::function<void(const bContext &C, ui::Block &Block)>> post_block_layout_fns;
672
674
676 ListBaseT<PanelCategoryDyn> panels_category = {};
677
679 short visible = 0;
680
682 short do_draw = 0;
683
686
688 bool do_ime = false;
689
691
695
696 std::string search_filter;
698};
699
700} // namespace bke
701
702/* #uiList types. */
703
705using uiListDrawItemFunc = void (*)(uiList *ui_list,
706 const bContext *C,
707 ui::Layout &layout,
708 PointerRNA *dataptr,
709 PointerRNA *itemptr,
710 int icon,
711 PointerRNA *active_dataptr,
712 const char *active_propname,
713 int index,
714 int flt_flag);
715
717using uiListDrawFilterFunc = void (*)(uiList *ui_list, const bContext *C, ui::Layout &layout);
718
720using uiListFilterItemsFunc = void (*)(uiList *ui_list,
721 const bContext *C,
722 PointerRNA *,
723 const char *propname);
724
726using uiListListener = void (*)(uiList *ui_list, wmRegionListenerParams *params);
727
744
745/* Header types. */
746
753
754 bool (*poll)(const bContext *C, HeaderType *ht);
756 void (*draw)(const bContext *C, Header *header);
757
760};
761
768
769/* Menu types. */
770
771enum class MenuTypeFlag {
780 SearchOnKeyPress = (1 << 1),
781};
783
784struct MenuType {
786
793 char owner_id[128];
794 const char *description;
795
797 bool (*poll)(const bContext *C, MenuType *mt);
799 void (*draw)(const bContext *C, Menu *menu);
800 void (*listener)(const wmRegionListenerParams *params);
801
803
806};
807
814
815/* Asset shelf types. */
816
817/* #AssetShelfType.flag */
834
835#define ASSET_SHELF_PREVIEW_SIZE_DEFAULT 48
836
840
842
852 uint64_t id_types_prefilter; /* rna_enum_id_type_filter_items */
853
855 std::string activate_operator;
857 std::string drag_operator;
858
860
862
864 bool (*poll)(const bContext *C, const AssetShelfType *shelf_type);
865
871 bool (*asset_poll)(const AssetShelfType *shelf_type,
873
876 const AssetShelfType *shelf_type,
878 ui::Layout &layout);
879
880 const AssetWeakReference *(*get_active_asset)(const AssetShelfType *shelf_type);
881
884};
885
886/* Space-types. */
887
888SpaceType *BKE_spacetype_from_id(int spaceid);
889ARegionType *BKE_regiontype_from_id(const SpaceType *st, int regionid);
891void BKE_spacetype_register(std::unique_ptr<SpaceType> st);
892bool BKE_spacetype_exists(int spaceid);
895
896bool BKE_regiontype_uses_categories(const ARegionType *region_type);
897bool BKE_regiontype_uses_category_tabs(const ARegionType *region_type);
900
901/* Space-data. */
902
903void BKE_spacedata_freelist(ListBaseT<SpaceLink> *lb);
907void BKE_spacedata_copylist(ListBaseT<SpaceLink> *lb_dst, ListBaseT<SpaceLink> *lb_src);
908
917
923 const ScrArea *area,
924 int region_type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
925
927 void (*func)(ScrArea *area, SpaceLink *sl, ID *old_id, ID *new_id));
931void BKE_spacedata_id_unref(ScrArea *area, SpaceLink *sl, ID *id);
932
933/* Area/regions. */
934
935ARegion *BKE_area_region_copy(const SpaceType *st, const ARegion *region);
936
938
942void BKE_area_region_free(SpaceType *st, ARegion *region);
943void BKE_area_region_panels_free(ListBaseT<Panel> *panels);
947Panel *BKE_panel_new(PanelType *panel_type);
948void BKE_panel_free(Panel *panel);
952void BKE_screen_area_free(ScrArea *area);
957void BKE_region_callback_free_gizmomap_set(void (*callback)(wmGizmoMap *));
959
965 StringRef idname,
966 bool default_closed);
967
974ARegion *BKE_region_find_in_listbase_by_type(const ListBaseT<ARegion> *regionbase,
975 const int region_type);
976
977void BKE_area_copy(ScrArea *area_dst, ScrArea *area_src);
978
985ARegion *BKE_area_find_region_type(const ScrArea *area, int region_type);
987ARegion *BKE_area_find_region_xy(const ScrArea *area, int regiontype, const int xy[2])
988 ATTR_NONNULL(3);
989
993ARegion *BKE_screen_find_region_type(const bScreen *screen, int region_type) ATTR_NONNULL(1);
998 int regiontype,
999 const int xy[2]) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 3);
1000
1001ARegion *BKE_screen_find_main_region_at_xy(const bScreen *screen, int space_type, const int xy[2])
1002 ATTR_NONNULL(1, 3);
1009 ATTR_NONNULL(1, 2);
1011 const SpaceLink *sl,
1012 int region_type) ATTR_WARN_UNUSED_RESULT
1013 ATTR_NONNULL(1, 2);
1018std::optional<std::string> BKE_screen_path_to_space(const PointerRNA *ptr);
1022std::optional<std::string> BKE_screen_path_to_area(const PointerRNA *ptr);
1027ScrArea *BKE_screen_find_big_area(const bScreen *screen, int spacetype, short min);
1029 int spacetype,
1030 const int xy[2]) ATTR_NONNULL(1, 3);
1031ScrArea *BKE_screen_find_area_xy(const bScreen *screen, int spacetype, const int xy[2])
1032 ATTR_NONNULL(1, 3);
1033
1035
1041
1042void BKE_screen_view3d_sync(View3D *v3d, Scene *scene);
1043void BKE_screen_view3d_scene_sync(bScreen *screen, Scene *scene);
1046
1047/* Zoom factor conversion. */
1048
1049float BKE_screen_view3d_zoom_to_fac(float camzoom);
1050float BKE_screen_view3d_zoom_from_fac(float zoomfac);
1051
1053
1054/* Screen. */
1055
1061
1065void BKE_screen_free_data(bScreen *screen);
1067
1071void BKE_screen_copy_data(bScreen *screen_dst, const bScreen *screen_src);
1072
1074bool BKE_screen_scredge_equals(const ScrVert *a1,
1075 const ScrVert *a2,
1076 const ScrVert *b1,
1077 const ScrVert *b2);
1078ScrEdge *BKE_screen_find_edge(const bScreen *screen, ScrVert *v1, ScrVert *v2);
1083
1085
1086/* .blend file I/O */
1087
1090
1100void BKE_screen_view3d_do_versions_250(View3D *v3d, ListBaseT<ARegion> *regions);
1101
1108 ID *parent_id,
1109 ScrArea *area);
1114
1115} // namespace blender
#define BKE_ST_MAXNAME
Definition BKE_screen.hh:91
#define ENUM_OPERATORS(_enum_type)
These structs are the foundation for all linked lists in the library system.
#define C
Definition RandGen.cpp:29
constexpr StringRefNull()
ENUM_OPERATORS(Layer::Flags)
BMesh Iterators.
ARegion * BKE_area_find_region_active_win(const ScrArea *area)
Definition screen.cc:1037
unsigned __int64 uint64_t
Definition BKE_text.h:91
bool BKE_regiontype_uses_panel_categories_search(const ARegionType *region_type)
Definition screen.cc:417
Panel * BKE_panel_new(PanelType *panel_type)
Definition screen.cc:685
void BKE_screen_remove_double_scrverts(bScreen *screen)
Definition screen.cc:851
bool BKE_spacetype_exists(int spaceid)
Definition screen.cc:393
bool BKE_screen_blend_read_data(BlendDataReader *reader, bScreen *screen)
Definition screen.cc:238
void BKE_screen_area_free(ScrArea *area)
Definition screen.cc:783
ARegionDrawLockFlags
@ REGION_DRAW_LOCK_NONE
@ REGION_DRAW_LOCK_ALL
@ REGION_DRAW_LOCK_BAKING
@ REGION_DRAW_LOCK_RENDER
void BKE_screen_view3d_shading_init(View3DShading *shading)
Definition screen.cc:1262
bool BKE_screen_is_used(const bScreen *screen) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition screen.cc:1298
void BKE_screen_remove_unused_scredges(bScreen *screen)
Definition screen.cc:917
void BKE_spacedata_draw_locks(ARegionDrawLockFlags lock_flags)
Definition screen.cc:558
void BKE_screen_remove_unused_scrverts(bScreen *screen)
Definition screen.cc:962
void(*)(uiList *ui_list, const bContext *C, PointerRNA *, const char *propname) uiListFilterItemsFunc
void BKE_screen_area_map_free(ScrAreaMap *area_map) ATTR_NONNULL()
Definition screen.cc:799
void BKE_area_region_free(SpaceType *st, ARegion *region)
Definition screen.cc:736
bool BKE_regiontype_uses_category_tabs(const ARegionType *region_type)
Definition screen.cc:407
void BKE_screen_area_map_blend_write(BlendWriter *writer, ScrAreaMap *area_map)
Definition screen.cc:1513
void BKE_area_region_panels_free(ListBaseT< Panel > *panels)
Definition screen.cc:724
void(*)(uiList *ui_list, const bContext *C, ui::Layout &layout, PointerRNA *dataptr, PointerRNA *itemptr, int icon, PointerRNA *active_dataptr, const char *active_propname, int index, int flt_flag) uiListDrawItemFunc
void BKE_screen_view3d_shading_blend_read_data(BlendDataReader *reader, View3DShading *shading)
Definition screen.cc:1352
ARegion ARegion ScrArea ARegion * BKE_screen_find_region_in_space(const bScreen *screen, const SpaceLink *sl, int region_type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
Definition screen.cc:1102
void BKE_spacedata_id_unref(ScrArea *area, SpaceLink *sl, ID *id)
Definition screen.cc:606
bool BKE_screen_scredge_equals(const ScrVert *a1, const ScrVert *a2, const ScrVert *b1, const ScrVert *b2)
Definition screen.cc:826
ARegion * BKE_spacedata_find_region_type(const SpaceLink *slink, const ScrArea *area, int region_type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition screen.cc:572
ARegion * BKE_area_region_copy(const SpaceType *st, const ARegion *region)
Definition screen.cc:479
ScrArea * BKE_screen_area_map_find_area_xy(const ScrAreaMap *areamap, int spacetype, const int xy[2]) ATTR_NONNULL(1
Definition screen.cc:1209
bool BKE_regiontype_uses_categories(const ARegionType *region_type)
Definition screen.cc:398
VecBase< float, 2 > float2
int(*)(const bContext *C, const char *member, bContextDataResult *result) bContextDataCallback
BMesh const char void * data
void BKE_screen_header_alignment_reset(bScreen *screen)
Definition screen.cc:1303
float BKE_screen_view3d_zoom_from_fac(float zoomfac)
Definition screen.cc:1288
void BKE_screen_area_blend_read_after_liblink(BlendLibReader *reader, ID *parent_id, ScrArea *area)
Definition screen.cc:1812
ARegion * BKE_screen_find_region_xy(const bScreen *screen, int regiontype, const int xy[2]) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
Definition screen.cc:1079
void BKE_spacedata_copylist(ListBaseT< SpaceLink > *lb_dst, ListBaseT< SpaceLink > *lb_src)
Definition screen.cc:541
void BKE_screen_runtime_refresh_for_blendfile(bScreen *screen)
Definition screen.cc:638
unsigned char uint8_t
Definition BKE_text.h:79
@ AE_RIGHT_TO_TOPLEFT
@ AE_BOTTOM_TO_TOPLEFT
@ AE_LEFT_TO_TOPRIGHT
@ AE_TOP_TO_BOTTOMRIGHT
std::optional< std::string > BKE_screen_path_to_area(const PointerRNA *ptr)
Definition screen.cc:1156
ScrEdge * BKE_screen_find_edge(const bScreen *screen, ScrVert *v1, ScrVert *v2)
Definition screen.cc:840
void(*)(uiList *ui_list, wmRegionListenerParams *params) uiListListener
ARegionType * BKE_regiontype_from_id(const SpaceType *st, int regionid)
Definition screen.cc:364
SpaceType * BKE_spacetype_from_id(int spaceid)
Definition screen.cc:354
void BKE_area_copy(ScrArea *area_dst, ScrArea *area_src)
Definition screen.cc:999
void BKE_region_callback_refresh_tag_gizmomap_set(void(*callback)(wmGizmoMap *))
Definition screen.cc:618
void BKE_screen_view3d_sync(View3D *v3d, Scene *scene)
Definition screen.cc:1231
LayoutPanelState * BKE_panel_layout_panel_state_ensure(Panel *panel, StringRef idname, bool default_closed)
Definition screen.cc:656
void(*)(uiList *ui_list, const bContext *C, ui::Layout &layout) uiListDrawFilterFunc
ARegion ARegion * BKE_screen_find_main_region_at_xy(const bScreen *screen, int space_type, const int xy[2]) ATTR_NONNULL(1
Definition screen.cc:1267
ARegion * BKE_area_region_new()
Definition screen.cc:522
ScrArea ScrArea * BKE_screen_find_area_xy(const bScreen *screen, int spacetype, const int xy[2]) ATTR_NONNULL(1
Definition screen.cc:1226
ARegion ARegion ScrArea ARegion std::optional< std::string > BKE_screen_path_to_space(const PointerRNA *ptr)
Definition screen.cc:1118
ScrArea ScrArea void BKE_screen_gizmo_tag_refresh(bScreen *screen)
Definition screen.cc:623
void BKE_panel_free(Panel *panel)
Definition screen.cc:702
void BKE_spacedata_freelist(ListBaseT< SpaceLink > *lb)
Definition screen.cc:434
void BKE_screen_view3d_do_versions_250(View3D *v3d, ListBaseT< ARegion > *regions)
Definition screen.cc:1653
ARegionIMECursorState
ARegion * BKE_region_find_in_listbase_by_type(const ListBaseT< ARegion > *regionbase, const int region_type)
Definition screen.cc:987
ARegion * BKE_area_find_region_type(const ScrArea *area, int region_type)
Definition screen.cc:1024
void BKE_screen_foreach_id_screen_area(LibraryForeachIDData *data, ScrArea *area)
Definition screen.cc:179
Span< std::unique_ptr< SpaceType > > BKE_spacetypes_list()
Definition screen.cc:374
void BKE_screen_view3d_scene_sync(bScreen *screen, Scene *scene)
Definition screen.cc:1249
@ PANEL_TYPE_HEADER_EXPAND
@ PANEL_TYPE_DEFAULT_CLOSED
@ PANEL_TYPE_NO_HEADER
@ PANEL_TYPE_LAYOUT_VERT_BAR
@ PANEL_TYPE_NO_SEARCH
@ PANEL_TYPE_INSTANCED
ATTR_WARN_UNUSED_RESULT const BMVert * v2
@ ASSET_SHELF_TYPE_FLAG_STORE_CATALOGS_IN_PREFS
@ ASSET_SHELF_TYPE_FLAG_ACTIVATE_FOR_CONTEXT_MENU
@ ASSET_SHELF_TYPE_FLAG_NO_ASSET_DRAG
@ ASSET_SHELF_TYPE_FLAG_DEFAULT_VISIBLE
void BKE_region_callback_free_gizmomap_set(void(*callback)(wmGizmoMap *))
Definition screen.cc:651
void BKE_spacetype_register(std::unique_ptr< SpaceType > st)
Definition screen.cc:379
void BKE_screen_copy_data(bScreen *screen_dst, const bScreen *screen_src)
Definition screen.cc:815
ARegion ARegion ScrArea * BKE_screen_find_area_from_space(const bScreen *screen, const SpaceLink *sl) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
Definition screen.cc:1091
ScrArea * BKE_screen_find_big_area(const bScreen *screen, int spacetype, short min)
Definition screen.cc:1189
bool BKE_screen_is_fullscreen_area(const bScreen *screen) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition screen.cc:1293
bool BKE_region_panel_categories_search_filter_visible(const ARegion *region)
Definition screen.cc:422
void BKE_spacedata_callback_id_remap_set(void(*func)(ScrArea *area, SpaceLink *sl, ID *old_id, ID *new_id))
Definition screen.cc:601
float BKE_screen_view3d_zoom_to_fac(float camzoom)
Definition screen.cc:1283
void BKE_screen_view3d_shading_blend_write(BlendWriter *writer, View3DShading *shading)
Definition screen.cc:1345
bool ATTR_WARN_UNUSED_RESULT
void ATTR_NONNULL(1, 2)
void BKE_screen_free_data(bScreen *screen)
Definition screen.cc:810
void BKE_spacetypes_free()
Definition screen.cc:349
bool BKE_screen_area_map_blend_read_data(BlendDataReader *reader, ScrAreaMap *area_map)
Definition screen.cc:1766
ARegion * BKE_screen_find_region_type(const bScreen *screen, int region_type) ATTR_NONNULL(1)
Definition screen.cc:1069
signed char int8_t
Definition BKE_text.h:76
void BKE_screen_remove_double_scredges(bScreen *screen)
Definition screen.cc:901
@ AZ_SCROLL_VERT
@ AZ_SCROLL_HOR
ARegion * BKE_area_find_region_xy(const ScrArea *area, int regiontype, const int xy[2]) ATTR_NONNULL(3)
Definition screen.cc:1053
#define min(a, b)
Definition sort.cc:38
void(*) exit(wmWindowManager *wm, ARegion *region)
void(*) draw_overlay(const bContext *C, ARegion *region)
ListBaseT< RegionDrawCB > drawcalls
void(*) on_user_resize(const ARegion *region)
void(*) cursor(wmWindow *win, ScrArea *area, ARegion *region)
ARegionType * prev
ARegionTypeFlag flag
int(*) snap_size(const ARegion *region, int size, int axis)
void(*) on_poll_success(const bContext *C, ARegion *region)
ARegionType * next
void(*) message_subscribe(const wmRegionMessageSubscribeParams *params)
bContextDataCallback context
void(*) free(ARegion *)
ListBaseT< HeaderType > headertypes
void(*) listener(const wmRegionListenerParams *params)
void(*) layout(const bContext *C, ARegion *region)
bool(*) poll(const RegionPollParams *params)
std::optional< ARegionIMECursorState >(*) cursor_ime(wmWindow *win, const ScrArea *area, const ARegion *region, ARegionIMECursor *r_cursor)
ListBaseT< PanelType > paneltypes
void(*) on_view2d_changed(const bContext *C, ARegion *region)
void(*) init(wmWindowManager *wm, ARegion *region)
ARegion * region
bool(*) poll(const bContext *C, const AssetShelfType *shelf_type)
bool(*) asset_poll(const AssetShelfType *shelf_type, const asset_system::AssetRepresentation *asset)
std::string activate_operator
char idname[BKE_ST_MAXNAME]
AssetShelfTypeFlag flag
void(*) draw_context_menu(const bContext *C, const AssetShelfType *shelf_type, const asset_system::AssetRepresentation *asset, ui::Layout &layout)
ExtensionRNA rna_ext
HeaderType * next
bool(*) poll(const bContext *C, HeaderType *ht)
char idname[BKE_ST_MAXNAME]
HeaderType * prev
ui::Layout * layout
HeaderType * type
Vector< LayoutPanelBody > bodies
Vector< LayoutPanelHeader > headers
char idname[BKE_ST_MAXNAME]
bool(*) poll(const bContext *C, MenuType *mt)
char translation_context[BKE_ST_MAXNAME]
char label[BKE_ST_MAXNAME]
ExtensionRNA rna_ext
MenuTypeFlag flag
const char * description
void(*) listener(const wmRegionListenerParams *params)
ui::Layout * layout
MenuType * type
void(*) reorder(bContext *C, Panel *pa, int new_index)
char active_property[BKE_ST_MAXNAME]
char translation_context[BKE_ST_MAXNAME]
short(*) get_list_data_expand_flag(const bContext *C, Panel *pa)
PanelType * parent
ListBaseT< LinkData > children
char parent_id[BKE_ST_MAXNAME]
void(*) listener(const wmRegionListenerParams *params)
void(*) draw_header_preset(const bContext *C, Panel *panel)
char context[BKE_ST_MAXNAME]
const char * description
char pin_to_last_property[BKE_ST_MAXNAME]
char category[BKE_ST_MAXNAME]
void(*) set_list_data_expand_flag(const bContext *C, Panel *pa, short expand_flag)
bool(*) poll(const bContext *C, PanelType *pt)
void(*) draw_header(const bContext *C, Panel *panel)
char idname[BKE_ST_MAXNAME]
ExtensionRNA rna_ext
char label[BKE_ST_MAXNAME]
LayoutPanels layout_panels
bContextStore * context
ListBaseT< LayoutPanelState > * layout_panel_states_storage
PointerRNA * custom_data_ptr
RegionDrawCB * next
RegionDrawCB * prev
const bContext * context
int(*) space_subtype_get(ScrArea *area)
void(*) init(wmWindowManager *wm, ScrArea *area)
void(*) draw_pre(const bContext *C, ScrArea *area)
void(*) foreach_id(SpaceLink *space_link, LibraryForeachIDData *data)
void(*) refresh(const bContext *C, ScrArea *area)
void(*) operatortypes()
ListBaseT< ARegionType > regiontypes
void(*) blend_write(BlendWriter *writer, SpaceLink *space_link)
void(*) free(SpaceLink *sl)
StringRefNull(*) space_name_get(const ScrArea *area)
void(*) exit(wmWindowManager *wm, ScrArea *area)
void(*) blend_read_data(BlendDataReader *reader, SpaceLink *space_link)
void(*) keymap(wmKeyConfig *keyconf)
void(*) space_subtype_item_extend(bContext *C, EnumPropertyItem **item, int *totitem)
void(*) space_subtype_set(ScrArea *area, int value)
void(*) listener(const wmSpaceTypeListenerParams *params)
void(*) blend_read_after_liblink(BlendLibReader *reader, ID *parent_id, SpaceLink *space_link)
int(*) space_icon_get(const ScrArea *area)
char name[BKE_ST_MAXNAME]
void(*) draw_post(const bContext *C, ScrArea *area)
void(*) deactivate(ScrArea *area)
void(*) id_remap(ScrArea *area, SpaceLink *sl, const bke::id::IDRemapper &mappings)
bContextDataCallback context
ListBaseT< wmEventHandler > handlers
Vector< std::function< void(const bContext &C, ui::Block &Block)> > post_block_layout_fns
ListBaseT< ui::Block > uiblocks
ListBaseT< PanelCategoryDyn > panels_category
ARegionQuadviewIndex quadview_index
ARegionRuntimeFlag flag
Map< std::string, ui::Block * > block_name_map
struct ARegionType * type
Set< std::string > categories_search_match
uiListFilterItemsFunc filter_items
uiListType * prev
ExtensionRNA rna_ext
uiListListener listener
uiListType * next
uiListDrawFilterFunc draw_filter
char idname[BKE_ST_MAXNAME]
uiListDrawItemFunc draw_item