|
MōBrowser API
|
Public Member Functions | |
| CustomMenuItem (std::string title, CustomMenuItemAction action, Shortcut shortcut, bool enabled=true) | |
| CustomMenuItemAction | action () const |
| Shortcut | shortcut () const |
| void | setShortcut (Shortcut shortcut) |
Public Member Functions inherited from mobrowser::BaseCustomMenuItem | |
| int32_t | id () const |
| void | setTitle (const std::string &title) |
| std::string | title () const |
| void | setEnabled (bool enabled) |
| bool | isEnabled () const |
Public Member Functions inherited from mobrowser::MenuItem | |
| MenuItemType | type () const |
Static Public Member Functions | |
| static std::shared_ptr< CustomMenuItem > | create (std::string title, CustomMenuItemAction action, Shortcut shortcut, bool enabled=true) |
| static std::shared_ptr< CustomMenuItem > | cast (std::shared_ptr< MenuItem > item) |
| static std::shared_ptr< CustomMenuItem > | fromId (int32_t id) |
Protected Member Functions | |
| CustomMenuItem (MenuItemType type, std::string title, CustomMenuItemAction action, Shortcut shortcut, bool enabled=true) | |
Protected Member Functions inherited from mobrowser::BaseCustomMenuItem | |
| BaseCustomMenuItem (MenuItemType type, std::string title, bool enabled=true) | |
Protected Member Functions inherited from mobrowser::MenuItem | |
| MenuItem (MenuItemType type) | |