Lumitronix_Iflex_Pro_Workshop
Library to interact with the iFlexPro
NeoElementsNoSettings.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2 NeoElementsNoSettings provides feature base classes to describe a
3  no settings feature
4 
5 Written by Michael C. Miller.
6 
7 I invest time and resources providing this open source code,
8 please support me by dontating (see https://github.com/Makuna)
9 
10 -------------------------------------------------------------------------
11 This file is part of the LUMITRONIX_iFlex_Workshop library.
12 
13 LumitronixIFlexBus is free software: you can redistribute it and/or modify
14 it under the terms of the GNU Lesser General Public License as
15 published by the Free Software Foundation, either version 3 of
16 the License, or (at your option) any later version.
17 
18 LumitronixIFlexBus is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU Lesser General Public License for more details.
22 
23 You should have received a copy of the GNU Lesser General Public
24 License along with LumitronixIFlex. If not, see
25 <http://www.gnu.org/licenses/>.
26 -------------------------------------------------------------------------*/
27 #pragma once
28 
30 {
31 public:
33  static const size_t SettingsSize = 0;
34 
35  static void applySettings([[maybe_unused]] uint8_t* pData, [[maybe_unused]] size_t sizeData, [[maybe_unused]] const SettingsObject& settings)
36  {
37  }
38 
39  static uint8_t* pixels([[maybe_unused]] uint8_t* pData, [[maybe_unused]] size_t sizeData)
40  {
41  return pData;
42  }
43 
44  static const uint8_t* pixels([[maybe_unused]] const uint8_t* pData, [[maybe_unused]] size_t sizeData)
45  {
46  return pData;
47  }
48 };
Definition: NeoElementsNoSettings.h:30
static uint8_t * pixels([[maybe_unused]] uint8_t *pData, [[maybe_unused]] size_t sizeData)
Definition: NeoElementsNoSettings.h:39
static void applySettings([[maybe_unused]] uint8_t *pData, [[maybe_unused]] size_t sizeData, [[maybe_unused]] const SettingsObject &settings)
Definition: NeoElementsNoSettings.h:35
NeoNoSettings SettingsObject
Definition: NeoElementsNoSettings.h:32
static const uint8_t * pixels([[maybe_unused]] const uint8_t *pData, [[maybe_unused]] size_t sizeData)
Definition: NeoElementsNoSettings.h:44
static const size_t SettingsSize
Definition: NeoElementsNoSettings.h:33
Definition: NeoSettings.h:29