Blender V4.3
wm_panel_type.cc File Reference
#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

PanelTypeWM_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 GHashg_paneltypes_hash = nullptr
 

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

◆ WM_paneltype_add()

◆ WM_paneltype_clear()

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

◆ 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 60 of file wm_panel_type.cc.

References BLI_ghash_str_new_ex(), and g_paneltypes_hash.

Referenced by WM_init().

◆ WM_paneltype_remove()

void WM_paneltype_remove ( PanelType * pt)

Variable Documentation

◆ g_paneltypes_hash