mirror of
https://github.com/obsqrbtz/clrsync.git
synced 2026-04-09 20:47:40 +03:00
chore :refactored remaining views
This commit is contained in:
25
src/gui/widgets/error_message.hpp
Normal file
25
src/gui/widgets/error_message.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef CLRSYNC_GUI_WIDGETS_ERROR_MESSAGE_HPP
|
||||
#define CLRSYNC_GUI_WIDGETS_ERROR_MESSAGE_HPP
|
||||
|
||||
#include "core/palette/palette.hpp"
|
||||
#include <string>
|
||||
|
||||
namespace clrsync::gui::widgets
|
||||
{
|
||||
|
||||
class error_message
|
||||
{
|
||||
public:
|
||||
void set(const std::string& message);
|
||||
void clear();
|
||||
bool has_error() const;
|
||||
const std::string& get() const;
|
||||
void render(const core::palette& palette);
|
||||
|
||||
private:
|
||||
std::string m_message;
|
||||
};
|
||||
|
||||
} // namespace clrsync::gui::widgets
|
||||
|
||||
#endif // CLRSYNC_GUI_WIDGETS_ERROR_MESSAGE_HPP
|
||||
Reference in New Issue
Block a user