Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
renderer_cairo_types.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_RENDERER_CAIRO_TYPES_H_
14#define HMICORE_RENDERER_CAIRO_TYPES_H_
15
16#include <gtk/gtk.h>
17
18#include "hmicore/renderer.h"
19
20namespace gva {
21
24 public:
26 uint32_t handle;
28 bool inUse;
34 cairo_surface_t *surface;
36 cairo_t *cr;
37};
38
40enum class DrawType {
41 kCommandUndefined = 0,
42 kCommandCircle,
43 kCommandArc,
44 kCommandColourBackground,
45 kCommandColourForeground,
46 kCommandImageTexture,
47 kCommandImageTexturePersist,
48 kCommandLineJoin,
49 kCommandPenColour,
50 kCommandPenCurve,
51 kCommandPenCurveTo,
52 kCommandPenLine,
53 kCommandPenDraw,
54 kCommandPenMove,
55 kCommandPenRectangle,
56 kCommandPenRoundedRectangle,
57 kCommandPenThickness,
58 kCommandPenTriangle,
59 kCommandSave,
60 kCommandRestore,
61 kCommandScale,
62 kCommandTranslate,
63 kCommandRotate,
64 kCommandClosePath,
65 kCommandTextFont,
66 kCommandPush,
67 kCommandPop,
68 kCommandText
69};
70
71} // namespace gva
72
73#endif // HMICORE_RENDERER_CAIRO_TYPES_H_
Class definition of the HandleType.
Definition renderer_cairo_types.h:23
cairo_surface_t * surface
Cairo screen surface.
Definition renderer_cairo_types.h:34
bool inUse
true if in user
Definition renderer_cairo_types.h:28
bool fullscreen
True if fullscreen.
Definition renderer_cairo_types.h:30
uint32_t handle
Construct a new Handle Type object.
Definition renderer_cairo_types.h:26
ResolutionType size
The screen dimensions.
Definition renderer_cairo_types.h:32
cairo_t * cr
Cairo context.
Definition renderer_cairo_types.h:36
DrawType
Class definition of the DrawType.
Definition renderer_cairo_types.h:40
Struct for the resolution.
Definition gva.h:571