Blender
V3.3
|
#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) |
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 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.
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().
Definition at line 64 of file wm_panel_type.c.
References BLI_ghash_free(), g_paneltypes_hash, and NULL.
Referenced by WM_exit_ex().
Definition at line 28 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_idname_visit_for_search | ( | const bContext * | UNUSEDC, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
const char * | UNUSEDedit_text, | ||
StringPropertySearchVisitFunc | visit_fn, | ||
void * | visit_user_data | ||
) |
Definition at line 69 of file wm_panel_type.c.
References BLI_ghashIterator_getValue(), g_paneltypes_hash, GHASH_ITER, PanelType::idname, StringPropertySearchVisitParams::info, PanelType::label, NULL, and StringPropertySearchVisitParams::text.
Referenced by WM_OT_call_panel().
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().
Definition at line 50 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 26 of file wm_panel_type.c.
Referenced by WM_paneltype_add(), WM_paneltype_clear(), WM_paneltype_find(), WM_paneltype_idname_visit_for_search(), WM_paneltype_init(), and WM_paneltype_remove().