Box Class Reference

#include <box.h>

Inherits Widget.

Inheritance diagram for Box:

Inheritance graph
[legend]
Collaboration diagram for Box:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Box (Monitor *monitor, Rectangle *rect, string text)
 ~Box ()
void setText (string text)
void illuminate ()

Private Attributes

Labellabel_
Themetheme_

Detailed Description

Basic info box.

Definition at line 23 of file box.h.


Constructor & Destructor Documentation

Box::Box ( Monitor monitor,
Rectangle rect,
string  text 
)

Definition at line 14 of file box.cpp.

References Label::CENTER, Widget::gc(), Rectangle::height(), label_, Widget::monitor(), Rectangle::setHeight(), setText(), Rectangle::setX(), Rectangle::setY(), Monitor::theme(), theme_, and Widget::window().

Here is the call graph for this function:

Box::~Box (  ) 

Definition at line 25 of file box.cpp.

References label_.


Member Function Documentation

void Box::setText ( string  text  ) 

Definition at line 29 of file box.cpp.

References Label::adjustWidth(), label_, Widget::monitor(), Widget::resize(), Label::setText(), Rectangle::setWidth(), Rectangle::setX(), and Rectangle::width().

Referenced by Box(), and Binder::handleShortcutChains().

Here is the call graph for this function:

void Box::illuminate (  ) 

Definition at line 37 of file box.cpp.

References Theme::BAR_SHADOW, Theme::BAR_SHINE, Draw::drawRectBorder(), Widget::gc(), Rectangle::height(), Widget::isVisible(), label_, Theme::TAB_BACKGROUND_ACTIVE_FOCUSSED, Theme::TAB_SHADOW_ACTIVE_FOCUSSED, Theme::TAB_SHINE_ACTIVE_FOCUSSED, Theme::TAB_TEXT_ACTIVE_FOCUSSED, theme_, Label::update(), Rectangle::width(), Widget::window(), and XCORE.

Referenced by Binder::handleShortcutChains().

Here is the call graph for this function:


Member Data Documentation

Label* Box::label_ [private]

Definition at line 35 of file box.h.

Referenced by Box(), illuminate(), setText(), and ~Box().

Theme* Box::theme_ [private]

Definition at line 36 of file box.h.

Referenced by Box(), and illuminate().


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