1 /* 2 ** Copyright 2002, Double Precision Inc. 3 ** 4 ** See COPYING for distribution information. 5 */ 6 7 #ifndef cursestitlebar_H 8 #define cursestitlebar_H 9 10 #include "mycurses.H" 11 12 #include <string> 13 14 // 15 // The title bar - moves itself to the first line on the parent screen, 16 // centers the title. 17 // 18 19 class CursesTitleBar : public Curses { 20 21 std::string title; 22 std::string leftTitle; 23 std::string rightTitle; 24 25 CursesAttr attribute; 26 27 public: 28 CursesTitleBar(CursesContainer *parent, std::string title); 29 ~CursesTitleBar(); 30 31 void setTitles(std::string left, std::string right); 32 33 void setAttribute(CursesAttr attr); 34 35 int getWidth() const; 36 int getHeight() const; 37 void draw(); 38 }; 39 40 #endif 41