NanoCanvas
Public Types | Public Attributes | List of all members
NanoCanvas::Paint Struct Reference

#include <Paint.hpp>

Public Types

enum  Type {
  Type::Linear, Type::Radial, Type::Box, Type::ImagePattern,
  Type::None
}
 Paint type. More...
 

Public Attributes

enum NanoCanvas::Paint::Type type = Type::None
 
float xx =0.0f
 The type of this paint. More...
 
float yy =0.0f
 
float aa =0.0f
 
float bb =0.0f
 
float cc =0.0f
 
float dd =0.0f
 
int imageID = 0
 The nanovg image id of the image pattern. More...
 
Color sColor = Colors::ZeroColor
 The start color of the gradiant. More...
 
Color eColor = Colors::ZeroColor
 The end color of the gradiant. More...
 

Detailed Description

The Paint can be used as gradiants and image patterns with Canvas::fillStyle

See also
Canvas::fillStyle
+ Collaboration diagram for NanoCanvas::Paint:

Member Enumeration Documentation

Paint type.

Enumerator
Linear 

Liner gradiant.

Radial 

Radial gradiant.

Box 

Box gradiant.

ImagePattern 

Image pattern.

None 

Invalidate paint.

Member Data Documentation

float NanoCanvas::Paint::aa =0.0f
float NanoCanvas::Paint::bb =0.0f
float NanoCanvas::Paint::cc =0.0f
float NanoCanvas::Paint::dd =0.0f
Color NanoCanvas::Paint::eColor = Colors::ZeroColor

The end color of the gradiant.

int NanoCanvas::Paint::imageID = 0

The nanovg image id of the image pattern.

Color NanoCanvas::Paint::sColor = Colors::ZeroColor

The start color of the gradiant.

enum NanoCanvas::Paint::Type NanoCanvas::Paint::type = Type::None
float NanoCanvas::Paint::xx =0.0f

The type of this paint.

float NanoCanvas::Paint::yy =0.0f

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

The documentation was generated by Doxygen

Copyright © 2015 Geequlim. All rights reserved.