Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
renderer_base.h
Go to the documentation of this file.
1//
2// Copyright (c) 2023, DefenceX PTY LTD
3//
4// This file is part of the VivoeX project developed by DefenceX.
5//
6// Licensed under the Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
7// License. See the LICENSE file in the project root for full license details.
8//
14
15#ifndef HMICORE_RENDERER_BASE_H_
16#define HMICORE_RENDERER_BASE_H_
17
18#include <stdint.h>
19
20namespace gva {
21
24 public:
29 RenderBase() = default;
30
37 RenderBase(uint32_t x, uint32_t y) : m_x(x), m_y(y) {}
38
46 RenderBase(uint32_t x, uint32_t y, uint32_t width) : m_x(x), m_y(y), m_width(width) {}
47
56 RenderBase(uint32_t x, uint32_t y, uint32_t width, uint32_t height)
57 : m_x(x), m_y(y), m_width(width), m_height(height) {}
58
64 uint32_t GetX() const { return m_x; }
65
71 uint32_t GetY() const { return m_y; }
72
78 uint32_t GetWidth() const { return m_width; }
79
85 uint32_t GetHeight() const { return m_height; }
86
87 private:
88 uint32_t m_x = 0;
89 uint32_t m_y = 0;
90 uint32_t m_width = 0;
91 uint32_t m_height = 0;
92};
93
94} // namespace gva
95
96#endif // HMICORE_RENDERER_BASE_H_
Class defining the base renderer.
Definition renderer_base.h:23
RenderBase(uint32_t x, uint32_t y)
Construct a new Render Base object.
Definition renderer_base.h:37
uint32_t GetWidth() const
Get the Width attribute.
Definition renderer_base.h:78
RenderBase()=default
Construct a new Render Base object.
uint32_t GetX() const
Get the X attribute.
Definition renderer_base.h:64
RenderBase(uint32_t x, uint32_t y, uint32_t width)
Construct a new Render Base object.
Definition renderer_base.h:46
uint32_t GetHeight() const
Get the Height attribute.
Definition renderer_base.h:85
uint32_t GetY() const
Get the Y attribute.
Definition renderer_base.h:71
RenderBase(uint32_t x, uint32_t y, uint32_t width, uint32_t height)
Construct a new Render Base object.
Definition renderer_base.h:56