Blender V5.3
file_banner.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_array.hh"
12#include "BLI_function_ref.hh"
13
14namespace blender {
15
16struct SpaceFile;
17namespace ui {
18struct Layout;
19}
20
21struct BannerType {
22 bool (*poll)(const SpaceFile &);
23 void (*layout)(const SpaceFile &, ui::Layout &);
24};
25
26/* To be called before updating the layout and drawing. */
27void file_banners_update(const SpaceFile &sfile);
29 FunctionRef<void(const BannerType &)> fn);
30
32
36
37} // namespace blender
BMesh Iterators.
Array< BannerType > banner_types
BannerType remote_libraries_online_access_required_banner
void file_banners_for_first_visible(const SpaceFile &sfile, FunctionRef< void(const BannerType &)> fn)
void file_banners_update(const SpaceFile &sfile)
void(*) layout(const SpaceFile &, ui::Layout &)
bool(*) poll(const SpaceFile &)