Table of Contents

Class Clipboard

Namespace
Gdk
Assembly
Gdk-4.0.dll
public class Clipboard : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Clipboard
Implements
Inherited Members

Constructors

Clipboard(bool, params ConstructArgument[])

protected Clipboard(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Clipboard(IntPtr, bool)

protected Clipboard(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

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

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, IntPtr)

public void SetValist(Type type, IntPtr args)

Parameters

type Type
args IntPtr

StoreFinish(AsyncResult)

public bool StoreFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

Events

OnChanged

public event SignalHandler<Clipboard> OnChanged

Event Type

SignalHandler<Clipboard>