Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
message_box.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_TABLE_MESSAGE_BOX_H_
14#define HMICORE_WIDGETS_TABLE_MESSAGE_BOX_H_
15
16#include <cstdint>
17#include <string>
18#include <vector>
19
23
24namespace gva {
25
28 public:
35 explicit WidgetMessageBox(const RendererGva &renderer, TouchGva *touch);
36
41 ~WidgetMessageBox() final = default;
42
48 std::string GetWidgetName() const final { return "WidgetMessageBox"; };
49
54 void Draw() final;
55
62 void SetMessage(const std::string_view message_text, widget::IconType icon);
63
64 private:
65 std::string_view message_text_;
66 widget::IconType icon_ = widget::IconType::kIconNone;
67};
68
69} // namespace gva
70
71#endif // HMICORE_WIDGETS_TABLE_MESSAGE_BOX_H_
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 mode widget.
Definition message_box.h:27
void Draw() final
Draw the current widget.
Definition message_box.cc:22
void SetMessage(const std::string_view message_text, widget::IconType icon)
Set the Message text and icon.
Definition message_box.cc:39
~WidgetMessageBox() final=default
Destroy the Widget mode object.
std::string GetWidgetName() const final
Get the Widget Name attribute.
Definition message_box.h:48
A widget representing a table of elements.
Definition table.h:32