gigawidgets 0.3.55
A wxWidgets-style UI library for the Arduino Giga Display Shield.
 
Loading...
Searching...
No Matches
ui::Circle Struct Reference

A circle. More...

#include <circle.hpp>

Inheritance diagram for ui::Circle:
ui::Shape ui::Renderable

Public Member Functions

 Circle (color_t color, radius_t radius, bool fill=false)
 Construct a circle.
 
void renderAt (const Coords &coords, const shader_t &shader) const override
 Display the renderable directly onto the screen.
 
Size getSize () const override
 Get the size of the renderable.
 

Public Attributes

bool fill
 Whether the shape is filled or just an outline.
 
color_t color
 The color of the circle.
 
radius_t radius
 The radius of the circle.
 

Detailed Description

A circle.

Constructor & Destructor Documentation

◆ Circle()

ui::Circle::Circle ( color_t  color,
radius_t  radius,
bool  fill = false 
)

Construct a circle.

Parameters
colorThe circle color.
radiusThe circle radius.
fillWhether to fill the circle or just draw an outline.

Member Function Documentation

◆ getSize()

Size ui::Circle::getSize ( ) const
overridevirtual

Get the size of the renderable.

Returns
The size of the renderable in pixels.

Implements ui::Renderable.

◆ renderAt()

void ui::Circle::renderAt ( const Coords coords,
const shader_t shader 
) const
overridevirtual

Display the renderable directly onto the screen.

Parameters
coordsThe coordinates to render the first pixel [0,0] of the renderable.
shaderAn optional pixel shader to apply to each pixel of the renderable.

Implements ui::Renderable.


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