00001 // Copyright (c) 2003 - 2004 Anselm R. Garbe <anselmg at t-online.de> 00002 // See ../LICENSE.txt for license details. 00003 // 00004 // $Id: box.h 7 2007-05-24 11:03:53Z eg1981 $ 00005 00006 #ifndef __BOX_H 00007 #define __BOX_H 00008 00009 extern "C" { 00010 #include <X11/Xlib.h> 00011 } 00012 00013 #include <string> 00014 00015 #include "widget.h" 00016 #include "ncwm.h" 00017 00018 class Label; 00019 class Monitor; 00020 class Theme; 00021 00023 class Box : public Widget { 00024 00025 public: 00026 00027 Box(Monitor *monitor, Rectangle *rect, string text); 00028 ~Box(); 00029 00030 void setText(string text); 00031 void illuminate(); 00032 00033 private: 00034 00035 Label *label_; 00036 Theme *theme_; 00037 }; 00038 00039 #endif // __BOX_H