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
20
#include "
hmicore/renderer_cairo_types.h
"
21
#include "
hmicore/widgets/widget.h
"
22
23
namespace
gva {
24
26
class
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_
gva::RendererGva
Class definition of the GVA renderer.
Definition
renderer_gva.h:29
gva::WidgetMode
Class defining the mode widget.
Definition
mode.h:26
gva::WidgetMode::SetMode
void SetMode(const std::string mode)
Set the Mode object.
Definition
mode.cc:38
gva::WidgetMode::~WidgetMode
~WidgetMode() final=default
Destroy the Widget mode object.
gva::WidgetMode::GetMode
std::string GetMode() const
Get the Mode object.
Definition
mode.cc:40
gva::WidgetMode::GetWidgetName
std::string GetWidgetName() const final
Get the Widget Name attribute.
Definition
mode.h:46
gva::WidgetMode::Draw
void Draw() final
Draw the current widget.
Definition
mode.cc:21
gva::WidgetX
Class defining the base widget.
Definition
widget.h:27
renderer_cairo_types.h
widget.h
src
hmicore
widgets
mode.h
Generated by
1.9.8