Table of Contents

Class SdlClipboard

Namespace
BSGameLib.Game.Input
Assembly
BSGameLib.Game.dll

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

SdlClipboard

Methods

GetText()

Returns the clipboard text, or an empty string when there is none.

public string GetText()

Returns

string

SetText(string)

Puts text on the clipboard. Null is written as an empty string.

public void SetText(string text)

Parameters

text string