MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / SetClipboard

Function SetClipboard

src/utils.cpp:139–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void SetClipboard(std::string const& new_data) {
140 wxClipboard *cb = wxClipboard::Get();
141 if (cb->Open()) {
142 cb->SetData(new wxTextDataObject(to_wx(new_data)));
143 cb->Flush();
144 cb->Close();
145 }
146}
147
148void SetClipboard(wxBitmap const& new_data) {
149 wxClipboard *cb = wxClipboard::Get();

Callers 4

CopyToClipboardMethod · 0.85
CopyTimeMethod · 0.85
operator()Function · 0.85
copy_linesFunction · 0.85

Calls 4

to_wxFunction · 0.70
OpenMethod · 0.45
FlushMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected