A wrapper class for fc_color.  
 More...
#include <color.hpp>
A wrapper class for fc_color. 
 
◆ color() [1/4]
Constructs a black, fully transparent color 
 
 
◆ color() [2/4]
◆ color() [3/4]
  
  
      
        
          | fc::color::color  | 
          ( | 
          color const &  | 
          other | ) | 
           | 
         
       
   | 
  
default   | 
  
 
Default copy-constructor for fc::color. 
- Parameters
 - 
  
  
 
 
 
◆ color() [4/4]
  
  
      
        
          | fc::color::color  | 
          ( | 
          uint8_t  | 
          r,  | 
         
        
           | 
           | 
          uint8_t  | 
          g,  | 
         
        
           | 
           | 
          uint8_t  | 
          b,  | 
         
        
           | 
           | 
          uint8_t  | 
          a = 255  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructs a fc::color instance from red, green, blue and alpha components. 
- Parameters
 - 
  
    | r | The red component  | 
    | g | The green component  | 
    | b | The blue component  | 
    | a | The alpha component (default: 255, fully opaque)  | 
  
   
- See also
 - fc_color_set 
 
 
 
◆ r() [1/2]
  
  
      
        
          | uint8_t fc::color::r  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Gets the red component for this color. 
- Returns
 - The red component for this color 
 
 
 
◆ g() [1/2]
  
  
      
        
          | uint8_t fc::color::g  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Gets the green component for this color. 
- Returns
 - The green component for this color 
 
 
 
◆ b() [1/2]
  
  
      
        
          | uint8_t fc::color::b  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Gets the blue component for this color. 
- Returns
 - The blue component for this color 
 
 
 
◆ a() [1/2]
  
  
      
        
          | uint8_t fc::color::a  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Gets the alpha component for this color. 
- Returns
 - The alpha component for this color 
 
 
 
◆ r() [2/2]
  
  
      
        
          | color& fc::color::r  | 
          ( | 
          uint8_t  | 
          v | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Sets the red component for this color. 
- Returns
 - *this 
 
 
 
◆ g() [2/2]
  
  
      
        
          | color& fc::color::g  | 
          ( | 
          uint8_t  | 
          v | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Sets the green component for this color. 
- Returns
 - *this 
 
 
 
◆ b() [2/2]
  
  
      
        
          | color& fc::color::b  | 
          ( | 
          uint8_t  | 
          v | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Sets the blue component for this color. 
- Returns
 - *this 
 
 
 
◆ a() [2/2]
  
  
      
        
          | color& fc::color::a  | 
          ( | 
          uint8_t  | 
          v | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Sets the alpha component for this color. 
- Returns
 - *this 
 
 
 
The documentation for this struct was generated from the following file: