wmi

git clone git://oldgit.suckless.org/wmi/
Log | Files | Refs | LICENSE

box.h (525B)


      1 // Copyright (c) 2003 - 2009 Anselm R Garbe <anselm@garbe.us>
      2 // See LICENSE for license details.
      3 
      4 #ifndef __BOX_H
      5 #define __BOX_H
      6 
      7 extern "C" {
      8 #include <X11/Xlib.h>
      9 }
     10 
     11 #include <string>
     12 
     13 #include "widget.h"
     14 #include "wmi.h"
     15 
     16 class Label;
     17 class Monitor;
     18 class Theme;
     19 
     20 /** Basic info box. */
     21 class Box : public Widget {
     22 
     23 public:
     24 
     25     Box(Monitor *monitor, Rectangle *rect, string text);
     26     ~Box();
     27 
     28     void setText(string text);
     29     void illuminate();
     30 
     31 private:
     32 
     33     Label *label_;
     34     Theme *theme_;
     35 };
     36 
     37 #endif // __BOX_H