Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
gva::TouchGva Class Reference

Class defining the touch screen events. More...

#include <touch_gva.h>

Collaboration diagram for gva::TouchGva:
Collaboration graph

Public Member Functions

GvaStatusTypes Add (GvaFunctionGroupEnum groupId, uint32_t x, uint32_t y)
 Construct a new Touch Gva object.
 
GvaStatusTypes Add (GvaFunctionGroupEnum groupId, uint32_t binding, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
 Construct a new Touch Gva object.
 
GvaStatusTypes AddAbsolute (GvaFunctionGroupEnum groupId, uint32_t binding, uint32_t x, uint32_t y, uint32_t xx, uint32_t yy)
 Construct a new Touch Gva object.
 
void SetResolution (uint32_t x, uint32_t y)
 Set the Resolution attribute.
 
void Reset ()
 Reset all the hotspots.
 
bool Check (GvaFunctionGroupEnum groupId, uint32_t *binding, uint32_t x, uint32_t y) const
 Check if a touch event is within a hotspot.
 

Detailed Description

Class defining the touch screen events.

Member Function Documentation

◆ Add() [1/2]

GvaStatusTypes gva::TouchGva::Add ( GvaFunctionGroupEnum  groupId,
uint32_t  binding,
uint32_t  x,
uint32_t  y,
uint32_t  width,
uint32_t  height 
)

Construct a new Touch Gva object.

Parameters
groupIdThe group ID for this hotspot
bindingThe binding ID for this hotspot
xThe pixel position of the hotspot on the X axis
yThe pixel position of the hotspot on the Y axis
widthThe width of the hotspot
heightThe height of the hotspot
Returns
GvaStatusTypes

◆ Add() [2/2]

GvaStatusTypes gva::TouchGva::Add ( GvaFunctionGroupEnum  groupId,
uint32_t  x,
uint32_t  y 
)

Construct a new Touch Gva object.

Parameters
groupIdThe group ID for this hotspot
xThe pixel position of the hotspot on the X axis
yThe pixel position of the hotspot on the Y axis
Returns
GvaStatusTypes

◆ AddAbsolute()

GvaStatusTypes gva::TouchGva::AddAbsolute ( GvaFunctionGroupEnum  groupId,
uint32_t  binding,
uint32_t  x,
uint32_t  y,
uint32_t  xx,
uint32_t  yy 
)

Construct a new Touch Gva object.

Parameters
groupIdThe group ID for this hotspot
bindingThe binding ID for this hotspot
xThe pixel position of the hotspot on the X axis, top right
yThe pixel position of the hotspot on the Y axis, top right
xxThe pixel position of the hotspot on the X axis, bottom left
yyThe pixel position of the hotspot on the Y axis, bottom left
Returns
GvaStatusTypes

◆ Check()

bool gva::TouchGva::Check ( GvaFunctionGroupEnum  groupId,
uint32_t *  binding,
uint32_t  x,
uint32_t  y 
) const

Check if a touch event is within a hotspot.

Parameters
groupIdThe group ID for this hotspot
bindingThe binding ID for this hotspot
xThe pixel position of the touch event on the x axis
yThe pixel position of the touch event on the y axis
Returns
true
false

◆ SetResolution()

void gva::TouchGva::SetResolution ( uint32_t  x,
uint32_t  y 
)

Set the Resolution attribute.

Parameters
xThe screen resolution on the X axis
yThe screen resolution on the Y axis

The documentation for this class was generated from the following files: