libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
Loading...
Searching...
No Matches
console::CommandQueue::Command Struct Reference

A single command entry with its text and completion callback. More...

#include <console.hpp>

Collaboration diagram for console::CommandQueue::Command:
[legend]

Public Attributes

std::string text
 Raw command string.
std::function< void(const std::string &, std::ostream &)> callback
 Handler invoked on the worker thread.

Detailed Description

A single command entry with its text and completion callback.

Definition at line 75 of file console.hpp.

Member Data Documentation

◆ callback

std::function<void(const std::string&, std::ostream&)> console::CommandQueue::Command::callback

Handler invoked on the worker thread.

Definition at line 77 of file console.hpp.

Referenced by console::Console::worker_thread_func().

◆ text

std::string console::CommandQueue::Command::text

Raw command string.

Definition at line 76 of file console.hpp.

Referenced by console::Console::worker_thread_func().


The documentation for this struct was generated from the following file: