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

#include <CommonTrackPanelCell.h>

Collaboration diagram for CommonTrackPanelCell::MenuItem:

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 54 of file CommonTrackPanelCell.h.

Member Typedef Documentation

◆ Action

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

Definition at line 55 of file CommonTrackPanelCell.h.

Constructor & Destructor Documentation

◆ MenuItem() [1/2]

CommonTrackPanelCell::MenuItem::MenuItem ( )

◆ MenuItem() [2/2]

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

Definition at line 58 of file CommonTrackPanelCell.h.

Member Data Documentation

◆ action

Action CommonTrackPanelCell::MenuItem::action

Definition at line 64 of file CommonTrackPanelCell.h.

◆ enabled

bool CommonTrackPanelCell::MenuItem::enabled

Definition at line 65 of file CommonTrackPanelCell.h.

◆ symbol

ComponentInterfaceSymbol CommonTrackPanelCell::MenuItem::symbol

Definition at line 63 of file CommonTrackPanelCell.h.

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