|
Blender
V2.93
|
#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 | |
| 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) |
| void | WM_paneltype_clear (void) |
Variables | |
| static GHash * | g_paneltypes_hash = NULL |
Panel Registry.
For popups/popovers only, regions handle panel types by including them in local lists.
Definition in file wm_panel_type.c.
| bool WM_paneltype_add | ( | PanelType * | pt | ) |
Definition at line 58 of file wm_panel_type.c.
References BLI_ghash_insert(), g_paneltypes_hash, and PanelType::idname.
Referenced by graph_buttons_register().
| void WM_paneltype_clear | ( | void | ) |
Definition at line 79 of file wm_panel_type.c.
References BLI_ghash_free(), g_paneltypes_hash, and NULL.
Referenced by WM_exit_ex().
| PanelType* WM_paneltype_find | ( | const char * | idname, |
| bool | quiet | ||
| ) |
Definition at line 42 of file wm_panel_type.c.
References BLI_ghash_lookup(), g_paneltypes_hash, and NULL.
Referenced by ui_def_but_rna__panel_type(), UI_popover_panel_invoke(), uiItemPopoverPanel(), and wm_call_panel_get_name().
| void WM_paneltype_init | ( | void | ) |
Definition at line 73 of file wm_panel_type.c.
References BLI_ghash_str_new_ex(), and g_paneltypes_hash.
Referenced by WM_init().
| void WM_paneltype_remove | ( | PanelType * | pt | ) |
Definition at line 64 of file wm_panel_type.c.
References BLI_assert, BLI_ghash_remove(), g_paneltypes_hash, PanelType::idname, NULL, and UNUSED_VARS_NDEBUG.
Definition at line 40 of file wm_panel_type.c.
Referenced by WM_paneltype_add(), WM_paneltype_clear(), WM_paneltype_find(), WM_paneltype_init(), and WM_paneltype_remove().