neoGFX
Cross-platform C++ app/game engine
color.hpp File Reference

Go to the source code of this file.

Classes

class  neogfx::color
 
struct  neogfx::color::matrix
 
class  neogfx::gradient
 
struct  neogfx::gradient::bad_position
 

Namespaces

 neogfx
 

Typedefs

typedef std::optional< color > neogfx::optional_color
 
typedef std::optional< gradient > neogfx::optional_gradient
 
typedef neolib::variant< color, gradient > neogfx::color_or_gradient
 
typedef std::optional< color_or_gradient > neogfx::optional_color_or_gradient
 

Enumerations

enum  neogfx::gradient_direction : uint32_t {
  neogfx::gradient_direction::Vertical, neogfx::gradient_direction::Horizontal, neogfx::gradient_direction::Diagonal, neogfx::gradient_direction::Rectangular,
  neogfx::gradient_direction::Radial
}
 
enum  neogfx::gradient_shape : uint32_t { neogfx::gradient_shape::Ellipse, neogfx::gradient_shape::Circle }
 
enum  neogfx::gradient_size : uint32_t { neogfx::gradient_size::ClosestSide, neogfx::gradient_size::FarthestSide, neogfx::gradient_size::ClosestCorner, neogfx::gradient_size::FarthestCorner }
 

Functions

color neogfx::operator+ (const color &aLeft, color::component aRight)
 
color neogfx::operator- (const color &aLeft, color::component aRight)
 
color neogfx::operator* (const color &aLeft, double aCoefficient)
 
template<typename Elem , typename Traits >
std::basic_ostream< Elem, Traits > & neogfx::operator<< (std::basic_ostream< Elem, Traits > &aStream, const color &aColor)