Ardour  9.0-pre0-582-g084a23a80d
Gtkmm2ext::HSV Struct Reference

#include <colors.h>

Public Member Functions

 HSV ()
 
 HSV (double h, double s, double v, double a=1.0)
 
 HSV (Color)
 
std::string to_string () const
 
bool is_gray () const
 
Color color () const
 
 operator Color () const
 
HSV mod (SVAModifier const &svam)
 
HSV operator+ (const HSV &) const
 
HSV operator- (const HSV &) const
 
HSVoperator= (Color)
 
HSVoperator= (const std::string &)
 
bool operator== (const HSV &other)
 
double distance (const HSV &other) const
 
HSV delta (const HSV &other) const
 
HSV darker (double factor=1.3) const
 
HSV lighter (double factor=0.7) const
 
HSV shade (double factor) const
 
HSV mix (const HSV &other, double amt) const
 
HSV opposite () const
 
HSV complement () const
 
HSV bw_text () const
 
HSV text () const
 
HSV selected () const
 
HSV outline () const
 
void print (std::ostream &) const
 

Public Attributes

double h
 
double s
 
double v
 
double a
 

Protected Member Functions

void clamp ()
 

Detailed Description

Definition at line 96 of file colors.h.

Constructor & Destructor Documentation

◆ HSV() [1/3]

Gtkmm2ext::HSV::HSV ( )

◆ HSV() [2/3]

Gtkmm2ext::HSV::HSV ( double  h,
double  s,
double  v,
double  a = 1.0 
)

◆ HSV() [3/3]

Gtkmm2ext::HSV::HSV ( Color  )

Member Function Documentation

◆ bw_text()

HSV Gtkmm2ext::HSV::bw_text ( ) const

◆ clamp()

void Gtkmm2ext::HSV::clamp ( )
protected

◆ color()

Color Gtkmm2ext::HSV::color ( ) const
inline

Definition at line 110 of file colors.h.

◆ complement()

HSV Gtkmm2ext::HSV::complement ( ) const
inline

Definition at line 133 of file colors.h.

◆ darker()

HSV Gtkmm2ext::HSV::darker ( double  factor = 1.3) const

◆ delta()

HSV Gtkmm2ext::HSV::delta ( const HSV other) const

◆ distance()

double Gtkmm2ext::HSV::distance ( const HSV other) const

◆ is_gray()

bool Gtkmm2ext::HSV::is_gray ( ) const

◆ lighter()

HSV Gtkmm2ext::HSV::lighter ( double  factor = 0.7) const

◆ mix()

HSV Gtkmm2ext::HSV::mix ( const HSV other,
double  amt 
) const

◆ mod()

HSV Gtkmm2ext::HSV::mod ( SVAModifier const &  svam)

◆ operator Color()

Gtkmm2ext::HSV::operator Color ( ) const
inline

Definition at line 111 of file colors.h.

◆ operator+()

HSV Gtkmm2ext::HSV::operator+ ( const HSV ) const

◆ operator-()

HSV Gtkmm2ext::HSV::operator- ( const HSV ) const

◆ operator=() [1/2]

HSV& Gtkmm2ext::HSV::operator= ( Color  )

◆ operator=() [2/2]

HSV& Gtkmm2ext::HSV::operator= ( const std::string &  )

◆ operator==()

bool Gtkmm2ext::HSV::operator== ( const HSV other)

◆ opposite()

HSV Gtkmm2ext::HSV::opposite ( ) const

◆ outline()

HSV Gtkmm2ext::HSV::outline ( ) const

◆ print()

void Gtkmm2ext::HSV::print ( std::ostream &  ) const

◆ selected()

HSV Gtkmm2ext::HSV::selected ( ) const

◆ shade()

HSV Gtkmm2ext::HSV::shade ( double  factor) const

◆ text()

HSV Gtkmm2ext::HSV::text ( ) const

◆ to_string()

std::string Gtkmm2ext::HSV::to_string ( ) const

Member Data Documentation

◆ a

double Gtkmm2ext::HSV::a

Definition at line 105 of file colors.h.

◆ h

double Gtkmm2ext::HSV::h

Definition at line 102 of file colors.h.

◆ s

double Gtkmm2ext::HSV::s

Definition at line 103 of file colors.h.

◆ v

double Gtkmm2ext::HSV::v

Definition at line 104 of file colors.h.


The documentation for this struct was generated from the following file: