FastLED 3.9.15
Loading...
Searching...
No Matches
title.cpp.hpp
Go to the documentation of this file.
1#include "fl/ui/title.h"
2#include "fl/stl/noexcept.h"
3
4namespace fl {
5
6#if FASTLED_USE_JSON_UI
7// JsonTitleImpl takes (name, text) where text defaults to name for the simple
8// const-char* UITitle ctor. Both arguments are const-ref and are copied into
9// the internal JsonUiTitleInternal, so we pass two short-lived fl::string
10// temporaries built from the same C-string source.
11UITitle::UITitle(const char *name) FL_NOEXCEPT : mImpl(fl::string(name), fl::string(name)) {}
12#else
13UITitle::UITitle(const char *name) FL_NOEXCEPT : mImpl(name) {}
14#endif
15
17
18} // namespace fl
UITitle(const char *name) FL_NOEXCEPT
Definition title.cpp.hpp:13
UITitleImpl mImpl
Definition title.h:42
~UITitle() FL_NOEXCEPT
Definition title.cpp.hpp:16
Base definition for an LED controller.
Definition crgb.hpp:179
#define FL_NOEXCEPT