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

An ellipse. More...

#include <ellipse.hpp>

Inheritance diagram for ui::Ellipse:
ui::Shape ui::Renderable

Public Member Functions

 Ellipse (color_t color, radius_t radius1, radius_t radius2, bool fill=false)
 Construct an ellipse.
 
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 ellipse.
 
radius_t radius1
 The first radius of the ellipse.
 
radius_t radius2
 The second radius of the ellipse.
 

Detailed Description

An ellipse.

Constructor & Destructor Documentation

◆ Ellipse()

ui::Ellipse::Ellipse ( color_t  color,
radius_t  radius1,
radius_t  radius2,
bool  fill = false 
)

Construct an ellipse.

Parameters
colorThe ellipse color.
radius1The horizontal radius.
radius2The vertical radius.
fillWhether to fill the ellipse or just draw an outline.

Member Function Documentation

◆ getSize()

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

Get the size of the renderable.

Returns
The size of the renderable in pixels.

Implements ui::Renderable.

◆ renderAt()

void ui::Ellipse::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: