status-bar.cpp 432 B

12345678910111213141516171819202122232425
  1. #if defined(Hiro_StatusBar)
  2. auto mStatusBar::allocate() -> pObject* {
  3. return new pStatusBar(*this);
  4. }
  5. //
  6. auto mStatusBar::remove() -> type& {
  7. if(auto window = parentWindow()) window->remove(window->statusBar());
  8. return *this;
  9. }
  10. auto mStatusBar::setText(const string& text) -> type& {
  11. state.text = text;
  12. signal(setText, text);
  13. return *this;
  14. }
  15. auto mStatusBar::text() const -> string {
  16. return state.text;
  17. }
  18. #endif