Class SdlClipboard
IClipboard over SDL's own clipboard, which is the platform's.
public sealed class SdlClipboard : IClipboard
- Inheritance
-
SdlClipboard
- Implements
- Inherited Members
Remarks
SDL is already the owner of this: the ImGui layer has been reading and writing the
clipboard through these same two calls since it was written (see
ImGuiSdlRenderer). This exists so the UI's own controls can do it too, rather than
the ability being reachable only from a debug overlay.
Properties
Instance
The clipboard. There is one.
public static SdlClipboard Instance { get; }
Property Value
Methods
GetText()
Returns the clipboard text, or an empty string when there is none.
public string GetText()
Returns
SetText(string)
Puts text on the clipboard. Null is written as an empty string.
public void SetText(string text)
Parameters
textstring