Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
rpm_fuel.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//
12#ifndef HMICORE_WIDGETS_DRIVER_RPM_FUEL_H_
13#define HMICORE_WIDGETS_DRIVER_RPM_FUEL_H_
14
15#include <cstdint>
16#include <string>
17
20
21namespace gva {
22
25 public:
31 explicit WidgetDriverRpmFuel(const RendererGva& renderer);
32
38 std::string GetWidgetName() const final { return "WidgetDriverRpmFuel"; };
39
44 void Draw() final;
45
51 void SetValue(int16_t value) { value_ = value; }
52
58 int16_t GetValue() const { return value_; }
59
60 private:
61 const double scale_ = 0.5;
62 int16_t value_ = 0;
63 bool indicator_left_ = false;
64 bool indicator_right_ = false;
65};
66
67} // namespace gva
68
69#endif // HMICORE_WIDGETS_DRIVER_RPM_FUEL_H_
Class definition of the GVA renderer.
Definition renderer_gva.h:29
Class defining the mode widget.
Definition rpm_fuel.h:24
int16_t GetValue() const
Get the Value.
Definition rpm_fuel.h:58
void SetValue(int16_t value)
Set the Value.
Definition rpm_fuel.h:51
std::string GetWidgetName() const final
Get the Widget Name attribute.
Definition rpm_fuel.h:38
void Draw() final
The base overloaded Draw fuctions to draw this widget type.
Definition rpm_fuel.cc:29
Class defining the base widget.
Definition widget.h:27