14 #ifndef _PieDock_PieMenu_
15 #define _PieDock_PieMenu_
17 #include "Application.h"
38 inline const bool cursorInCenter()
const {
39 return (getSelected() == 0); }
40 inline const int &getRadius()
const {
return maxRadius; }
41 inline Blender *getBlender() {
return &blender; }
42 inline void invalidate() { lastX = lastY = -1; }
43 virtual bool update( std::string =
"", Window = 0 );
45 virtual void draw(
int,
int );
46 virtual void turn(
double );
47 virtual void turn(
int );
64 d = a-(b+radiansPerCircle);
66 d = a-(b-radiansPerCircle);
68 if( fabs( c ) < fabs( d ) )
83 a += radiansPerCircle;
85 a -= radiansPerCircle;
91 static const double radiansPerCircle;
92 static const double turnSteps[];