Widget Class Reference

#include <widget.h>

Inherits Rectangle.

Inherited by Bar, Box, and Menu.

Inheritance diagram for Widget:

Inheritance graph
[legend]
Collaboration diagram for Widget:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Widget (Monitor *monitor, Rectangle *rect, bool initWindowAndGC=true)
virtual ~Widget ()
Monitormonitor () 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_
Monitormonitor_
Window window_

Detailed Description

Base class for widgets, such as menu, bar, slot, thing.

Definition at line 18 of file widget.h.


Constructor & Destructor Documentation

Widget::Widget ( Monitor monitor,
Rectangle rect,
bool  initWindowAndGC = true 
)

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]

Definition at line 29 of file widget.cpp.

References gc_, window_, and XCORE.


Member Function Documentation

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:


Member Data Documentation

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]

Definition at line 45 of file widget.h.

Referenced by gc(), initGC(), Widget(), and ~Widget().

Monitor* Widget::monitor_ [private]

Definition at line 46 of file widget.h.

Referenced by initGC(), initWindow(), monitor(), and Widget().

Window Widget::window_ [private]

Definition at line 47 of file widget.h.

Referenced by hide(), initGC(), initWindow(), resize(), show(), Widget(), window(), and ~Widget().


The documentation for this class was generated from the following files:
Generated on Thu May 24 15:20:29 2007 for ncwm by  doxygen 1.5.1