| DISTRHO Plugin Framework
    | 
#include <Geometry.hpp>
| Public Member Functions | |
| Circle () noexcept | |
| Circle (const T &x, const T &y, const float size, const uint numSegments=300) | |
| Circle (const Point< T > &pos, const float size, const uint numSegments=300) | |
| Circle (const Circle< T > &cir) noexcept | |
| const T & | getX () const noexcept | 
| const T & | getY () const noexcept | 
| const Point< T > & | getPos () const noexcept | 
| void | setX (const T &x) noexcept | 
| void | setY (const T &y) noexcept | 
| void | setPos (const T &x, const T &y) noexcept | 
| void | setPos (const Point< T > &pos) noexcept | 
| float | getSize () const noexcept | 
| void | setSize (const float size) noexcept | 
| uint | getNumSegments () const noexcept | 
| void | setNumSegments (const uint num) | 
| void | draw (const GraphicsContext &context) | 
| void | drawOutline (const GraphicsContext &context, T lineWidth=1) | 
| Circle< T > & | operator= (const Circle< T > &cir) noexcept | 
| bool | operator== (const Circle< T > &cir) const noexcept | 
| bool | operator!= (const Circle< T > &cir) const noexcept | 
| void | draw () | 
| void | drawOutline () | 
DGL Circle class.
This class describes a circle, defined by position, size and a minimum of 3 segments.
TODO: report if circle starts at top-left, bottom-right or center. and size grows from which point?
| Circle< T >::Circle | ( | const T & | x, | 
| const T & | y, | ||
| const float | size, | ||
| const uint | numSegments = 300 | ||
| ) | 
Constructor using custom X, Y and size values.
| Circle< T >::Circle | ( | const Point< T > & | pos, | 
| const float | size, | ||
| const uint | numSegments = 300 | ||
| ) | 
Constructor using custom position and size values.
Constructor using another Circle class values.
| 
 | noexcept | 
Get X value.
| 
 | noexcept | 
Get Y value.
| 
 | noexcept | 
Set X value to x.
| 
 | noexcept | 
Set Y value to y.
| 
 | noexcept | 
Set X and Y values to x and y respectively.
Set X and Y values according to pos.
| 
 | noexcept | 
Get size.
| 
 | noexcept | 
Set size.
| 
 | noexcept | 
Get the current number of line segments that make this circle.
| void Circle< T >::setNumSegments | ( | const uint | num | ) | 
Set the number of line segments that will make this circle.
| void Circle< T >::draw | ( | const GraphicsContext & | context | ) | 
Draw this circle using the provided graphics context.
| void Circle< T >::drawOutline | ( | const GraphicsContext & | context, | 
| T | lineWidth = 1 | ||
| ) | 
Draw lines (outline of this circle) using the provided graphics context, optionally specifying line width.
| void Circle< T >::draw | ( | ) | 
Draw this circle using the current OpenGL state.
DEPRECATED Please use draw(const GraphicsContext&) instead. 
| void Circle< T >::drawOutline | ( | ) | 
Draw lines (outline of this circle) using the current OpenGL state.
DEPRECATED Please use drawOutline(const GraphicsContext&,T) instead. 
 1.8.17
 1.8.17