ape  0.5.0
Audio Programming Environment
Public Member Functions | List of all members
ape::Label Class Reference

A Label is a printf-like format string displayed to the user, that is automatically updated in the GUI.

See also
print(), SharedValue
More...

#include <label.h>

Inheritance diagram for ape::Label:
ape::UIObject

Public Member Functions

template<typename... Args>
 Label (const std::string &name, const std::string_view fmt, Args &... args)
 Construct a label. More...
 
 ~Label ()
 

Detailed Description

A Label is a printf-like format string displayed to the user, that is automatically updated in the GUI.

See also
print(), SharedValue

Constructor & Destructor Documentation

◆ Label()

template<typename... Args>
ape::Label::Label ( const std::string &  name,
const std::string_view  fmt,
Args &...  args 
)
inline

Construct a label.

Parameters
nameThe title of the label.
fmtA format string where the nth % char is substituded for the nth SharedValue in the following args . Use two %% to display a single %.
See also
print()
argsA list of SharedValue to be displayed in the fmt

◆ ~Label()

ape::Label::~Label ( )
inline

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