feat: add menu item role palette
and header
(#45538)
* feat: add menu item role `palette` and `header` * adds comments * refactors new role items to new item types * docs: custom type * docs: note types only available on mac 14+ --------- Co-authored-by: Samuel Maddock <smaddock@slack-corp.com>
This commit is contained in:
parent
2248de847d
commit
b9b96a96f7
10 changed files with 61 additions and 8 deletions
|
@ -116,6 +116,7 @@ class Menu : public gin::Wrappable<Menu>,
|
|||
void SetSublabel(int index, const std::u16string& sublabel);
|
||||
void SetToolTip(int index, const std::u16string& toolTip);
|
||||
void SetRole(int index, const std::u16string& role);
|
||||
void SetCustomType(int index, const std::u16string& customType);
|
||||
void Clear();
|
||||
int GetIndexOfCommandId(int command_id) const;
|
||||
int GetItemCount() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue