wavelength 1.0.0
Loading...
Searching...
No Matches
AvatarPartSet::PartSetting Struct Reference

The choice and the colour of one part. More...

#include <avatarpartset.h>

Public Member Functions

unsigned char GetType () const
void SetType (unsigned char nType)
 Set the index of the choice.
unsigned char GetColor (int nComponent) const
 Report one byte of the colour.
void SetColor (int nComponent, unsigned char nValue)
 Set one byte of the colour.

Detailed Description

The choice and the colour of one part.

Member Function Documentation

◆ GetType()

unsigned char AvatarPartSet::PartSetting::GetType ( ) const
inline
Returns
The index of the choice in the types array, less one.

◆ SetType()

void AvatarPartSet::PartSetting::SetType ( unsigned char nType)
inline

Set the index of the choice.

Parameters
nTypeThe index, less one.

◆ GetColor()

unsigned char AvatarPartSet::PartSetting::GetColor ( int nComponent) const
inline

Report one byte of the colour.

Parameters
nComponentThe component, 0 to 2.
Returns
The byte.

◆ SetColor()

void AvatarPartSet::PartSetting::SetColor ( int nComponent,
unsigned char nValue )
inline

Set one byte of the colour.

Parameters
nComponentThe component, 0 to 2.
nValueThe byte.

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