WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WXP::RGB Struct Reference

This struct defines a set of RGB values. More...

#include "../include/RGB.h"

Public Member Functions

 RGB ()
int init ()
int set (float r, float g, float b)
float getRed ()
float getGrn ()
float getBlu ()
bool isOff ()
bool isWhite ()
bool isBlack ()
int print ()

Public Attributes

float red
float grn
float blu

Detailed Description

This struct defines a set of RGB values.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ RGB()

RGB::RGB ( )

Constructor

References init().

Member Function Documentation

◆ getBlu()

float WXP::RGB::getBlu ( )
inline

Returns blue value

References blu.

◆ getGrn()

float WXP::RGB::getGrn ( )
inline

Returns green value

References grn.

◆ getRed()

float WXP::RGB::getRed ( )
inline

Returns red value

References red.

◆ init()

int RGB::init ( )

Initializes the object

References blu, grn, and red.

Referenced by WXP::ImageTool::addColor(), and RGB().

◆ isBlack()

bool RGB::isBlack ( )

Returns true if color is black

References blu, grn, and red.

◆ isOff()

bool RGB::isOff ( )

Returns true if color is off

References blu, grn, and red.

◆ isWhite()

bool RGB::isWhite ( )

Returns true if color is white

References blu, grn, and red.

◆ print()

int RGB::print ( )

Prints the object values

References blu, grn, and red.

◆ set()

int RGB::set ( float r,
float g,
float b )

Sets the values

Parameters
rRed value (0 to 1)
gGreen value (0 to 1)
bBlue value (0 to 1)

References blu, grn, and red.

Member Data Documentation

◆ blu

◆ grn

◆ red


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