Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
alarm_indicator.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_ALARM_INDICATOR_H_
13#define HMICORE_WIDGETS_ALARM_INDICATOR_H_
14
15#include <cstdint>
16#include <string>
17
18#include "hmicore/gva.h"
21
22namespace gva {
23
29 public:
36 explicit WidgetAlarmIndicator(const RendererGva& renderer, TouchGva* touch);
37
43 std::string GetWidgetName() const final { return "WidgetAlarmIndicator"; };
44
49 void Draw() final;
50
56 void SetText(std::string_view text);
57
63 void SetType(const GvaAlarmType type);
64
65 private:
66 TouchGva* touch_;
67 std::string text_;
68 GvaAlarmType type_;
69};
70
71} // namespace gva
72#endif // HMICORE_WIDGETS_ALARM_INDICATOR_H_
Class definition of the GVA renderer.
Definition renderer_gva.h:29
Class defining the touch screen events.
Definition touch_gva.h:71
A GVA alarm indicator widget.
Definition alarm_indicator.h:28
std::string GetWidgetName() const final
Get the Widget Name attribute.
Definition alarm_indicator.h:43
void SetType(const GvaAlarmType type)
Set the Type object.
Definition alarm_indicator.cc:50
void Draw() final
Draw the widget.
Definition alarm_indicator.cc:20
void SetText(std::string_view text)
Set the Text object.
Definition alarm_indicator.cc:48
Class defining the base widget.
Definition widget.h:27
GvaAlarmType
These are the alarm types.
Definition gva.h:230