#include <widget.h>
Inherits Rectangle.
Inherited by Bar, Box, and Menu.
Inheritance diagram for Widget:
Public Member Functions | |
Widget (Monitor *monitor, Rectangle *rect, bool initWindowAndGC=true) | |
virtual | ~Widget () |
Monitor * | monitor () const |
GC | gc () const |
Window | window () const |
virtual void | resize () |
virtual void | show () |
virtual void | hide () |
bool | isVisible () const |
Protected Attributes | |
bool | isVisible_ |
Private Member Functions | |
void | initWindow () |
void | initGC () |
Private Attributes | |
GC | gc_ |
Monitor * | monitor_ |
Window | window_ |
Definition at line 18 of file widget.h.
Definition at line 14 of file widget.cpp.
References gc_, initGC(), initWindow(), isVisible_, monitor(), monitor_, and window_.
Here is the call graph for this function:
Widget::~Widget | ( | ) | [virtual] |
Monitor * Widget::monitor | ( | ) | const |
Definition at line 34 of file widget.cpp.
References monitor_.
Referenced by Bar::Bar(), Box::Box(), StatusBar::calculateMetersWidth(), StatusBar::calculateWorkspaceWidth(), ClientBar::ClientBar(), Menu::escape(), StatusBar::handleButtonPress(), Menu::handleButtonPress(), ClientBar::handleButtonPress(), StatusBar::handleButtonRelease(), ClientBar::handleButtonRelease(), StatusBar::invokeClickedThing(), ClientBar::invokeClickedThing(), Menu::manage(), Menu::Menu(), Box::setText(), ClientBar::updateClientInfo(), ClientBar::updateClientPager(), StatusBar::updateInputModeButton(), Menu::updateItemTree(), ClientBar::updateMenuButton(), StatusBar::updateMeters(), ClientBar::updateModeButton(), StatusBar::updateWorkspacePager(), and Widget().
GC Widget::gc | ( | ) | const |
Definition at line 42 of file widget.cpp.
References gc_.
Referenced by Bar::Bar(), Box::Box(), Bar::drawBorder(), Menu::illuminate(), Box::illuminate(), Menu::Menu(), ClientBar::updateClientInfo(), ClientBar::updateClientPager(), StatusBar::updateInputModeButton(), ClientBar::updateMenuButton(), StatusBar::updateMeters(), and ClientBar::updateModeButton().
Window Widget::window | ( | ) | const |
Definition at line 38 of file widget.cpp.
References window_.
Referenced by Bar::Bar(), Monitor::barWindow(), Box::Box(), Kernel::boxWindow(), Bar::drawBorder(), StatusBar::handleButtonPress(), Menu::handleButtonPress(), ClientBar::handleButtonPress(), ClientBar::handleButtonRelease(), Menu::hide(), Menu::illuminate(), Box::illuminate(), Menu::Menu(), Monitor::menuWindow(), InputBar::runArgument(), InputBar::runKey(), Monitor::scanWindows(), Menu::show(), ClientBar::updateClientInfo(), ClientBar::updateClientPager(), StatusBar::updateInputModeButton(), ClientBar::updateMenuButton(), StatusBar::updateMeters(), and ClientBar::updateModeButton().
void Widget::resize | ( | ) | [virtual] |
Definition at line 96 of file widget.cpp.
References window_, and XCORE.
Referenced by Menu::manage(), and Box::setText().
void Widget::show | ( | ) | [virtual] |
Reimplemented in Menu.
Definition at line 46 of file widget.cpp.
References isVisible_, window_, and XCORE.
Referenced by Binder::handleShortcutChains(), InputBar::runArgument(), InputBar::runKey(), Workspace::show(), Monitor::toggleClientBar(), and Monitor::toggleStatusBar().
void Widget::hide | ( | ) | [virtual] |
Reimplemented in Menu.
Definition at line 51 of file widget.cpp.
References isVisible_, window_, and XCORE.
Referenced by InputBar::escape(), Binder::handleShortcutChains(), Workspace::show(), Monitor::toggleClientBar(), and Monitor::toggleStatusBar().
bool Widget::isVisible | ( | ) | const |
Definition at line 56 of file widget.cpp.
References isVisible_.
Referenced by InputBar::handleInput(), StatusBar::illuminate(), InputBar::illuminate(), ClientBar::illuminate(), Box::illuminate(), Kernel::isInputMode(), Menu::manage(), InputBar::queryText(), InputBar::removeChar(), InputBar::runArgument(), InputBar::runKey(), Monitor::toggleClientBar(), ClientBar::toggleMenuMode(), Monitor::toggleStatusBar(), and Validators::validateInputMode().
void Widget::initWindow | ( | ) | [private] |
Definition at line 60 of file widget.cpp.
References Rectangle::height(), Kernel::installCursor(), KERNEL, monitor_, Cursors::NORMAL_CURSOR, Monitor::rootWindow(), Rectangle::width(), window_, Rectangle::x(), XCORE, and Rectangle::y().
Referenced by Widget().
Here is the call graph for this function:
void Widget::initGC | ( | ) | [private] |
Definition at line 78 of file widget.cpp.
References Monitor::font(), gc_, monitor_, WFont::NORMAL, WFont::type(), window_, and XCORE.
Referenced by Widget().
Here is the call graph for this function:
bool Widget::isVisible_ [protected] |
Definition at line 38 of file widget.h.
Referenced by hide(), Menu::hide(), isVisible(), show(), Menu::show(), and Widget().
GC Widget::gc_ [private] |
Monitor* Widget::monitor_ [private] |
Window Widget::window_ [private] |