Blender
V3.3
|
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "DNA_userdef_types.h"
#include "BKE_blender_user_menu.h"
#include "BKE_idprop.h"
Go to the source code of this file.
Functions | |
Menu Type | |
bUserMenu * | BKE_blender_user_menu_find (ListBase *lb, char space_type, const char *context) |
bUserMenu * | BKE_blender_user_menu_ensure (ListBase *lb, char space_type, const char *context) |
Menu Item | |
bUserMenuItem * | BKE_blender_user_menu_item_add (ListBase *lb, int type) |
void | BKE_blender_user_menu_item_free (bUserMenuItem *umi) |
void | BKE_blender_user_menu_item_free_list (ListBase *lb) |
User defined menu API.
Definition in file blender_user_menu.c.
Definition at line 35 of file blender_user_menu.c.
References BKE_blender_user_menu_find(), BLI_addhead(), blender::compositor::context, bUserMenu::context, MEM_callocN, NULL, bUserMenu::space_type, and STRNCPY.
Referenced by ED_screen_user_menu_ensure().
Definition at line 25 of file blender_user_menu.c.
References blender::compositor::context, LISTBASE_FOREACH, NULL, and STREQ.
Referenced by BKE_blender_user_menu_ensure(), and ED_screen_user_menus_find().
bUserMenuItem* BKE_blender_user_menu_item_add | ( | ListBase * | lb, |
int | type | ||
) |
Definition at line 53 of file blender_user_menu.c.
References BLI_addtail(), BLI_assert, MEM_callocN, size(), type, bUserMenuItem::type, USER_MENU_TYPE_MENU, USER_MENU_TYPE_OPERATOR, USER_MENU_TYPE_PROP, and USER_MENU_TYPE_SEP.
Referenced by ED_screen_user_menu_item_add_menu(), ED_screen_user_menu_item_add_operator(), and ED_screen_user_menu_item_add_prop().
void BKE_blender_user_menu_item_free | ( | bUserMenuItem * | umi | ) |
Definition at line 80 of file blender_user_menu.c.
References IDP_FreeProperty(), MEM_freeN, bUserMenuItem_Op::prop, bUserMenuItem::type, and USER_MENU_TYPE_OPERATOR.
Referenced by BKE_blender_user_menu_item_free_list(), and ED_screen_user_menu_item_remove().
Definition at line 91 of file blender_user_menu.c.
References BKE_blender_user_menu_item_free(), BLI_listbase_clear(), and ListBase::first.
Referenced by userdef_free_user_menus().