Kage Studio 0.7.230612
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
ColorData Class Reference

#include <color.h>

Inheritance diagram for ColorData:

Public Member Functions

 ColorData ()
 
 ColorData (unsigned int p_r, unsigned int p_g, unsigned int p_b)
 
 ColorData (unsigned int p_r, unsigned int p_g, unsigned int p_b, unsigned int p_a)
 
virtual ~ColorData ()
 
void setR (unsigned int p_r)
 
void setG (unsigned int p_g)
 
void setB (unsigned int p_b)
 
void setA (unsigned int p_a)
 
unsigned int getR () const
 
unsigned int getG () const
 
unsigned int getB () const
 
unsigned int getA () const
 
ColorData clone ()
 
std::string toString ()
 
void copy (ColorData p_color)
 
bool equalTo (ColorData p_color)
 

Protected Attributes

unsigned int R
 
unsigned int G
 
unsigned int B
 
unsigned int A
 

Constructor & Destructor Documentation

◆ ColorData() [1/3]

ColorData::ColorData ( )
Here is the call graph for this function:

◆ ColorData() [2/3]

ColorData::ColorData ( unsigned int  p_r,
unsigned int  p_g,
unsigned int  p_b 
)
Here is the call graph for this function:

◆ ColorData() [3/3]

ColorData::ColorData ( unsigned int  p_r,
unsigned int  p_g,
unsigned int  p_b,
unsigned int  p_a 
)
Here is the call graph for this function:

◆ ~ColorData()

ColorData::~ColorData ( )
virtual

Member Function Documentation

◆ clone()

ColorData ColorData::clone ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ copy()

void ColorData::copy ( ColorData  p_color)
Here is the call graph for this function:

◆ equalTo()

bool ColorData::equalTo ( ColorData  p_color)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getA()

unsigned int ColorData::getA ( ) const
Here is the caller graph for this function:

◆ getB()

unsigned int ColorData::getB ( ) const
Here is the caller graph for this function:

◆ getG()

unsigned int ColorData::getG ( ) const
Here is the caller graph for this function:

◆ getR()

unsigned int ColorData::getR ( ) const
Here is the caller graph for this function:

◆ setA()

void ColorData::setA ( unsigned int  p_a)
Here is the caller graph for this function:

◆ setB()

void ColorData::setB ( unsigned int  p_b)
Here is the caller graph for this function:

◆ setG()

void ColorData::setG ( unsigned int  p_g)
Here is the caller graph for this function:

◆ setR()

void ColorData::setR ( unsigned int  p_r)
Here is the caller graph for this function:

◆ toString()

std::string ColorData::toString ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ A

unsigned int ColorData::A
protected

◆ B

unsigned int ColorData::B
protected

◆ G

unsigned int ColorData::G
protected

◆ R

unsigned int ColorData::R
protected

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