mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-03 20:57:19 -04:00
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
/*
|
|
* @file GUIWorker.hpp
|
|
* @author Robert Borzecki (robert.borzecki@mudita.com)
|
|
* @date 31 maj 2019
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
#ifndef MODULE_SERVICES_SERVICE_GUI_WORKERGUI_HPP_
|
|
#define MODULE_SERVICES_SERVICE_GUI_WORKERGUI_HPP_
|
|
|
|
#include "core/DrawCommand.hpp"
|
|
#include "core/Context.hpp"
|
|
#include "messages/GUIMessage.hpp"
|
|
#include "ServiceGUI.hpp"
|
|
#include "Service/Worker.hpp"
|
|
#include "gui/core/Renderer.hpp"
|
|
|
|
namespace sgui
|
|
{
|
|
|
|
class ServiceGUI;
|
|
|
|
enum class WorkerGUICommands
|
|
{
|
|
Finish,
|
|
Render,
|
|
// RenderSuspend
|
|
};
|
|
|
|
/*
|
|
*
|
|
*/
|
|
class WorkerGUI : public sys::Worker
|
|
{
|
|
// object responsible for rendering images to context
|
|
gui::Renderer renderer;
|
|
|
|
public:
|
|
WorkerGUI(ServiceGUI *service);
|
|
virtual ~WorkerGUI();
|
|
|
|
/**
|
|
* virtual method responsible for finishing the worker and handling rendering commands
|
|
*/
|
|
bool handleMessage(uint32_t queueID) override;
|
|
};
|
|
|
|
} /* namespace sgui */
|
|
|
|
#endif /* MODULE_SERVICES_SERVICE_GUI_WORKERGUI_HPP_ */
|