Table of Contents

Class Clipboard

Namespace
Gdk
Assembly
Gdk-4.0.dll
public class Clipboard : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
Clipboard
Implements
Inherited Members

Constructors

Clipboard(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Clipboard(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Clipboard(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Clipboard(CreationData data)

Parameters

data CreationData

Clipboard(ClipboardHandle)

protected Clipboard(ClipboardHandle handle)

Parameters

handle ClipboardHandle

Fields

ChangedSignal

Signal Descriptor for OnChanged.

public static readonly Signal<Clipboard> ChangedSignal

Field Value

Signal<Clipboard>

ContentPropertyDefinition

public static readonly Property<ContentProvider?, Clipboard> ContentPropertyDefinition

Field Value

Property<ContentProvider, Clipboard>

DisplayPropertyDefinition

public static readonly Property<Display?, Clipboard> DisplayPropertyDefinition

Field Value

Property<Display, Clipboard>

FormatsPropertyDefinition

public static readonly Property<ContentFormats, Clipboard> FormatsPropertyDefinition

Field Value

Property<ContentFormats, Clipboard>

LocalPropertyDefinition

public static readonly Property<bool, Clipboard> LocalPropertyDefinition

Field Value

Property<bool, Clipboard>

Properties

Content

public ContentProvider? Content { get; }

Property Value

ContentProvider

Display

public Display? Display { get; }

Property Value

Display

Formats

public ContentFormats Formats { get; }

Property Value

ContentFormats

Local

public bool Local { get; }

Property Value

bool

Methods

GetContent()

public ContentProvider? GetContent()

Returns

ContentProvider

GetDisplay()

public Display GetDisplay()

Returns

Display

GetFormats()

public ContentFormats GetFormats()

Returns

ContentFormats

GetGType()

public static Type GetGType()

Returns

Type

IsLocal()

public bool IsLocal()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed Clipboard instance for a given pointer.

public static Clipboard NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Clipboard

NewWithProperties(ConstructArgument[])

Creates a new Clipboard and sets the properties specified by the construct arguments.

public static Clipboard NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Clipboard

ReadFinish(AsyncResult, out string)

public InputStream? ReadFinish(AsyncResult result, out string outMimeType)

Parameters

result AsyncResult
outMimeType string

Returns

InputStream

ReadTextAsync()

public Task<string?> ReadTextAsync()

Returns

Task<string>

ReadTextFinish(AsyncResult)

public string? ReadTextFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

string

ReadTextureFinish(AsyncResult)

public Texture? ReadTextureFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

Texture

ReadValueFinish(AsyncResult)

public Value ReadValueFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

Value

Set(Value)

public void Set(Value value)

Parameters

value Value

SetContent(ContentProvider?)

public bool SetContent(ContentProvider? provider)

Parameters

provider ContentProvider

Returns

bool

SetText(string)

public void SetText(string text)

Parameters

text string

SetTexture(Texture)

public void SetTexture(Texture texture)

Parameters

texture Texture

SetValist(Type, nint)

public void SetValist(Type type, nint args)

Parameters

type Type
args nint

StoreFinish(AsyncResult)

public bool StoreFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

Events

OnChanged

public event SignalHandler<Clipboard> OnChanged

Event Type

SignalHandler<Clipboard>