Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::Log Class Reference

A base class for logs that contain textual content. More...

#include <ConsoleWidget.hpp>

Inheritance diagram for shkyera::Log:
[legend]

Public Member Functions

 Log (const std::string &content)
 Constructor to create a log with the specified content.
 
virtual void draw () const
 Virtual method to draw the log in the user interface.
 
voidgetIconId () const
 Virtual method to retrieve an icon identifier associated with the log.
 

Public Attributes

std::string _content
 The text content of the log.
 
AssetRef< Texture_icon
 

Detailed Description

A base class for logs that contain textual content.

Constructor & Destructor Documentation

◆ Log()

shkyera::Log::Log ( const std::string &  content)

Constructor to create a log with the specified content.

Parameters
contentThe text content of the log.

Member Function Documentation

◆ draw()

void shkyera::Log::draw ( ) const
virtual

Virtual method to draw the log in the user interface.

◆ getIconId()

void * shkyera::Log::getIconId ( ) const

Virtual method to retrieve an icon identifier associated with the log.

Returns
An icon identifier.

Member Data Documentation

◆ _content

std::string shkyera::Log::_content

The text content of the log.

◆ _icon

AssetRef<Texture> shkyera::Log::_icon

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