|
PieDock
1.6.3
|
#include <PieMenuWindow.h>


Public Types | |
| enum | Placement { AroundCursor, IconBelowCursor } |
Public Member Functions | |
| PieMenuWindow (Application &) | |
| virtual | ~PieMenuWindow () |
| bool | appear (std::string="", Placement=AroundCursor) |
| void | draw () |
| bool | processEvent (XEvent &) |
Public Member Functions inherited from PieDock::TransparentWindow | |
| TransparentWindow (Application &) | |
| virtual | ~TransparentWindow () |
| const Window & | getWindow () const |
| virtual void | appear () |
Protected Types | |
|
typedef std::map< int, Cartouche * > | CartoucheMap |
Protected Member Functions | |
| virtual void | show (Placement=AroundCursor) |
| virtual void | hide () |
| virtual void | updateWithText () |
| virtual bool | performAction (Settings::Action) |
| virtual void | place (Placement) |
Protected Member Functions inherited from PieDock::TransparentWindow | |
| Application * | getApp () const |
| const int & | getWidth () const |
| const int & | getHeight () const |
| XSurface * | getCanvas () const |
| const GC & | getGc () const |
| virtual void | show () |
| virtual void | hide () const |
| virtual void | clear () |
| virtual void | update () const |
This object realizes the pie dock on screen
| PieMenuWindow::PieMenuWindow | ( | Application & | a | ) |
Initialize this window
| a | - Application object |
References PieDock::WindowManager::setWindowType().
|
virtual |
Clean up
| bool PieMenuWindow::appear | ( | std::string | n = "", |
| PieMenuWindow::Placement | p = AroundCursor |
||
| ) |
Make window appear, returns false if there are no menu items
| n | - menu name (optional) |
| p | - where the menu should appear (optional) |
References PieDock::PieMenu::setTwistForSelection(), PieDock::TransparentWindow::show(), and PieDock::PieMenu::update().
|
virtual |
(Re-)Draw contents
Reimplemented from PieDock::TransparentWindow.
References PieDock::TransparentWindow::clear(), PieDock::PieMenu::draw(), PieDock::PieMenu::isObsolete(), PieDock::TransparentWindow::update(), and updateWithText().
|
protectedvirtual |
Hide window
References PieDock::TransparentWindow::hide().
Referenced by performAction(), and processEvent().
|
protectedvirtual |
Perform action
| action | - action to perform |
References PieDock::Menu::change(), PieDock::Menu::execute(), hide(), and PieDock::PieMenu::turn().
Referenced by processEvent().
|
protectedvirtual |
|
virtual |
Process event, this method returns true as long as it wants to keep processing events
| event | - X event |
Reimplemented from PieDock::TransparentWindow.
References PieDock::Settings::getButtonFunctions(), hide(), and performAction().
|
protectedvirtual |
Show window
| p | - where to show (optional) |
References place(), and PieDock::TransparentWindow::show().
|
protectedvirtual |
Update window having text
References PieDock::Blender::blend(), PieDock::Text::draw(), PieDock::Menu::getItemTitle(), PieDock::Text::getMetrics(), and PieDock::TransparentWindow::update().
Referenced by draw().
1.8.3.1