Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
top_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_TOP_LABELS_H_
13#define HMICORE_WIDGETS_TOP_LABELS_H_
14
15#include <cstdint>
16#include <string>
17#include <vector>
18
19#include "hmicore/events_gva.h"
22
23namespace gva {
24
26class WidgetTopLabels : public WidgetX {
27 public:
34 explicit WidgetTopLabels(const RendererGva& renderer, TouchGva* touch);
35
40 ~WidgetTopLabels() final = default;
41
47 std::string GetWidgetName() const final { return "WidgetTopLabels"; }
48
53 void Draw() final;
54
60 void SetLabels(std::array<FunctionSelect::Labels, 8>* labels);
61
62 private:
69 void DrawTopLabels(uint32_t y, const std::array<FunctionSelect::Labels, 8>& labels);
70 std::array<FunctionSelect::Labels, 8>* labels_;
71 TouchGva* touch_;
72};
73
74} // namespace gva
75
76#endif // HMICORE_WIDGETS_TOP_LABELS_H_
These are the labels on the left and right of the screen.
Definition gva.h:324
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 top labels.
Definition top_labels.h:26
~WidgetTopLabels() final=default
Destroy the Widget Keyboard object.
void Draw() final
The base overloaded Draw fuctions to draw this widget type.
Definition top_labels.cc:20
void SetLabels(std::array< FunctionSelect::Labels, 8 > *labels)
Set the Labels object.
Definition top_labels.cc:53
std::string GetWidgetName() const final
Get the Widget Name attribute.
Definition top_labels.h:47
Class defining the base widget.
Definition widget.h:27