Blender  V3.3
Functions | Variables
wm_panel_type.c File Reference
#include <stdio.h>
#include "BLI_sys_types.h"
#include "DNA_windowmanager_types.h"
#include "BLI_ghash.h"
#include "BLI_utildefines.h"
#include "BKE_screen.h"
#include "WM_api.h"

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)
 
void WM_paneltype_clear (void)
 
void WM_paneltype_idname_visit_for_search (const bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), const char *UNUSED(edit_text), StringPropertySearchVisitFunc visit_fn, void *visit_user_data)
 

Variables

static GHashg_paneltypes_hash = NULL
 

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.c.

Function Documentation

◆ WM_paneltype_add()

bool WM_paneltype_add ( PanelType pt)

Definition at line 44 of file wm_panel_type.c.

References BLI_ghash_insert(), g_paneltypes_hash, and PanelType::idname.

Referenced by graph_buttons_register().

◆ WM_paneltype_clear()

void WM_paneltype_clear ( void  )

Definition at line 64 of file wm_panel_type.c.

References BLI_ghash_free(), g_paneltypes_hash, and NULL.

Referenced by WM_exit_ex().

◆ WM_paneltype_find()

PanelType* WM_paneltype_find ( const char *  idname,
bool  quiet 
)

◆ WM_paneltype_idname_visit_for_search()

void WM_paneltype_idname_visit_for_search ( const bContext UNUSEDC,
PointerRNA UNUSEDptr,
PropertyRNA UNUSEDprop,
const char *  UNUSEDedit_text,
StringPropertySearchVisitFunc  visit_fn,
void visit_user_data 
)

◆ WM_paneltype_init()

void WM_paneltype_init ( void  )

Called on initialize WM_init().

Definition at line 58 of file wm_panel_type.c.

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

GHash* g_paneltypes_hash = NULL
static