cocos2d-x  3.0-beta2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Color4B Struct Reference

RGBA color composed of 4 bytes. More...

#include <ccTypes.h>

Public Member Functions

 Color4B ()
 Color4B (GLubyte _r, GLubyte _g, GLubyte _b, GLubyte _a)
 Color4B ( var _r, var _g, var _b, var _a)
 Color4B ( local _r, local _g, local _b, local _a)
 Color4B (const Color3B &color)
 Color4B (const Color4F &color)
 Color4B ( var color)
 Color4B ( local color)
bool operator== (const Color4B &right) const
var operator== ( var right)
local operator== ( local right)
bool operator== (const Color3B &right) const
var operator== ( var right)
local operator== ( local right)
bool operator== (const Color4F &right) const
var operator== ( var right)
local operator== ( local right)
bool operator!= (const Color4B &right) const
var operator!= ( var right)
local operator!= ( local right)
bool operator!= (const Color3B &right) const
var operator!= ( var right)
local operator!= ( local right)
bool operator!= (const Color4F &right) const
var operator!= ( var right)
local operator!= ( local right)

Public Attributes

GLubyte r
local r
GLubyte g
var g
local g
GLubyte b
var b
local b
GLubyte a
var a
local a

Static Public Attributes

static const Color4B WHITE
var WHITE
local WHITE
static const Color4B YELLOW
var YELLOW
local YELLOW
static const Color4B BLUE
var BLUE
local BLUE
static const Color4B GREEN
var GREEN
local GREEN
static const Color4B RED
var RED
local RED
static const Color4B MAGENTA
var MAGENTA
local MAGENTA
static const Color4B BLACK
var BLACK
local BLACK
static const Color4B ORANGE
var ORANGE
local ORANGE
static const Color4B GRAY
var GRAY
local GRAY

Detailed Description

RGBA color composed of 4 bytes.

Since
v3.0

Constructor & Destructor Documentation

Color4B ( )
var Color4B ( )
local Color4B ( )
Color4B ( GLubyte  _r,
GLubyte  _g,
GLubyte  _b,
GLubyte  _a 
)
var Color4B ( var  _r,
var  _g,
var  _b,
var  _a 
)
local Color4B ( local  _r,
local  _g,
local  _b,
local  _a 
)
Color4B ( const Color3B color)
explicit
var Color4B ( var  color)
explicit
local Color4B ( local  color)
explicit
Color4B ( const Color4F color)
explicit
var Color4B ( var  color)
explicit
local Color4B ( local  color)
explicit

Member Function Documentation

bool operator!= ( const Color4B right) const
bool operator!= ( var  right)
bool operator!= ( local  right)
bool operator!= ( const Color3B right) const
bool operator!= ( var  right)
bool operator!= ( local  right)
bool operator!= ( const Color4F right) const
bool operator!= ( var  right)
bool operator!= ( local  right)
bool operator== ( const Color4B right) const
bool operator== ( var  right)
bool operator== ( local  right)
bool operator== ( const Color3B right) const
bool operator== ( var  right)
bool operator== ( local  right)
bool operator== ( const Color4F right) const
bool operator== ( var  right)
bool operator== ( local  right)

Member Data Documentation

GLubyte a
var a
local a
GLubyte b
var b
local b
const Color4B BLACK
static
var BLACK
static
local BLACK
static
const Color4B BLUE
static
var BLUE
static
local BLUE
static
GLubyte g
var g
local g
const Color4B GRAY
static
var GRAY
static
local GRAY
static
const Color4B GREEN
static
var GREEN
static
local GREEN
static
const Color4B MAGENTA
static
var MAGENTA
static
local MAGENTA
static
const Color4B ORANGE
static
var ORANGE
static
local ORANGE
static
GLubyte r
var r
local r
const Color4B RED
static
var RED
static
local RED
static
const Color4B WHITE
static
var WHITE
static
local WHITE
static
const Color4B YELLOW
static
var YELLOW
static
local YELLOW
static

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