boo/src/CApplicationWayland.hpp

67 lines
1.3 KiB
C++
Raw Normal View History

2015-05-06 00:50:57 +00:00
#ifndef CAPPLICATION_UNIX_CPP
#error This file may only be included from CApplicationUnix.cpp
#endif
#include "IApplication.hpp"
namespace boo
{
IWindow* _CWindowWaylandNew(const std::string& title);
class CApplicationWayland final : public IApplication
{
const IApplicationCallback& m_callback;
const std::string m_friendlyName;
const std::string m_pname;
const std::vector<std::string> m_args;
void _deletedWindow(IWindow* window)
{
(void)window;
}
public:
CApplicationWayland(const IApplicationCallback& callback,
const std::string& friendlyName,
const std::string& pname,
const std::vector<std::string>& args)
: m_callback(callback),
m_friendlyName(friendlyName),
m_pname(pname),
m_args(args)
{}
EPlatformType getPlatformType() const
{
return PLAT_WAYLAND;
}
void run()
{
2015-05-09 05:33:48 +00:00
}
void quit()
{
2015-05-06 00:50:57 +00:00
}
const std::string& getProcessName() const
{
return m_pname;
}
const std::vector<std::string>& getArgs() const
{
return m_args;
}
IWindow* newWindow(const std::string& title)
{
return _CWindowWaylandNew(title);
}
};
}