2015-11-21 01:14:49 +00:00
|
|
|
#ifndef SPECTER_SPACE_HPP
|
|
|
|
#define SPECTER_SPACE_HPP
|
|
|
|
|
2015-12-03 03:26:50 +00:00
|
|
|
#include "Specter/View.hpp"
|
|
|
|
#include "Specter/Toolbar.hpp"
|
|
|
|
|
|
|
|
namespace Specter
|
|
|
|
{
|
|
|
|
|
|
|
|
class Space : public View
|
|
|
|
{
|
|
|
|
Toolbar::Position m_tbPos;
|
|
|
|
std::unique_ptr<Toolbar> m_toolbar;
|
2015-12-05 00:42:46 +00:00
|
|
|
bool m_toolbarMouseIn = false;
|
|
|
|
bool m_toolbarMouseDown = false;
|
2015-12-10 03:14:38 +00:00
|
|
|
View* m_contentView = nullptr;
|
2015-12-05 00:42:46 +00:00
|
|
|
bool m_contentMouseIn = false;
|
|
|
|
bool m_contentMouseDown = false;
|
2015-12-03 03:26:50 +00:00
|
|
|
public:
|
|
|
|
Space(ViewResources& res, View& parentView, Toolbar::Position toolbarPos);
|
2015-12-10 03:14:38 +00:00
|
|
|
View* setContentView(View* view);
|
2015-12-05 00:42:46 +00:00
|
|
|
Toolbar& toolbar() {return *m_toolbar;}
|
2015-12-03 03:26:50 +00:00
|
|
|
void mouseDown(const boo::SWindowCoord&, boo::EMouseButton, boo::EModifierKey);
|
|
|
|
void mouseUp(const boo::SWindowCoord&, boo::EMouseButton, boo::EModifierKey);
|
|
|
|
void mouseMove(const boo::SWindowCoord&);
|
2015-12-05 00:42:46 +00:00
|
|
|
void mouseEnter(const boo::SWindowCoord&);
|
|
|
|
void mouseLeave(const boo::SWindowCoord&);
|
|
|
|
void resized(const boo::SWindowRect& rootView, const boo::SWindowRect& sub);
|
2015-12-03 03:26:50 +00:00
|
|
|
void draw(boo::IGraphicsCommandQueue* gfxQ);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-11-21 01:14:49 +00:00
|
|
|
#endif // SPECTER_SPACE_HPP
|