Blender V5.3
interface_context_menu.cc File Reference
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_screen_types.h"
#include "AS_asset_representation.hh"
#include "BLI_fileops.hh"
#include "BLI_path_utils.hh"
#include "BLI_string_utf8.hh"
#include "BLI_utildefines.hh"
#include "BLT_translation.hh"
#include "BKE_context.hh"
#include "BKE_idprop.hh"
#include "BKE_main.hh"
#include "BKE_screen.hh"
#include "ED_asset.hh"
#include "ED_asset_menu_utils.hh"
#include "ED_buttons.hh"
#include "ED_keyframing.hh"
#include "ED_screen.hh"
#include "UI_abstract_view.hh"
#include "UI_interface_layout.hh"
#include "interface_intern.hh"
#include "RNA_access.hh"
#include "RNA_path.hh"
#include "RNA_prototypes.hh"
#include "WM_api.hh"
#include "WM_types.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ui

Macros

#define USE_KEYMAP_ADD_HACK

Functions

Panel Context Menu
int blender::ui::popup_context_menu_for_panel (bContext *C, ARegion *region, Panel *panel)

Button Context Menu

static int blender::ui::g_kmi_id_hack
static IDProperty * blender::ui::shortcut_property_from_rna (bContext *C, Button *but)
static IDProperty * blender::ui::shortcut_property_from_rna_for_enum (bContext *C, Button *but_parent, Button *but)
static const char * blender::ui::shortcut_get_operator_property (bContext *C, Button *but, IDProperty **r_prop)
static void blender::ui::shortcut_free_operator_property (IDProperty *prop)
static wmKeyMapItem * blender::ui::shortcut_find (bContext *C, const Button *but, const char *idname, IDProperty *prop, const short include_mask, const short exclude_mask, wmKeyMap **r_km)
static void blender::ui::but_shortcut_name_func (bContext *C, void *arg1, int)
static Block * blender::ui::menu_change_shortcut (bContext *C, ARegion *region, void *arg)
static Block * blender::ui::menu_add_shortcut (bContext *C, ARegion *region, void *arg)
static void blender::ui::menu_add_shortcut_cancel (bContext *C, void *arg1)
static void blender::ui::remove_shortcut_func (bContext *C, Button *but)
static bool blender::ui::but_is_user_menu_compatible (bContext *C, Button *but)
static bUserMenuItem * blender::ui::but_user_menu_find (bContext *C, Button *but, bUserMenu *um)
static void blender::ui::but_user_menu_add (bContext *C, Button *but, bUserMenu *um)
static bool blender::ui::but_menu_add_path_operators (Layout &layout, PointerRNA *ptr, PropertyRNA *prop)
static void blender::ui::set_layout_context_from_button (bContext *C, Layout &layout, Button *but)
bool blender::ui::popup_context_menu_for_button (bContext *C, Button *but, const wmEvent *event)

Detailed Description

Generic context popup menus.

Definition in file interface_context_menu.cc.

Macro Definition Documentation

◆ USE_KEYMAP_ADD_HACK

#define USE_KEYMAP_ADD_HACK

Definition at line 56 of file interface_context_menu.cc.