|
Blender V4.3
|
#include <cstdio>#include "BLI_sys_types.h"#include "DNA_windowmanager_types.h"#include "BLI_ghash.h"#include "BLI_utildefines.h"#include "BKE_screen.hh"#include "WM_api.hh"Go to the source code of this file.
Functions | |
| PanelType * | WM_paneltype_find (const char *idname, bool quiet) |
| bool | WM_paneltype_add (PanelType *pt) |
| void | WM_paneltype_remove (PanelType *pt) |
| void | WM_paneltype_init () |
| void | WM_paneltype_clear () |
| void | WM_paneltype_idname_visit_for_search (const bContext *, PointerRNA *, PropertyRNA *, const char *, blender::FunctionRef< void(StringPropertySearchVisitParams)> visit_fn) |
Variables | |
| static GHash * | g_paneltypes_hash = nullptr |
Panel Registry.
For popups/popovers only, regions handle panel types by including them in local lists.
Definition in file wm_panel_type.cc.
| bool WM_paneltype_add | ( | PanelType * | pt | ) |
Definition at line 46 of file wm_panel_type.cc.
References BLI_ghash_insert(), g_paneltypes_hash, and PanelType::idname.
Referenced by blender::ed::asset::shelf::catalog_selector_panel_register(), graph_buttons_register(), and blender::ed::asset::shelf::popover_panel_register().
| void WM_paneltype_clear | ( | ) |
Definition at line 66 of file wm_panel_type.cc.
References BLI_ghash_free(), and g_paneltypes_hash.
Referenced by WM_exit_ex().
| PanelType * WM_paneltype_find | ( | const char * | idname, |
| bool | quiet ) |
Definition at line 30 of file wm_panel_type.cc.
References BLI_ghash_lookup(), g_paneltypes_hash, and printf.
Referenced by blender::ui::asset_shelf_popover_invoke(), blender::ed::asset::shelf::catalog_selector_panel_register(), blender::ed::asset::shelf::popover_panel_register(), ui_block_open_begin(), UI_popover_panel_invoke(), uiItemPopoverPanel(), and wm_call_panel_get_name().
| void WM_paneltype_idname_visit_for_search | ( | const bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const char * | edit_text, | ||
| blender::FunctionRef< void(StringPropertySearchVisitParams)> | visit_fn ) |
Definition at line 71 of file wm_panel_type.cc.
References BLI_ghashIterator_getValue(), g_paneltypes_hash, GHASH_ITER, PanelType::idname, PanelType::label, and StringPropertySearchVisitParams::text.
Referenced by WM_OT_call_panel().
| void WM_paneltype_init | ( | ) |
Called on initialize WM_init().
Definition at line 60 of file wm_panel_type.cc.
References BLI_ghash_str_new_ex(), and g_paneltypes_hash.
Referenced by WM_init().
| void WM_paneltype_remove | ( | PanelType * | pt | ) |
Definition at line 52 of file wm_panel_type.cc.
References BLI_assert, BLI_ghash_remove(), g_paneltypes_hash, PanelType::idname, and UNUSED_VARS_NDEBUG.
|
static |
Definition at line 28 of file wm_panel_type.cc.
Referenced by WM_paneltype_add(), WM_paneltype_clear(), WM_paneltype_find(), WM_paneltype_idname_visit_for_search(), WM_paneltype_init(), and WM_paneltype_remove().