libyui
 
Loading...
Searching...
No Matches
YColor Class Reference

#include <YColor.h>

Public Member Functions

 YColor (uchar red, uchar green, uchar blue)
 
 YColor ()
 
uchar red () const
 
uchar green () const
 
uchar blue () const
 
bool isUndefined () const
 
bool isDefined () const
 

Detailed Description

Helper class to define an RGB color.

Constructor & Destructor Documentation

◆ YColor() [1/2]

YColor::YColor ( uchar red,
uchar green,
uchar blue )
inline

Constructor.

◆ YColor() [2/2]

YColor::YColor ( )
inline

Default constructor: Create "undefined" color.

Member Function Documentation

◆ blue()

uchar YColor::blue ( ) const
inline

Return the blue component (0: none, 255: bright blue).

◆ green()

uchar YColor::green ( ) const
inline

Return the green component (0: none, 255: bright green).

◆ isDefined()

bool YColor::isDefined ( ) const
inline

Return 'true' if this color is defined.

◆ isUndefined()

bool YColor::isUndefined ( ) const
inline

Return 'true' if this color is undefined.

◆ red()

uchar YColor::red ( ) const
inline

Return the red component (0: none, 255: bright red).


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