3#include <Tempest/Painter>
7using namespace Tempest;
15 p.setBrush(Color(1,1,1, 0.2f));
16 p.drawRect(10, h()-10 - 100, 100, 100);
20 auto r = Rect(10, h()-10-100, 100, 100);
21 if(!r.contains(e.pos())) {
31 auto dp = e.pos() - mpos;
33 if(std::abs(dp.x)>0) {
34 const float scale = 4.f;
void onRotateMouse(float dAngle)
void onKeyReleased(KeyCodec::Action a, KeyCodec::Mapping mapping=KeyCodec::Mapping::Primary)
void onKeyPressed(KeyCodec::Action a, Tempest::Event::KeyType key, KeyCodec::Mapping mapping=KeyCodec::Mapping::Primary)