|
Blender V5.0
|
#include <cstdio>#include "DNA_windowmanager_types.h"#include "BLI_utildefines.h"#include "BLI_vector_set.hh"#include "BKE_screen.hh"#include "WM_api.hh"Go to the source code of this file.
Functions | |
| static auto & | get_panel_type_map () |
| PanelType * | WM_paneltype_find (const StringRef 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) |
Panel Registry.
For popups/popovers only, regions handle panel types by including them in local lists.
Definition in file wm_panel_type.cc.
|
static |
Definition at line 28 of file wm_panel_type.cc.
References PanelType::idname, and operator()().
Referenced by WM_paneltype_add(), WM_paneltype_clear(), WM_paneltype_find(), WM_paneltype_idname_visit_for_search(), WM_paneltype_init(), and WM_paneltype_remove().
| bool WM_paneltype_add | ( | PanelType * | pt | ) |
Definition at line 55 of file wm_panel_type.cc.
References get_panel_type_map().
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 74 of file wm_panel_type.cc.
References get_panel_type_map().
Referenced by WM_exit_ex().
Definition at line 40 of file wm_panel_type.cc.
References get_panel_type_map(), blender::StringRefBase::is_empty(), 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(), 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 79 of file wm_panel_type.cc.
References get_panel_type_map(), StringPropertySearchVisitParams::info, and StringPropertySearchVisitParams::text.
Referenced by WM_OT_call_panel().
| void WM_paneltype_init | ( | ) |
Called on initialize WM_init().
Definition at line 68 of file wm_panel_type.cc.
References get_panel_type_map().
Referenced by WM_init().
| void WM_paneltype_remove | ( | PanelType * | pt | ) |
Definition at line 61 of file wm_panel_type.cc.
References BLI_assert, get_panel_type_map(), and UNUSED_VARS_NDEBUG.