give Window::getTitle a default implementation

Keeps the interface non-breaking for other window backends: the
decoration height and hovered button already have defaults, and now so
does the title.
This commit is contained in:
alexei-zebra 2026-10-09 01:21:24 +03:00
parent 14fa7e5fd2
commit 1dbd445027
No known key found for this signature in database
GPG key ID: D19D450AC3D9A80E

View file

@ -44,7 +44,10 @@ public:
virtual void setTitle(const std::string& title) = 0;
virtual const std::string& getTitle() const = 0;
virtual const std::string& getTitle() const {
static const std::string empty;
return empty;
}
virtual int getDecorationHeight() const {
return 0;