The Battle for Wesnoth  1.15.0+dev
Public Member Functions | Public Attributes | List of all members
tod_color Struct Reference

Small struct to store and manipulate ToD color adjusts. More...

#include <time_of_day.hpp>

Public Member Functions

 tod_color (int red=0, int green=0, int blue=0)
 
bool operator== (const tod_color &o) const
 
bool is_zero () const
 
bool operator!= (const tod_color &o) const
 
tod_color operator+ (const tod_color &o) const
 

Public Attributes

int r
 
int g
 
int b
 

Detailed Description

Small struct to store and manipulate ToD color adjusts.

Definition at line 28 of file time_of_day.hpp.

Constructor & Destructor Documentation

◆ tod_color()

tod_color::tod_color ( int  red = 0,
int  green = 0,
int  blue = 0 
)
inlineexplicit

Definition at line 29 of file time_of_day.hpp.

Referenced by operator+().

Member Function Documentation

◆ is_zero()

bool tod_color::is_zero ( ) const
inline

Definition at line 37 of file time_of_day.hpp.

References b, g, and r.

◆ operator!=()

bool tod_color::operator!= ( const tod_color o) const
inline

Definition at line 40 of file time_of_day.hpp.

References operator==().

◆ operator+()

tod_color tod_color::operator+ ( const tod_color o) const
inline

Definition at line 43 of file time_of_day.hpp.

References b, g, r, and tod_color().

◆ operator==()

bool tod_color::operator== ( const tod_color o) const
inline

Definition at line 34 of file time_of_day.hpp.

References b, g, and r.

Referenced by operator!=().

Member Data Documentation

◆ b

int tod_color::b

◆ g

int tod_color::g

◆ r

int tod_color::r

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