Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
Public Member Functions | List of all members
gui_direct Class Reference

This is a special element, that doesn't wrap any ImGui function. This is used to render ImGui directly through calling a function. More...

#include <gui_direct.h>

Inheritance diagram for gui_direct:
gui_element

Public Member Functions

 gui_direct (void(*func)())
 Construct a new gui direct object. More...
 
void render_element ()
 
- Public Member Functions inherited from gui_element
void set_refresh_screen (bool *refresh_flag)
 

Additional Inherited Members

- Public Attributes inherited from gui_element
int index = -1
 
- Protected Attributes inherited from gui_element
int width = -1
 
int x = -1
 
int y = -1
 
bool * refresh_screen = nullptr
 

Detailed Description

This is a special element, that doesn't wrap any ImGui function. This is used to render ImGui directly through calling a function.

Definition at line 12 of file gui_direct.h.

Constructor & Destructor Documentation

◆ gui_direct()

gui_direct::gui_direct ( void(*)()  func)

Construct a new gui direct object.

Parameters
functhat has ImGui logic

Definition at line 5 of file gui_direct.cpp.

5  {
6  this->func = func;
7 }

Member Function Documentation

◆ render_element()

void gui_direct::render_element ( )
virtual

Override of parent function, that is required, because it does the actual rendering of the element

Reimplemented from gui_element.

Definition at line 9 of file gui_direct.cpp.

9  {
10  func();
11 }

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