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

A basic text element. More...

#include <gui.h>

+ Inheritance diagram for robowflex::darts::TextElement:

Public Member Functions

 TextElement (const std::string &text)
 Constructor. More...
 
void render () const override
 Render method. Renders IMGUI contents. More...
 

Private Attributes

const std::string text
 Text to display. More...
 

Detailed Description

A basic text element.

Definition at line 253 of file gui.h.

Constructor & Destructor Documentation

◆ TextElement()

TextElement::TextElement ( const std::string text)

Constructor.

Parameters
[in]textText to display.

Definition at line 258 of file gui.cpp.

258  : text(text)
259 {
260 }
const std::string text
Text to display.
Definition: gui.h:263

Member Function Documentation

◆ render()

void TextElement::render ( ) const
overridevirtual

Render method. Renders IMGUI contents.

Implements robowflex::darts::ImGuiElement.

Definition at line 262 of file gui.cpp.

263 {
264  ImGui::Text("%s", text.c_str());
265 }
T c_str(T... args)

Member Data Documentation

◆ text

const std::string robowflex::darts::TextElement::text
private

Text to display.

Definition at line 263 of file gui.h.


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