![]() |
Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
|
Class defining the renderer. More...
#include <renderer.h>


Public Member Functions | |
| Renderer (uint32_t width, uint32_t height) | |
| Construct a new Renderer object. | |
| virtual | ~Renderer ()=default |
| Destroy the Renderer object. | |
| virtual void | SetPixel (uint32_t x, uint32_t y)=0 |
| Set the Pixel attribute. | |
| virtual void | SetColour (uint8_t red, uint8_t green, uint8_t blue)=0 |
| Set the Colour attribute. | |
| virtual void | SetColourForeground (uint8_t red, uint8_t green, uint8_t blue)=0 |
| Set the Colour Foreground attribute. | |
| virtual void | SetColourBackground (uint8_t red, uint8_t green, uint8_t blue)=0 |
| Set the Colour Background attribute. | |
| virtual uint32_t | DrawLine (uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2)=0 |
| Draw a straight line. | |
| virtual void | DrawCircle (uint32_t x, uint32_t y, uint32_t radius, bool fill)=0 |
| Draw a circle, set filled to true to have solid circle. | |
| virtual void | DrawRectangle (uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, bool fill)=0 |
| Draw a rectangle, set filled to true to have solid rectangle. | |
| virtual uint32_t | DrawColor (uint8_t r, uint8_t g, uint8_t b)=0 |
| Set the draw colour. | |
| virtual uint32_t | TextureRGB (uint32_t x, uint32_t y, unsigned char *buffer, std::string_view file)=0 |
| Set the background texture to and RGB buffer (No Alpha channel) | |
| uint32_t | UnpackRed (uint32_t rgb) const |
| Unpack a red value. | |
| uint32_t | UnpackGreen (uint32_t rgb) const |
| Unpack a green value. | |
| uint32_t | UnpackBlue (uint32_t rgb) const |
| Unpack a blue value. | |
| RgbUnpackedType | UnpackRgb (uint64_t rgb) const |
| Unpack red, green and blue values. | |
Static Public Member Functions | |
| static uint32_t | GetWidth () |
| Get the Width attribute. | |
| static uint32_t | GetHeight () |
| Get the Height attribute. | |
| static void | SetWidth (uint32_t width) |
| Set the Width attribute. | |
| static void | SetHeight (uint32_t height) |
| Set the Height attribute. | |
| static uint32_t | PackRgb (ColourType colour) |
| Pack the colour to RGB. | |
| static uint32_t | PackRgb (uint8_t r, uint8_t g, uint8_t b) |
| Pack three red, green, blue values. | |
Static Protected Attributes | |
| static uint32_t | height_ = kMinimumHeight |
| The height of the renderer. | |
| static uint32_t | width_ = kMinimumWidth |
| The width of the renderer. | |
Friends | |
| class | RendererCairo |
| The Cairo renderer. | |
Class defining the renderer.
| gva::Renderer::Renderer | ( | uint32_t | width, |
| uint32_t | height | ||
| ) |
Construct a new Renderer object.
| width | |
| height |
|
pure virtual |
Draw a circle, set filled to true to have solid circle.
| x | The X position |
| y | The Y position |
| radius | The radius of the circle |
| fill | Set to true to have a solid circle |
Implemented in gva::RendererCairo.
|
pure virtual |
Set the draw colour.
| r | The red value |
| g | The green value |
| b | The blue value |
Implemented in gva::RendererCairo.
|
pure virtual |
Draw a straight line.
| x1 | The start X position |
| y1 | The start Y position |
| x2 | The end X position |
| y2 | The end Y position |
Implemented in gva::RendererCairo.
|
pure virtual |
Draw a rectangle, set filled to true to have solid rectangle.
| x1 | The start X position |
| y1 | The start Y position |
| x2 | The end X position |
| y2 | The end Y position |
| fill | Set to true to have a solid rectangle |
Implemented in gva::RendererCairo.
|
inlinestatic |
Get the Height attribute.
|
inlinestatic |
Get the Width attribute.
|
static |
Pack the colour to RGB.
| colour | The value to pack |
|
static |
Pack three red, green, blue values.
| r | The red value |
| g | The green value |
| b | The blue value |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inlinestatic |
Set the Height attribute.
| height | The height of the renderer |
|
pure virtual |
|
inlinestatic |
Set the Width attribute.
| width | The width of the renderer |
|
pure virtual |
Set the background texture to and RGB buffer (No Alpha channel)
| x | The X position |
| y | The Y position |
| buffer | The RGB buffer |
| file | The file name |
Implemented in gva::RendererCairo.
|
inline |
Unpack a blue value.
| rgb |
|
inline |
Unpack a green value.
| rgb |
|
inline |
Unpack a red value.
| rgb |
| RgbUnpackedType gva::Renderer::UnpackRgb | ( | uint64_t | rgb | ) | const |