Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
bottom_labels.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_BOTTOM_LABELS_H_
13#define HMICORE_WIDGETS_BOTTOM_LABELS_H_
14
15#include <cstdint>
16#include <string>
17#include <vector>
18
19#include "hmicore/events_gva.h"
22
23namespace gva {
24
27 public:
34 explicit WidgetBottomLabels(const RendererGva& renderer, TouchGva* touch);
35
40 ~WidgetBottomLabels() final = default;
41
47 std::string GetWidgetName() const final { return "WidgetBottomLabels"; };
48
53 void Draw() final;
54
60 void SetLabels(std::array<CommonTaskKeys::Labels, 8>* labels);
61
67 void EnableLabel(GvaKeyEnum key);
68
74 void DisableLabel(GvaKeyEnum key);
75
76 private:
77 void DrawControlLabels();
78 ConfigData* config_ = nullptr;
79 std::array<CommonTaskKeys::Labels, 8> labels_;
80 TouchGva* touch_;
81};
82
83} // namespace gva
84
85#endif // HMICORE_WIDGETS_BOTTOM_LABELS_H_
Class definition of the CommonTaskKeys.
Definition gva.h:465
Class defining the config data.
Definition config_reader.h:256
Class definition of the GVA renderer.
Definition renderer_gva.h:29
Class defining the touch screen events.
Definition touch_gva.h:71
Class defining the bottom labels widget.
Definition bottom_labels.h:26
void SetLabels(std::array< CommonTaskKeys::Labels, 8 > *labels)
Set the Labels object.
Definition bottom_labels.cc:79
void EnableLabel(GvaKeyEnum key)
Enable a label.
Definition bottom_labels.cc:81
void Draw() final
The base overloaded Draw fuctions to draw this widget type.
Definition bottom_labels.cc:26
~WidgetBottomLabels() final=default
Destroy the Widget Keyboard object.
std::string GetWidgetName() const final
Get the Widget Name attribute.
Definition bottom_labels.h:47
void DisableLabel(GvaKeyEnum key)
Disable a label.
Definition bottom_labels.cc:112
Class defining the base widget.
Definition widget.h:27
GvaKeyEnum
These are physical GVA keys around the display.
Definition gva.h:67