Blender V5.0
wm_panel_type.cc File Reference
#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 ()
PanelTypeWM_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)

Detailed Description

Panel Registry.

Note
Unlike menu, and other registries, this doesn't own the PanelType.

For popups/popovers only, regions handle panel types by including them in local lists.

Definition in file wm_panel_type.cc.

Function Documentation

◆ get_panel_type_map()

◆ WM_paneltype_add()

◆ WM_paneltype_clear()

void WM_paneltype_clear ( )

Definition at line 74 of file wm_panel_type.cc.

References get_panel_type_map().

Referenced by WM_exit_ex().

◆ WM_paneltype_find()

◆ WM_paneltype_idname_visit_for_search()

void WM_paneltype_idname_visit_for_search ( const bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
const char * edit_text,
blender::FunctionRef< void(StringPropertySearchVisitParams)> visit_fn )

◆ WM_paneltype_init()

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().

◆ WM_paneltype_remove()

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.