Add virtual title() to View class.

This commit is contained in:
Jared Boone 2016-01-26 13:01:16 -08:00
parent a13e19a907
commit 0efe2ea0ae
2 changed files with 6 additions and 0 deletions

View File

@ -247,6 +247,10 @@ Widget* View::initial_focus() {
return nullptr; return nullptr;
} }
std::string View::title() const {
return "";
};
/* Rectangle *************************************************************/ /* Rectangle *************************************************************/
Rectangle::Rectangle( Rectangle::Rectangle(

View File

@ -155,6 +155,8 @@ public:
virtual Widget* initial_focus(); virtual Widget* initial_focus();
virtual std::string title() const;
protected: protected:
std::vector<Widget*> children_; std::vector<Widget*> children_;
Rect dirty_screen_rect; Rect dirty_screen_rect;