JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::RenderingHelpers::GradientPixelIterators::Linear Struct Reference

Iterates the colour of pixels in a linear gradient. More...

#include <juce_RenderingHelpers.h>

Collaboration diagram for juce::RenderingHelpers::GradientPixelIterators::Linear:

Public Types

enum  { numScaleBits = 12 }
 

Public Member Functions

 Linear (const ColourGradient &gradient, const AffineTransform &transform, const PixelARGB *colours, int numColours)
 
PixelARGB getPixel (int x) const noexcept
 
forcedinline void setY (int y) noexcept
 

Public Attributes

double grad
 
bool horizontal
 
PixelARGB linePix
 
const PixelARGB *const lookupTable
 
const int numEntries
 
int scale
 
int start
 
bool vertical
 
double yTerm
 

Detailed Description

Iterates the colour of pixels in a linear gradient.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
numScaleBits 

Constructor & Destructor Documentation

◆ Linear()

juce::RenderingHelpers::GradientPixelIterators::Linear::Linear ( const ColourGradient gradient,
const AffineTransform transform,
const PixelARGB colours,
int  numColours 
)
inline

Member Function Documentation

◆ getPixel()

PixelARGB juce::RenderingHelpers::GradientPixelIterators::Linear::getPixel ( int  x) const
inlinenoexcept

◆ setY()

forcedinline void juce::RenderingHelpers::GradientPixelIterators::Linear::setY ( int  y)
inlinenoexcept

Member Data Documentation

◆ grad

double juce::RenderingHelpers::GradientPixelIterators::Linear::grad

◆ horizontal

bool juce::RenderingHelpers::GradientPixelIterators::Linear::horizontal

◆ linePix

PixelARGB juce::RenderingHelpers::GradientPixelIterators::Linear::linePix

◆ lookupTable

const PixelARGB* const juce::RenderingHelpers::GradientPixelIterators::Linear::lookupTable

◆ numEntries

const int juce::RenderingHelpers::GradientPixelIterators::Linear::numEntries

◆ scale

int juce::RenderingHelpers::GradientPixelIterators::Linear::scale

◆ start

int juce::RenderingHelpers::GradientPixelIterators::Linear::start

◆ vertical

bool juce::RenderingHelpers::GradientPixelIterators::Linear::vertical

◆ yTerm

double juce::RenderingHelpers::GradientPixelIterators::Linear::yTerm

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