![]()  | 
  
    Shkyera Engine
    
   Easy to use, game engine for Python 
   | 
 
A user interface widget for the console, used for logging and displaying messages. More...
#include <ConsoleWidget.hpp>
Public Member Functions | |
| ConsoleWidget (const std::string &name) | |
| ~ConsoleWidget () | |
| virtual void | draw () override | 
Implementation of the abstract draw method to render the console widget.   | |
| Widget (std::string name) | |
| Constructor to create a widget with a specified name.   | |
  Public Member Functions inherited from shkyera::Widget | |
| Widget (std::string name) | |
| Constructor to create a widget with a specified name.   | |
| virtual | ~Widget ()=default | 
| Default virtual destructor.   | |
Static Public Member Functions | |
| static void | clear () | 
| Clear all logs from the console widget.   | |
| static void | enableVerbose () | 
| Enable verbose logging mode.   | |
| static void | disableVerbose () | 
| Disable verbose logging mode.   | |
| static void | logVerbose (std::string text) | 
| Log a verbose message to the console.   | |
| static void | logInfo (std::string text) | 
| Log an informational message to the console.   | |
| static void | logSuccess (std::string text) | 
| Log a success message to the console.   | |
| static void | logError (std::string text) | 
| Log an error message to the console.   | |
Static Public Attributes | |
| static constexpr size_t | MAX_LOGS = 500 | 
| The maximum number of logs to keep in the console.   | |
Private Member Functions | |
| void | drawInfoBar () const | 
| Draw the information bar of the console widget.   | |
Private Attributes | |
| AssetRef< Texture > | _totalIcon | 
| AssetRef< Texture > | _errorIcon | 
| AssetRef< Texture > | _successIcon | 
| AssetRef< Texture > | _infoIcon | 
| AssetRef< Texture > | _verboseIcon | 
Static Private Attributes | |
| static size_t | _totalVerbose = 0 | 
| The total number of verbose logs.   | |
| static size_t | _totalInfo = 0 | 
| The total number of informational logs.   | |
| static size_t | _totalSuccess = 0 | 
| The total number of success logs.   | |
| static size_t | _totalError = 0 | 
| The total number of error logs.   | |
| static std::vector< std::shared_ptr< Log > > | _logs = {} | 
| A collection of logs in the console.   | |
| static bool | _verbose = true | 
| A flag indicating verbose logging mode.   | |
Additional Inherited Members | |
  Public Attributes inherited from shkyera::Widget | |
| std::string | _name | 
| The name of the widget.   | |
A user interface widget for the console, used for logging and displaying messages.
| shkyera::ConsoleWidget::ConsoleWidget | ( | const std::string & | name | ) | 
| shkyera::ConsoleWidget::~ConsoleWidget | ( | ) | 
      
  | 
  static | 
Clear all logs from the console widget.
      
  | 
  static | 
Disable verbose logging mode.
      
  | 
  overridevirtual | 
Implementation of the abstract draw method to render the console widget. 
Implements shkyera::Widget.
      
  | 
  private | 
Draw the information bar of the console widget.
      
  | 
  static | 
Enable verbose logging mode.
      
  | 
  static | 
Log an error message to the console.
| text | The error message to log. | 
      
  | 
  static | 
Log an informational message to the console.
| text | The informational message to log. | 
      
  | 
  static | 
Log a success message to the console.
| text | The success message to log. | 
      
  | 
  static | 
Log a verbose message to the console.
| text | The verbose message to log. | 
| shkyera::Widget::Widget | ( | std::string | name | ) | 
Constructor to create a widget with a specified name.
| name | The name of the widget. | 
      
  | 
  staticprivate | 
A collection of logs in the console.
      
  | 
  staticprivate | 
The total number of error logs.
      
  | 
  staticprivate | 
The total number of informational logs.
      
  | 
  staticprivate | 
The total number of success logs.
      
  | 
  staticprivate | 
The total number of verbose logs.
The maximum number of logs to keep in the console.