Robowflex  v0.1
Making MoveIt Easy
robowflex::darts::RenderElement Class Reference

Generic rendered element. Use callback to display whatever GUI elements needed. More...

#include <gui.h>

+ Inheritance diagram for robowflex::darts::RenderElement:

Public Member Functions

 RenderElement (const RenderCallback &callback)
 Constructor. More...
 
void render () const override
 Render method. Renders IMGUI contents. More...
 

Private Attributes

const RenderCallback callback
 Callback. More...
 

Detailed Description

Generic rendered element. Use callback to display whatever GUI elements needed.

Definition at line 310 of file gui.h.

Constructor & Destructor Documentation

◆ RenderElement()

RenderElement::RenderElement ( const RenderCallback callback)

Constructor.

Parameters
[in]callbackCallback to render.

Definition at line 288 of file gui.cpp.

288  : callback(callback)
289 {
290 }
const RenderCallback callback
Callback.
Definition: gui.h:320

Member Function Documentation

◆ render()

void RenderElement::render ( ) const
overridevirtual

Render method. Renders IMGUI contents.

Implements robowflex::darts::ImGuiElement.

Definition at line 292 of file gui.cpp.

293 {
294  if (callback)
295  callback();
296 }

Member Data Documentation

◆ callback

const RenderCallback robowflex::darts::RenderElement::callback
private

Callback.

Definition at line 320 of file gui.h.


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