Audacity  3.0.3
Public Types | Public Member Functions | Public Attributes | List of all members
CommonTrackPanelCell::MenuItem Struct Reference

#include <CommonTrackPanelCell.h>

Collaboration diagram for CommonTrackPanelCell::MenuItem:
[legend]

Public Types

using Action = std::function< void(const CommandContext &) >
 

Public Member Functions

 MenuItem ()=default
 
 MenuItem (const Identifier &internal, const TranslatableString &msgid, Action action={}, bool enabled=true)
 

Public Attributes

ComponentInterfaceSymbol symbol
 
Action action
 
bool enabled
 

Detailed Description

Definition at line 50 of file CommonTrackPanelCell.h.

Member Typedef Documentation

◆ Action

using CommonTrackPanelCell::MenuItem::Action = std::function< void(const CommandContext &) >

Definition at line 51 of file CommonTrackPanelCell.h.

Constructor & Destructor Documentation

◆ MenuItem() [1/2]

CommonTrackPanelCell::MenuItem::MenuItem ( )
default

◆ MenuItem() [2/2]

CommonTrackPanelCell::MenuItem::MenuItem ( const Identifier internal,
const TranslatableString msgid,
Action  action = {},
bool  enabled = true 
)
inline

Definition at line 54 of file CommonTrackPanelCell.h.

55  {}, bool enabled = true )
56  : symbol{ internal, msgid }, action{ move(action) }, enabled{ enabled }
57  {}

Member Data Documentation

◆ action

Action CommonTrackPanelCell::MenuItem::action

Definition at line 60 of file CommonTrackPanelCell.h.

◆ enabled

bool CommonTrackPanelCell::MenuItem::enabled

Definition at line 61 of file CommonTrackPanelCell.h.

◆ symbol

ComponentInterfaceSymbol CommonTrackPanelCell::MenuItem::symbol

Definition at line 59 of file CommonTrackPanelCell.h.


The documentation for this struct was generated from the following file:
CommonTrackPanelCell::MenuItem::symbol
ComponentInterfaceSymbol symbol
Definition: CommonTrackPanelCell.h:59
CommonTrackPanelCell::MenuItem::action
Action action
Definition: CommonTrackPanelCell.h:60
CommonTrackPanelCell::MenuItem::enabled
bool enabled
Definition: CommonTrackPanelCell.h:61