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