Binary Ninja API C++: Menus
Classes | |
| class | ContextMenuManager |
| class | MenuHelper |
◆ ContextMenuManager
Signals | |
| void | onOpen () |
| void | onClose () |
Public Member Functions | |
| ContextMenuManager () | |
| ContextMenuManager (QWidget *parent) | |
| ~ContextMenuManager () | |
| QMenu * | create () |
| MenuInstance * | show (View *view) |
| MenuInstance * | show (QPoint pos, View *view) |
| MenuInstance * | show (Menu *source, UIActionHandler *handler) |
| MenuInstance * | show (QPoint pos, Menu *source, UIActionHandler *handler) |
| bool | isActive () |
◆ ContextMenuManager() [1/2]
|
inline |
◆ ContextMenuManager() [2/2]
| ContextMenuManager::ContextMenuManager | ( | QWidget * | parent | ) |
◆ ~ContextMenuManager()
| ContextMenuManager::~ContextMenuManager | ( | ) |
◆ create()
| QMenu * ContextMenuManager::create | ( | ) |
◆ show() [1/4]
◆ show() [2/4]
◆ show() [3/4]
◆ show() [4/4]
◆ isActive()
|
inline |
◆ onOpen
|
signal |
◆ onClose
|
signal |
◆ MenuHelper
Signals | |
| void | clicked () |
Public Member Functions | |
| MenuHelper () | |
| MenuHelper (QWidget *parent) | |
| void | setBackgroundColorRole (QPalette::ColorRole role) |
| void | setActiveBackgroundColorRole (QPalette::ColorRole role) |
| void | setPressedBackgroundColorRole (QPalette::ColorRole role) |
| void | setForegroundColorRole (QPalette::ColorRole role) |
| void | setActiveForegroundColorRole (QPalette::ColorRole role) |
| void | setPressedForegroundColorRole (QPalette::ColorRole role) |
Protected Slots | |
| virtual void | showMenu ()=0 |
Protected Member Functions | |
| void | enterEvent (QEnterEvent *event) override |
| void | leaveEvent (QEvent *event) override |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| void | updateColors () |
Protected Attributes | |
| Menu | m_menu |
| ContextMenuManager * | m_contextMenuManager |
| QTimer * | m_timer |
| bool | m_active |
| bool | m_pressed |
◆ MenuHelper() [1/2]
|
inline |
◆ MenuHelper() [2/2]
|
explicit |
◆ setBackgroundColorRole()
| void MenuHelper::setBackgroundColorRole | ( | QPalette::ColorRole | role | ) |
◆ setActiveBackgroundColorRole()
| void MenuHelper::setActiveBackgroundColorRole | ( | QPalette::ColorRole | role | ) |
◆ setPressedBackgroundColorRole()
| void MenuHelper::setPressedBackgroundColorRole | ( | QPalette::ColorRole | role | ) |
◆ setForegroundColorRole()
| void MenuHelper::setForegroundColorRole | ( | QPalette::ColorRole | role | ) |
◆ setActiveForegroundColorRole()
| void MenuHelper::setActiveForegroundColorRole | ( | QPalette::ColorRole | role | ) |
◆ setPressedForegroundColorRole()
| void MenuHelper::setPressedForegroundColorRole | ( | QPalette::ColorRole | role | ) |
◆ clicked
|
signal |
◆ showMenu
|
protectedpure virtualslot |
◆ enterEvent()
|
overrideprotected |
◆ leaveEvent()
|
overrideprotected |
◆ mousePressEvent()
|
overrideprotected |
◆ mouseReleaseEvent()
|
overrideprotected |
◆ updateColors()
|
protected |
◆ m_menu
◆ m_contextMenuManager
|
ContextMenuManager* MenuHelper::m_contextMenuManager |
protected |
◆ m_timer
|
QTimer* MenuHelper::m_timer |
protected |
◆ m_active
|
bool MenuHelper::m_active |
protected |
◆ m_pressed
|
bool MenuHelper::m_pressed |
protected |