|
Blender
V2.93
|
#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) |
Variables | |
| static GHash * | menutypes_hash = NULL |
Menu Registry.
Definition in file wm_menu_type.c.
| bool WM_menutype_add | ( | MenuType * | mt | ) |
Definition at line 65 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(), recent_files_menu_register(), and view3d_buttons_register().
| MenuType* WM_menutype_find | ( | const char * | idname, |
| bool | quiet | ||
| ) |
Definition at line 44 of file wm_menu_type.c.
References BLI_ghash_lookup(), menutypes_hash, and NULL.
Referenced by 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().
| void WM_menutype_free | ( | void | ) |
Definition at line 87 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().
| void WM_menutype_freelink | ( | MenuType * | mt | ) |
Definition at line 72 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_init | ( | void | ) |
Definition at line 81 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 60 of file wm_menu_type.c.
References BLI_ghashIterator_init(), and menutypes_hash.
Referenced by menu_items_from_ui_create().
Definition at line 102 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(), and UI_popup_menu_invoke().
Definition at line 42 of file wm_menu_type.c.
Referenced by WM_menutype_add(), WM_menutype_find(), WM_menutype_free(), WM_menutype_freelink(), WM_menutype_init(), and WM_menutype_iter().