Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GrColor4f Struct Reference

Similarly, GrColor4f is 4 floats for R, G, B, A, in that order. More...

#include <GrColor.h>

Public Types

enum  Illegal_Constructor { kIllegalConstructor }
 

Public Member Functions

 GrColor4f (float r, float g, float b, float a)
 
 GrColor4f (Illegal_Constructor)
 
GrColor4f modulate (const GrColor4f &x) const
 
GrColor4f mulByScalar (float x) const
 
bool operator== (const GrColor4f &other) const
 
bool operator!= (const GrColor4f &other) const
 
GrColor toGrColor () const
 
SkColor4f toSkColor4f () const
 
GrColor4f opaque () const
 
bool isOpaque () const
 
GrColor4f premul () const
 
GrColor4f unpremul () const
 

Static Public Member Functions

static GrColor4f OpaqueWhite ()
 
static GrColor4f TransparentBlack ()
 
static GrColor4f FromGrColor (GrColor color)
 
static GrColor4f FromSkColor4f (const SkColor4f &color)
 

Public Attributes

float fRGBA [4]
 

Detailed Description

Similarly, GrColor4f is 4 floats for R, G, B, A, in that order.

And like GrColor, whether the color is premultiplied or not depends on the context.


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