Blender V4.5
MenuType Struct Reference

#include <BKE_screen.hh>

Public Attributes

MenuTypenext
 
MenuTypeprev
 
char idname [BKE_ST_MAXNAME]
 
char label [BKE_ST_MAXNAME]
 
char translation_context [BKE_ST_MAXNAME]
 
char owner_id [128]
 
const char * description
 
bool(* poll )(const bContext *C, MenuType *mt)
 
void(* draw )(const bContext *C, Menu *menu)
 
void(* listener )(const wmRegionListenerParams *params)
 
MenuTypeFlag flag
 
ExtensionRNA rna_ext
 

Detailed Description

Definition at line 602 of file BKE_screen.hh.

Member Data Documentation

◆ description

const char* MenuType::description

Definition at line 612 of file BKE_screen.hh.

Referenced by uiLayout::menu(), and WM_menutype_add().

◆ draw

◆ flag

◆ idname

◆ label

◆ listener

void(* MenuType::listener) (const wmRegionListenerParams *params)

Definition at line 618 of file BKE_screen.hh.

Referenced by UI_menutype_draw().

◆ next

MenuType* MenuType::next

Definition at line 603 of file BKE_screen.hh.

◆ owner_id

char MenuType::owner_id[128]

Optional, see: wmOwnerID.

Definition at line 611 of file BKE_screen.hh.

Referenced by WM_menutype_poll().

◆ poll

bool(* MenuType::poll) (const bContext *C, MenuType *mt)

Verify if the menu should draw or not.

Definition at line 615 of file BKE_screen.hh.

Referenced by file_external_operations_menu_register(), override_idtemplate_menu(), ui_popup_context_menu_for_button(), and WM_menutype_poll().

◆ prev

MenuType * MenuType::prev

Definition at line 603 of file BKE_screen.hh.

◆ rna_ext

ExtensionRNA MenuType::rna_ext

RNA integration.

Definition at line 623 of file BKE_screen.hh.

◆ translation_context


The documentation for this struct was generated from the following file: