Optional<Size> clipboard_get_size(){ Clipboard clip; if (!clip.Good()){ return no_option(); } else if (auto maybeStr = clip.GetText()){ return deserialize_size(maybeStr.Get()); } return no_option(); }
void clipboard_copy_size(const Size& size){ Clipboard clip; if (clip.Good()){ clip.SetText(serialize_size(size)); } }