QSFML
|
(almost) QString castable to sf::String More...
#include <string.hpp>
Public Member Functions | |
template<typename T > | |
String (T obj) | |
Quite universal constructor. More... | |
String (std::string obj) | |
std::string constructor More... | |
String (sf::String str) | |
sf::String constructor More... | |
template<typename T > | |
String | arg (T var) const |
QString::arg() method overload, takes any supported type. More... | |
String | arg (sf::String str) const |
QString::arg() method overload, takes sf::String as parameter. More... | |
String | arg (String str) const |
QString::arg() method overload, takes qsf::String as parameter. More... | |
operator sf::String const () | |
Operator allowing casting to sf::String. More... | |
Static Public Member Functions | |
template<typename T > | |
static String | number (T num) |
QString::number() method overload. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const String &string) |
std::ostream << operator support More... | |
(almost) QString castable to sf::String
Use this class to operate on QString and use it in sf::Text::setString() etc.
|
inline |
Quite universal constructor.
[in] | obj | – object/variable |
Can take as parameter any variable or object, that can be given to QString constructor.
Calls QString(ojb).
qsf::String::String | ( | std::string | obj | ) |
std::string constructor
[in] | obj | – std::string instance |
Allows initializing String using std::string object.
qsf::String::String | ( | sf::String | str | ) |
sf::String constructor
[in] | obj | – sf::String instance |
Allows initializing String using sf::String object.
|
inline |
QString::arg() method overload, takes any supported type.
[in] | var | – Argument |
Overload QString::arg() method from QString, so it could return qsf::String
String qsf::String::arg | ( | sf::String | str | ) | const |
QString::arg() method overload, takes sf::String as parameter.
[in] | var | – Argument |
Overload QString::arg() method from QString taking sf::String as parameter.
QString::arg() method overload, takes qsf::String as parameter.
[in] | var | – Argument |
Overload QString::arg() method from QString taking qsf::String as parameter.
|
inlinestatic |
QString::number() method overload.
[in] | num | – Number |
Does exact same thing as QString::number(), but returns qsf::String instead of QString.
qsf::String::operator sf::String const | ( | ) |
Operator allowing casting to sf::String.
|
friend |
std::ostream << operator support
Allows printing qsf::String to std::ostream like that: