Blender V5.0
ED_asset_shelf.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <memory>
12
13struct ARegion;
14struct ARegionType;
15struct AssetShelf;
17struct AssetShelfType;
18struct BlendDataReader;
19struct BlendWriter;
20struct Main;
21struct RegionPollParams;
22struct ScrArea;
23struct bContext;
27struct wmWindowManager;
28
29namespace blender {
30class StringRef;
31class StringRefNull;
32} // namespace blender
33
35
36/* -------------------------------------------------------------------- */
47
49
51void *region_duplicate(void *regiondata);
52void region_free(ARegion *region);
54int region_snap(const ARegion *region, int size, int axis);
55void region_on_user_resize(const ARegion *region);
58void region_layout(const bContext *C, ARegion *region);
59void region_draw(const bContext *C, ARegion *region);
60void region_on_poll_success(const bContext *C, ARegion *region);
62void region_blend_write(BlendWriter *writer, ARegion *region);
64
66void header_region(const bContext *C, ARegion *region);
69void types_register(ARegionType *region_type, const int space_type);
70
72
73/* -------------------------------------------------------------------- */
76
77void type_register(std::unique_ptr<AssetShelfType> type);
78void type_unregister(const AssetShelfType &shelf_type);
85bool type_poll_for_popup(const bContext &C, const AssetShelfType *shelf_type);
87
89
90/* -------------------------------------------------------------------- */
93
94void type_popup_unlink(const AssetShelfType &shelf_type);
95void ensure_asset_library_fetched(const bContext &C, const AssetShelfType &shelf_type);
96
98
99/* -------------------------------------------------------------------- */
100
101void type_unlink(const Main &bmain, const AssetShelfType &shelf_type);
102
103int tile_width(const AssetShelfSettings &settings);
104int tile_height(const AssetShelfSettings &settings);
105
107
111void show_catalog_in_visible_shelves(const bContext &C, const StringRefNull catalog_path);
112
113int context(const bContext *C, const char *member, bContextDataResult *result);
114
115} // namespace blender::ed::asset::shelf
#define C
Definition RandGen.cpp:29
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
void header_region(const bContext *C, ARegion *region)
AssetShelfType * type_find_from_idname(StringRef idname)
void region_init(wmWindowManager *wm, ARegion *region)
void region_blend_read_data(BlendDataReader *reader, ARegion *region)
void type_popup_unlink(const AssetShelfType &shelf_type)
void types_register(ARegionType *region_type, const int space_type)
void region_listen(const wmRegionListenerParams *params)
void region_on_poll_success(const bContext *C, ARegion *region)
void header_region_listen(const wmRegionListenerParams *params)
void type_unregister(const AssetShelfType &shelf_type)
void region_blend_write(BlendWriter *writer, ARegion *region)
void type_unlink(const Main &bmain, const AssetShelfType &shelf_type)
int tile_height(const AssetShelfSettings &settings)
void region_on_user_resize(const ARegion *region)
int context(const bContext *C, const char *member, bContextDataResult *result)
int tile_width(const AssetShelfSettings &settings)
int region_snap(const ARegion *region, int size, int axis)
void type_register(std::unique_ptr< AssetShelfType > type)
void show_catalog_in_visible_shelves(const bContext &C, const StringRefNull catalog_path)
void * region_duplicate(void *regiondata)
bool type_poll_for_popup(const bContext &C, const AssetShelfType *shelf_type)
void ensure_asset_library_fetched(const bContext &C, const AssetShelfType &shelf_type)
AssetShelf * active_shelf_from_area(const ScrArea *area)
bool regions_poll(const RegionPollParams *params)
void header_region_init(wmWindowManager *wm, ARegion *region)
void region_draw(const bContext *C, ARegion *region)
void region_message_subscribe(const wmRegionMessageSubscribeParams *params)
void region_layout(const bContext *C, ARegion *region)
void region_free(ARegion *region)