Display effect for showing the current time.  
 More...
#include <jbwopreffects.h>
 | 
| virtual std::string  | _getOddTimeFormat (const std::string &format) | 
|   | Get time format.  
  | 
| void  | _displayText (const std::string &text, JBTextAlignment alignment=JBTextAlignment::LEFT) | 
|   | Display text on raw display.  
  | 
 | 
| 
bool  | _evenFormat = false | 
|   | True if even format. 
  | 
| 
std::string  | _rawTimeFormat | 
|   | Raw time format. 
  | 
| 
std::string  | _timeFormatEven | 
|   | Time format for even. 
  | 
| 
std::string  | _timeFormatOdd | 
|   | Time format for odd. 
  | 
| 
JBWoprDevice *  | _woprDevice | 
|   | JBWoprDevice instance. 
  | 
| 
std::string  | _name | 
|   | Name of effect. 
  | 
| 
bool  | _isRunning = false | 
|   | True if effect is running. 
  | 
| 
bool  | _done = true | 
|   | True if effect is done, waiting for duration to end. 
  | 
| 
uint32_t  | _duration = -1 | 
|   | Duration of effect in milliseconds. 
  | 
| 
uint32_t  | _startTime = 0 | 
|   | Start time of effect in milliseconds. 
  | 
| 
uint32_t  | _nextTick = 0 | 
|   | Next tick time in milliseconds. 
  | 
Display effect for showing the current time. 
 
◆ JBWoprTimeDisplayEffect()
  
  
      
        
          | JBWoprTimeDisplayEffect::JBWoprTimeDisplayEffect  | 
          ( | 
          JBWoprDevice * |           woprDevice,  | 
         
        
           | 
           | 
          std::string |           timeFormat = "",  | 
         
        
           | 
           | 
          uint32_t |           duration = -1,  | 
         
        
           | 
           | 
          const std::string & |           name = JBWOPR_EFFECT_NAME_TIME ) | 
         
       
   | 
  
explicit   | 
  
 
Constructor. 
- Parameters
 - 
  
    | woprDevice | JBWoprDevice instance  | 
    | timeFormat | (optional) Time format, default is fetched from config  | 
    | duration | (optional) Duration of effect in milliseconds, default is -1 (infinite)  | 
    | name | (optional) Name of effect  | 
  
   
 
 
◆ _getOddTimeFormat()
  
  
      
        
          | std::string JBWoprTimeDisplayEffect::_getOddTimeFormat  | 
          ( | 
          const std::string & |           format | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
Get time format. 
- Parameters
 - 
  
  
 
- Returns
 - Time format 
 
 
 
◆ loop()
  
  
      
        
          | void JBWoprTimeDisplayEffect::loop  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
 
◆ setTimeFormat()
  
  
      
        
          | void JBWoprTimeDisplayEffect::setTimeFormat  | 
          ( | 
          const std::string & |           timeFormat | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Set time format. 
- Parameters
 - 
  
  
 
 
 
◆ start()
  
  
      
        
          | void JBWoprTimeDisplayEffect::start  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
 
The documentation for this class was generated from the following files: