mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-22 10:29:47 +00:00
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:
parent
14fa7e5fd2
commit
1dbd445027
1 changed files with 4 additions and 1 deletions
|
|
@ -44,7 +44,10 @@ public:
|
||||||
|
|
||||||
virtual void setTitle(const std::string& title) = 0;
|
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 {
|
virtual int getDecorationHeight() const {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue