Table of Contents

Class Clipboard

Namespace
Gdk.Internal
Assembly
Gdk-4.0.dll
public class Clipboard
Inheritance
Clipboard
Inherited Members

Methods

GetContent(IntPtr)

Calls native method gdk_clipboard_get_content.

public static extern IntPtr GetContent(IntPtr clipboard)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetDisplay(IntPtr)

Calls native method gdk_clipboard_get_display.

public static extern IntPtr GetDisplay(IntPtr clipboard)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetFormats(IntPtr)

Calls native method gdk_clipboard_get_formats.

public static extern ContentFormatsUnownedHandle GetFormats(IntPtr clipboard)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

Returns

ContentFormatsUnownedHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function gdk_clipboard_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

IsLocal(IntPtr)

Calls native method gdk_clipboard_is_local.

public static extern bool IsLocal(IntPtr clipboard)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

ReadAsync(IntPtr, Utf8StringArrayNullTerminatedHandle, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method gdk_clipboard_read_async.

public static extern void ReadAsync(IntPtr clipboard, Utf8StringArrayNullTerminatedHandle mimeTypes, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

mimeTypes Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

ReadFinish(IntPtr, IntPtr, out NonNullableUtf8StringUnownedHandle, out ErrorOwnedHandle)

Calls native method gdk_clipboard_read_finish.

public static extern IntPtr ReadFinish(IntPtr clipboard, IntPtr result, out NonNullableUtf8StringUnownedHandle outMimeType, out ErrorOwnedHandle error)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

outMimeType NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

ReadTextAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method gdk_clipboard_read_text_async.

public static extern void ReadTextAsync(IntPtr clipboard, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

ReadTextFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method gdk_clipboard_read_text_finish.

public static extern NullableUtf8StringOwnedHandle ReadTextFinish(IntPtr clipboard, IntPtr result, out ErrorOwnedHandle error)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

ReadTextureAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method gdk_clipboard_read_texture_async.

public static extern void ReadTextureAsync(IntPtr clipboard, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

ReadTextureFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method gdk_clipboard_read_texture_finish.

public static extern IntPtr ReadTextureFinish(IntPtr clipboard, IntPtr result, out ErrorOwnedHandle error)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

ReadValueAsync(IntPtr, Type, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method gdk_clipboard_read_value_async.

public static extern void ReadValueAsync(IntPtr clipboard, Type type, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

type Type

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

ReadValueFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method gdk_clipboard_read_value_finish.

public static extern ValueUnownedHandle ReadValueFinish(IntPtr clipboard, IntPtr result, out ErrorOwnedHandle error)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

ValueUnownedHandle

Transfer ownership: None Nullable: False

Set(IntPtr, ValueHandle)

Calls native method gdk_clipboard_set_value.

public static extern void Set(IntPtr clipboard, ValueHandle value)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

value ValueHandle

Transfer ownership: None Nullable: False

SetContent(IntPtr, IntPtr)

Calls native method gdk_clipboard_set_content.

public static extern bool SetContent(IntPtr clipboard, IntPtr provider)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

provider IntPtr

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

SetText(IntPtr, NonNullableUtf8StringHandle)

Calls native method gdk_clipboard_set_text.

public static extern void SetText(IntPtr clipboard, NonNullableUtf8StringHandle text)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

text NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetTexture(IntPtr, IntPtr)

Calls native method gdk_clipboard_set_texture.

public static extern void SetTexture(IntPtr clipboard, IntPtr texture)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

texture IntPtr

Transfer ownership: None Nullable: False

SetValist(IntPtr, Type, IntPtr)

Calls native method gdk_clipboard_set_valist.

public static extern void SetValist(IntPtr clipboard, Type type, IntPtr args)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

type Type

Transfer ownership: None Nullable: False

args IntPtr

Transfer ownership: None Nullable: False

StoreAsync(IntPtr, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method gdk_clipboard_store_async.

public static extern void StoreAsync(IntPtr clipboard, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

StoreFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method gdk_clipboard_store_finish.

public static extern bool StoreFinish(IntPtr clipboard, IntPtr result, out ErrorOwnedHandle error)

Parameters

clipboard IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False