PieDock
1.6.3
|
#include <PieMenu.h>
Public Member Functions | |
PieMenu (Application *, Surface &) | |
const bool | cursorInCenter () const |
const int & | getRadius () const |
Blender * | getBlender () |
void | invalidate () |
virtual bool | update (std::string="", Window=0) |
virtual bool | isObsolete (int, int) |
virtual void | draw (int, int) |
virtual void | turn (double) |
virtual void | turn (int) |
virtual void | setTwistForSelection () |
Public Member Functions inherited from PieDock::Menu | |
Menu (Application *) | |
void | setWindowBelowCursor (Window w) |
const Window & | getWindowBelowCursor () const |
MenuItem * | getSelected () const |
const std::string & | getName () const |
virtual bool | change (Settings::Action=Settings::Launch) |
virtual void | execute (Settings::Action=Settings::Launch) |
virtual std::string | getItemTitle () const |
Protected Member Functions | |
virtual double | getAngleDifference (double a, double b) |
virtual double | getValidAngle (double a) |
Protected Member Functions inherited from PieDock::Menu | |
Application * | getApp () const |
void | setSelected (MenuItem *s) |
MenuItems * | getMenuItems () const |
virtual int | run (std::string) const |
Realize a pie menu
PieMenu::PieMenu | ( | Application * | a, |
Surface & | s | ||
) |
Initialize menu
a | - application |
s | - surface to draw menu into |
|
virtual |
Draw menu
x | - x coordinate of cursor position within target surface |
y | - y coordinate of cursor position within target surface |
Reimplemented from PieDock::Menu.
References PieDock::Blender::blend(), getAngleDifference(), and getValidAngle().
Referenced by PieDock::PieMenuWindow::draw().
|
inlineprotectedvirtual |
Return the difference of two angles in radians; implemented here to ensure the method will be compiled inline
a | - angle in radians |
b | - angle in radians |
Referenced by draw().
|
inlineprotectedvirtual |
Recalculate angle to be within a valid range; implemented here to ensure the method will be compiled inline
a | - angle in radians |
Referenced by draw().
|
virtual |
Returns true if menu needs to be redrawn
x | - x coordinate of cursor position within target surface |
y | - y coordinate of cursor position within target surface |
Referenced by PieDock::PieMenuWindow::draw().
|
virtual |
Set twist to have the last selected item selected again
Referenced by PieDock::PieMenuWindow::appear().
|
virtual |
|
virtual |
Turn menu by the given number of cells
c | - cells to turn |
|
virtual |
Reset and update menu
n | - menu name (optional) |
w | - window id (optional) |
Reimplemented from PieDock::Menu.
References PieDock::Menu::update().
Referenced by PieDock::PieMenuWindow::appear().