AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::Hyperlinks::HyperlinkColor Struct Reference

#include "Hyperlinks.h"

Public Member Functions

 HyperlinkColor (uint32 c)
 
bool operator== (uint32 c) const
 

Public Attributes

uint8 const r
 
uint8 const g
 
uint8 const b
 
uint8 const a
 

Detailed Description

Constructor & Destructor Documentation

◆ HyperlinkColor()

Acore::Hyperlinks::HyperlinkColor::HyperlinkColor ( uint32  c)
inline
220: r(c >> 16), g(c >> 8), b(c), a(c >> 24) {}
uint8 const r
Definition: Hyperlinks.h:221
uint8 const g
Definition: Hyperlinks.h:221
uint8 const a
Definition: Hyperlinks.h:221
uint8 const b
Definition: Hyperlinks.h:221

Member Function Documentation

◆ operator==()

bool Acore::Hyperlinks::HyperlinkColor::operator== ( uint32  c) const
inline
223 {
224 if ((c & 0xff) ^ b)
225 return false;
226 if (((c >>= 8) & 0xff) ^ g)
227 return false;
228 if (((c >>= 8) & 0xff) ^ r)
229 return false;
230 if ((c >>= 8) ^ a)
231 return false;
232 return true;
233 }

References a, b, g, and r.

Member Data Documentation

◆ a

uint8 const Acore::Hyperlinks::HyperlinkColor::a

Referenced by operator==().

◆ b

uint8 const Acore::Hyperlinks::HyperlinkColor::b

Referenced by operator==().

◆ g

uint8 const Acore::Hyperlinks::HyperlinkColor::g

Referenced by operator==().

◆ r

uint8 const Acore::Hyperlinks::HyperlinkColor::r

Referenced by operator==().