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

Class definition of the GvaApplication. More...

#include <gva_application.h>

Collaboration diagram for GvaApplication:
Collaboration graph

Data Structures

struct  Options
 Application options. More...
 

Public Member Functions

 GvaApplication (const Options &options, const std::string &ipaddr, const uint32_t port)
 Construct a new Gva Application object.
 
 ~GvaApplication ()=default
 Destroy the Gva Application object.
 
void Exec () const
 Execute the main processing loop, blocking call.
 

Static Public Member Functions

static bool SetKeyPressed (gva::GvaKeyEnum key)
 Create the Key Pressed event.
 
static bool SetKeyReleased (gva::HandleType *renderer, gva::GvaKeyEnum key)
 Create the Key Released event.
 
static void Update (gpointer user_data)
 Update the GTK application.
 

Static Public Attributes

static Options options_ = {}
 GTK application options.
 
static gtkType gtk_
 The GTK application.
 

Detailed Description

Class definition of the GvaApplication.


Data Structure Documentation

◆ GvaApplication::Options

struct GvaApplication::Options

Application options.

Collaboration diagram for GvaApplication::Options:
Collaboration graph
Data Fields
string config The config file location.
bool videoEnabled_ = false Video enabled flag (default false)
bool windowEnabled_ = false Window enabled flag (default false)

Constructor & Destructor Documentation

◆ GvaApplication()

GvaApplication::GvaApplication ( const Options options,
const std::string &  ipaddr,
const uint32_t  port 
)

Construct a new Gva Application object.

Parameters
optionsThe application options
ipaddrThe stream IP address for raw RTP video
portThe port for the above RTP stream

Member Function Documentation

◆ Exec()

void GvaApplication::Exec ( ) const

Execute the main processing loop, blocking call.

Execute the main GTK application loop (blocking till windows destroyed)

◆ SetKeyPressed()

bool GvaApplication::SetKeyPressed ( gva::GvaKeyEnum  key)
static

Create the Key Pressed event.

Parameters
keyThe key being pressed

◆ SetKeyReleased()

bool GvaApplication::SetKeyReleased ( gva::HandleType renderer,
gva::GvaKeyEnum  key 
)
static

Create the Key Released event.

Parameters
rendererThe renderer
keyThe key being released

◆ Update()

void GvaApplication::Update ( gpointer  user_data)
static

Update the GTK application.

Renderer callback to update screen.

Parameters
user_dataPointer to data object
user_dataRenderer handle

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