mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[client,sdl] add toString for SDL_Rect
This commit is contained in:
@@ -474,6 +474,21 @@ namespace sdl::utils
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
std::string toString(SDL_Rect rect)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "SDL_Rect{" << rect.x << "x" << rect.y << "-" << rect.w << "x" << rect.h << "}";
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
std::string toString(SDL_FRect rect)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "SDL_Rect{" << rect.x << "x" << rect.y << "-" << rect.w << "x" << rect.h << "}";
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
} // namespace sdl::utils
|
||||
|
||||
namespace sdl::error
|
||||
|
||||
@@ -86,6 +86,8 @@ namespace sdl::utils
|
||||
[[nodiscard]] std::string toString(SDL_DisplayOrientation orientation);
|
||||
[[nodiscard]] std::string toString(const SDL_DisplayMode* mode);
|
||||
[[nodiscard]] std::string toString(Uint32 type);
|
||||
[[nodiscard]] std::string toString(SDL_Rect rect);
|
||||
[[nodiscard]] std::string toString(SDL_FRect rect);
|
||||
|
||||
[[nodiscard]] UINT32 orientaion_to_rdp(SDL_DisplayOrientation orientation);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user