....that!

This commit is contained in:
2025-11-18 00:56:32 -05:00
parent 34948292ae
commit be772481f6
18 changed files with 374 additions and 162 deletions
+4 -8
View File
@@ -4,6 +4,8 @@
namespace anm2ed
{
Clipboard::Clipboard() { set(""); }
std::string Clipboard::get()
{
auto text = SDL_GetClipboardText();
@@ -13,13 +15,7 @@ namespace anm2ed
return string;
}
bool Clipboard::is_empty()
{
return get().empty();
}
bool Clipboard::is_empty() { return get().empty(); }
void Clipboard::set(const std::string& string)
{
SDL_SetClipboardText(string.data());
}
void Clipboard::set(const std::string& string) { SDL_SetClipboardText(string.data()); }
}