Blender V4.3
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
9#pragma once
10
11#include <memory>
12
13struct ARegion;
14struct ARegionType;
15struct AssetShelf;
17struct AssetShelfType;
18struct bContext;
20struct BlendDataReader;
21struct BlendWriter;
22struct Main;
23struct RegionPollParams;
25struct wmWindowManager;
26
27namespace blender {
28class StringRef;
29} // namespace blender
30
32
33/* -------------------------------------------------------------------- */
46
48void *region_duplicate(void *regiondata);
49void region_free(ARegion *region);
50void region_init(wmWindowManager *wm, ARegion *region);
51int region_snap(const ARegion *region, int size, int axis);
52void region_on_user_resize(const ARegion *region);
55void region_layout(const bContext *C, ARegion *region);
56void region_draw(const bContext *C, ARegion *region);
57void region_on_poll_success(const bContext *C, ARegion *region);
59void region_blend_write(BlendWriter *writer, ARegion *region);
61
63void header_region(const bContext *C, ARegion *region);
66void types_register(ARegionType *region_type, const int space_type);
67
70/* -------------------------------------------------------------------- */
74void type_register(std::unique_ptr<AssetShelfType> type);
75void type_unregister(const AssetShelfType &shelf_type);
82bool type_poll_for_popup(const bContext &C, const AssetShelfType *shelf_type);
84
87/* -------------------------------------------------------------------- */
91void type_popup_unlink(const AssetShelfType &shelf_type);
92
95/* -------------------------------------------------------------------- */
96
97void type_unlink(const Main &bmain, const AssetShelfType &shelf_type);
98
99int tile_width(const AssetShelfSettings &settings);
100int tile_height(const AssetShelfSettings &settings);
101
103
104int context(const bContext *C, const char *member, bContextDataResult *result);
105
106} // namespace blender::ed::asset::shelf
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
void header_region(const bContext *C, ARegion *region)
void region_init(wmWindowManager *wm, ARegion *region)
AssetShelfType * type_find_from_idname(const StringRef idname)
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 * region_duplicate(void *regiondata)
bool type_poll_for_popup(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)