Blender
V3.3
|
#include <stdio.h>
#include "BLI_sys_types.h"
#include "DNA_windowmanager_types.h"
#include "DNA_workspace_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_ghash.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_screen.h"
#include "BKE_workspace.h"
#include "WM_api.h"
#include "WM_types.h"
Go to the source code of this file.
Functions | |
MenuType * | WM_menutype_find (const char *idname, bool quiet) |
void | WM_menutype_iter (GHashIterator *ghi) |
bool | WM_menutype_add (MenuType *mt) |
void | WM_menutype_freelink (MenuType *mt) |
void | WM_menutype_init (void) |
void | WM_menutype_free (void) |
bool | WM_menutype_poll (bContext *C, MenuType *mt) |
void | WM_menutype_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 * | menutypes_hash = NULL |
Menu Registry.
Definition in file wm_menu_type.c.
Definition at line 51 of file wm_menu_type.c.
References BLI_assert, BLI_ghash_insert(), MenuType::description, MenuType::idname, menutypes_hash, and NULL.
Referenced by ED_screen_user_menu_register(), override_idtemplate_menu(), recent_files_menu_register(), undo_history_menu_register(), and view3d_buttons_register().
Definition at line 30 of file wm_menu_type.c.
References BLI_ghash_lookup(), menutypes_hash, and NULL.
Referenced by blender::ed::asset_browser::AssetCatalogTreeViewItem::build_context_menu(), menu_items_from_ui_create(), menu_types_add_from_keymap_items(), screen_user_menu_draw(), template_ID_tabs(), ui_def_but_rna__menu_type(), ui_item_menu_hold(), UI_pie_menu_invoke(), ui_popup_context_menu_for_button(), UI_popup_menu_invoke(), uiItemM(), uiItemMContents(), wm_block_create_about(), wm_block_create_splash(), and wm_call_menu_get_name().
Definition at line 72 of file wm_menu_type.c.
References BLI_ghash_free(), BLI_ghashIterator_getValue(), ExtensionRNA::data, ExtensionRNA::free, GHASH_ITER, MEM_freeN, menutypes_hash, NULL, and MenuType::rna_ext.
Referenced by WM_exit_ex().
Definition at line 58 of file wm_menu_type.c.
References BLI_assert, BLI_ghash_remove(), MenuType::idname, MEM_freeN, menutypes_hash, NULL, and UNUSED_VARS_NDEBUG.
void WM_menutype_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 103 of file wm_menu_type.c.
References BLI_ghashIterator_getValue(), GHASH_ITER, MenuType::idname, StringPropertySearchVisitParams::info, MenuType::label, menutypes_hash, NULL, and StringPropertySearchVisitParams::text.
Referenced by WM_OT_call_menu(), and WM_OT_call_menu_pie().
Definition at line 66 of file wm_menu_type.c.
References BLI_ghash_str_new_ex(), and menutypes_hash.
Referenced by WM_init().
void WM_menutype_iter | ( | GHashIterator * | ghi | ) |
Definition at line 46 of file wm_menu_type.c.
References BLI_ghashIterator_init(), and menutypes_hash.
Referenced by menu_items_from_ui_create().
Definition at line 87 of file wm_menu_type.c.
References BKE_workspace_owner_id_check(), C, CTX_wm_workspace(), NULL, MenuType::owner_id, and MenuType::poll.
Referenced by menu_items_from_ui_create(), UI_pie_menu_invoke(), UI_popup_menu_invoke(), uiItemM_ptr(), and uiItemMContents().
Definition at line 28 of file wm_menu_type.c.
Referenced by WM_menutype_add(), WM_menutype_find(), WM_menutype_free(), WM_menutype_freelink(), WM_menutype_idname_visit_for_search(), WM_menutype_init(), and WM_menutype_iter().