Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
mode.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
13#ifndef HMICORE_WIDGETS_MODE_H_
14#define HMICORE_WIDGETS_MODE_H_
15
16#include <cstdint>
17#include <string>
18#include <vector>
19
22
23namespace gva {
24
26class WidgetMode : public WidgetX {
27 public:
33 explicit WidgetMode(const RendererGva& renderer);
34
39 ~WidgetMode() final = default;
40
46 std::string GetWidgetName() const final { return "WidgetMode"; };
47
52 void Draw() final;
53
59 void SetMode(const std::string mode);
60
66 std::string GetMode() const;
67
68 private:
69 std::string mode_ = "Maintenance Mode";
70};
71
72} // namespace gva
73
74#endif // HMICORE_WIDGETS_MODE_H_
Class definition of the GVA renderer.
Definition renderer_gva.h:29
Class defining the mode widget.
Definition mode.h:26
void SetMode(const std::string mode)
Set the Mode object.
Definition mode.cc:38
~WidgetMode() final=default
Destroy the Widget mode object.
std::string GetMode() const
Get the Mode object.
Definition mode.cc:40
std::string GetWidgetName() const final
Get the Widget Name attribute.
Definition mode.h:46
void Draw() final
Draw the current widget.
Definition mode.cc:21
Class defining the base widget.
Definition widget.h:27