SFML community forums

General => Feature requests => Topic started by: Qix on September 27, 2012, 01:05:14 pm

Title: sf::Window::getTitle()
Post by: Qix on September 27, 2012, 01:05:14 pm
std::string sf::Window::getTitle() would be nice.

I would fork it but I'm knee deep in a project right now.

More or less this is a reminder for myself to do it later.
Title: Re: sf::Window::getTitle()
Post by: eXpl0it3r on September 27, 2012, 01:22:06 pm
This feature was requested before, see here (http://en.sfml-dev.org/forums/index.php?topic=2276.0).
The search function can be quite useful...  ::)
Title: Re: sf::Window::getTitle()
Post by: Qix on September 27, 2012, 01:23:03 pm
Grr, I swear I searched for it >.>
Title: Re: sf::Window::getTitle()
Post by: Laurent on September 27, 2012, 02:50:02 pm
Why would you need to get the title of a window?
Title: Re: sf::Window::getTitle()
Post by: Qix on September 27, 2012, 03:13:33 pm
Why would you need to get the title of a window?

*necropost*

Is GetTitle() really necessary?

It'd be useful in cases where the title was changed outside of the program, i.e. by third-party window managers, sandboxes, or macros/scripts.

Plus, as others have said, it would just make sense as a convenience function.
Title: Re: sf::Window::getTitle()
Post by: Laurent on September 27, 2012, 03:39:58 pm
Ok, so you answered in the other topic.

http://en.sfml-dev.org/forums/index.php?topic=2276.0