@@ -31,6 +31,10 @@ namespace blender::asset_system {
3131class AssetRepresentation ;
3232}
3333
34+ namespace blender ::ui {
35+ struct Layout ;
36+ } // namespace blender::ui
37+
3438struct ARegion ;
3539struct AssetShelfType ;
3640struct BlendDataReader ;
@@ -55,7 +59,6 @@ struct WorkSpace;
5559struct bContext ;
5660struct bScreen ;
5761struct uiBlock ;
58- struct uiLayout ;
5962struct uiList ;
6063struct wmDrawBuffer ;
6164struct wmGizmoMap ;
@@ -410,8 +413,8 @@ struct LayoutPanelBody {
410413};
411414
412415/* *
413- * "Layout Panels" are panels which are defined as part of the #uiLayout . As such they have a
414- * specific place in the layout and can not be freely dragged around like top level panels.
416+ * "Layout Panels" are panels which are defined as part of the #blender::ui::Layout . As such they
417+ * have a specific place in the layout and can not be freely dragged around like top level panels.
415418 *
416419 * This struct gathers information about the layout panels created by layout code. This is then
417420 * used for example drawing the backdrop of nested panels and to support opening and closing
@@ -523,7 +526,7 @@ struct ARegionRuntime {
523526/* * Draw an item in the `ui_list`. */
524527using uiListDrawItemFunc = void (*)(uiList *ui_list,
525528 const bContext *C,
526- uiLayout *layout,
529+ blender::ui::Layout *layout,
527530 PointerRNA *dataptr,
528531 PointerRNA *itemptr,
529532 int icon,
@@ -533,7 +536,9 @@ using uiListDrawItemFunc = void (*)(uiList *ui_list,
533536 int flt_flag);
534537
535538/* * Draw the filtering part of an uiList. */
536- using uiListDrawFilterFunc = void (*)(uiList *ui_list, const bContext *C, uiLayout *layout);
539+ using uiListDrawFilterFunc = void (*)(uiList *ui_list,
540+ const bContext *C,
541+ blender::ui::Layout *layout);
537542
538543/* * Filter items of an uiList. */
539544using uiListFilterItemsFunc = void (*)(uiList *ui_list,
@@ -582,7 +587,7 @@ struct Header {
582587 /* * Runtime. */
583588 HeaderType *type;
584589 /* * Runtime for drawing. */
585- uiLayout *layout;
590+ blender::ui::Layout *layout;
586591};
587592
588593/* Menu types. */
@@ -628,7 +633,7 @@ struct Menu {
628633 /* * Runtime. */
629634 MenuType *type;
630635 /* * Runtime for drawing. */
631- uiLayout *layout;
636+ blender::ui::Layout *layout;
632637};
633638
634639/* Asset shelf types. */
@@ -682,7 +687,7 @@ struct AssetShelfType {
682687 void (*draw_context_menu)(const bContext *C,
683688 const AssetShelfType *shelf_type,
684689 const blender::asset_system::AssetRepresentation *asset,
685- uiLayout *layout);
690+ blender::ui::Layout *layout);
686691
687692 const AssetWeakReference *(*get_active_asset)(const AssetShelfType *shelf_type);
688693
0 commit comments