Table of Contents

Class Functions

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

Methods

CairoDrawFromGl(ContextHandle, IntPtr, int, int, int, int, int, int, int)

Calls native function gdk_cairo_draw_from_gl.

public static extern void CairoDrawFromGl(ContextHandle cr, IntPtr surface, int source, int sourceType, int bufferScale, int x, int y, int width, int height)

Parameters

cr ContextHandle

Transfer ownership: None Nullable: False

surface IntPtr

Transfer ownership: None Nullable: False

source int

Transfer ownership: None Nullable: False

sourceType int

Transfer ownership: None Nullable: False

bufferScale int

Transfer ownership: None Nullable: False

x int

Transfer ownership: None Nullable: False

y int

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

CairoRectangle(ContextHandle, RectangleHandle)

Calls native function gdk_cairo_rectangle.

public static extern void CairoRectangle(ContextHandle cr, RectangleHandle rectangle)

Parameters

cr ContextHandle

Transfer ownership: None Nullable: False

rectangle RectangleHandle

Transfer ownership: None Nullable: False

CairoRegion(ContextHandle, RegionHandle)

Calls native function gdk_cairo_region.

public static extern void CairoRegion(ContextHandle cr, RegionHandle region)

Parameters

cr ContextHandle

Transfer ownership: None Nullable: False

region RegionHandle

Transfer ownership: None Nullable: False

CairoRegionCreateFromSurface(SurfaceHandle)

Calls native function gdk_cairo_region_create_from_surface.

public static extern RegionOwnedHandle CairoRegionCreateFromSurface(SurfaceHandle surface)

Parameters

surface SurfaceHandle

Transfer ownership: None Nullable: False

Returns

RegionOwnedHandle

Transfer ownership: Full Nullable: False

CairoSetSourcePixbuf(ContextHandle, IntPtr, double, double)

Calls native function gdk_cairo_set_source_pixbuf.

public static extern void CairoSetSourcePixbuf(ContextHandle cr, IntPtr pixbuf, double pixbufX, double pixbufY)

Parameters

cr ContextHandle

Transfer ownership: None Nullable: False

pixbuf IntPtr

Transfer ownership: None Nullable: False

pixbufX double

Transfer ownership: None Nullable: False

pixbufY double

Transfer ownership: None Nullable: False

CairoSetSourceRgba(ContextHandle, RGBAHandle)

Calls native function gdk_cairo_set_source_rgba.

public static extern void CairoSetSourceRgba(ContextHandle cr, RGBAHandle rgba)

Parameters

cr ContextHandle

Transfer ownership: None Nullable: False

rgba RGBAHandle

Transfer ownership: None Nullable: False

ContentDeserializeAsync(IntPtr, NonNullableUtf8StringHandle, Type, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native function gdk_content_deserialize_async.

public static extern void ContentDeserializeAsync(IntPtr stream, NonNullableUtf8StringHandle mimeType, Type type, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

stream IntPtr

Transfer ownership: None Nullable: False

mimeType NonNullableUtf8StringHandle

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

ContentFormatsParse(NonNullableUtf8StringHandle)

Calls native function gdk_content_formats_parse. Version: 4.4

[Version("4.4")]
public static extern ContentFormatsOwnedHandle ContentFormatsParse(NonNullableUtf8StringHandle @string)

Parameters

string NonNullableUtf8StringHandle

Returns

ContentFormatsOwnedHandle

Transfer ownership: Full Nullable: True

ContentRegisterDeserializer(NonNullableUtf8StringHandle, Type, ContentDeserializeFunc, IntPtr, DestroyNotify)

Calls native function gdk_content_register_deserializer.

public static extern void ContentRegisterDeserializer(NonNullableUtf8StringHandle mimeType, Type type, ContentDeserializeFunc deserialize, IntPtr data, DestroyNotify notify)

Parameters

mimeType NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

type Type

Transfer ownership: None Nullable: False

deserialize ContentDeserializeFunc

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

notify DestroyNotify

Transfer ownership: None Nullable: False

ContentRegisterSerializer(Type, NonNullableUtf8StringHandle, ContentSerializeFunc, IntPtr, DestroyNotify)

Calls native function gdk_content_register_serializer.

public static extern void ContentRegisterSerializer(Type type, NonNullableUtf8StringHandle mimeType, ContentSerializeFunc serialize, IntPtr data, DestroyNotify notify)

Parameters

type Type

Transfer ownership: None Nullable: False

mimeType NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

serialize ContentSerializeFunc

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

notify DestroyNotify

Transfer ownership: None Nullable: False

ContentSerializeAsync(IntPtr, NonNullableUtf8StringHandle, ValueHandle, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native function gdk_content_serialize_async.

public static extern void ContentSerializeAsync(IntPtr stream, NonNullableUtf8StringHandle mimeType, ValueHandle value, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

stream IntPtr

Transfer ownership: None Nullable: False

mimeType NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value ValueHandle

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

ContentSerializeFinish(IntPtr, out ErrorOwnedHandle)

Calls native function gdk_content_serialize_finish.

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

Parameters

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

DmabufErrorQuark()

Calls native function gdk_dmabuf_error_quark.

public static extern uint DmabufErrorQuark()

Returns

uint

Transfer ownership: None Nullable: False

DragActionIsUnique(DragAction)

Calls native function gdk_drag_action_is_unique.

public static extern bool DragActionIsUnique(DragAction action)

Parameters

action DragAction

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

DragSurfaceSizeGetType()

Calls native function gdk_drag_surface_size_get_type.

public static extern nuint DragSurfaceSizeGetType()

Returns

nuint

Transfer ownership: None Nullable: False

EventsGetAngle(IntPtr, IntPtr, out double)

Calls native function gdk_events_get_angle.

public static extern bool EventsGetAngle(IntPtr event1, IntPtr event2, out double angle)

Parameters

event1 IntPtr

Transfer ownership: None Nullable: False

event2 IntPtr

Transfer ownership: None Nullable: False

angle double

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

EventsGetCenter(IntPtr, IntPtr, out double, out double)

Calls native function gdk_events_get_center.

public static extern bool EventsGetCenter(IntPtr event1, IntPtr event2, out double x, out double y)

Parameters

event1 IntPtr

Transfer ownership: None Nullable: False

event2 IntPtr

Transfer ownership: None Nullable: False

x double

Transfer ownership: Full Nullable: False

y double

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

EventsGetDistance(IntPtr, IntPtr, out double)

Calls native function gdk_events_get_distance.

public static extern bool EventsGetDistance(IntPtr event1, IntPtr event2, out double distance)

Parameters

event1 IntPtr

Transfer ownership: None Nullable: False

event2 IntPtr

Transfer ownership: None Nullable: False

distance double

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GlErrorQuark()

Calls native function gdk_gl_error_quark.

public static extern uint GlErrorQuark()

Returns

uint

Transfer ownership: None Nullable: False

InternMimeType(NonNullableUtf8StringHandle)

Calls native function gdk_intern_mime_type.

public static extern NullableUtf8StringUnownedHandle InternMimeType(NonNullableUtf8StringHandle @string)

Parameters

string NonNullableUtf8StringHandle

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

KeyvalConvertCase(uint, out uint, out uint)

Calls native function gdk_keyval_convert_case.

public static extern void KeyvalConvertCase(uint symbol, out uint lower, out uint upper)

Parameters

symbol uint

Transfer ownership: None Nullable: False

lower uint

Transfer ownership: Full Nullable: False

upper uint

Transfer ownership: Full Nullable: False

KeyvalFromName(NonNullableUtf8StringHandle)

Calls native function gdk_keyval_from_name.

public static extern uint KeyvalFromName(NonNullableUtf8StringHandle keyvalName)

Parameters

keyvalName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

KeyvalIsLower(uint)

Calls native function gdk_keyval_is_lower.

public static extern bool KeyvalIsLower(uint keyval)

Parameters

keyval uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

KeyvalIsUpper(uint)

Calls native function gdk_keyval_is_upper.

public static extern bool KeyvalIsUpper(uint keyval)

Parameters

keyval uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

KeyvalName(uint)

Calls native function gdk_keyval_name.

public static extern NullableUtf8StringUnownedHandle KeyvalName(uint keyval)

Parameters

keyval uint

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

KeyvalToLower(uint)

Calls native function gdk_keyval_to_lower.

public static extern uint KeyvalToLower(uint keyval)

Parameters

keyval uint

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

KeyvalToUnicode(uint)

Calls native function gdk_keyval_to_unicode.

public static extern uint KeyvalToUnicode(uint keyval)

Parameters

keyval uint

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

KeyvalToUpper(uint)

Calls native function gdk_keyval_to_upper.

public static extern uint KeyvalToUpper(uint keyval)

Parameters

keyval uint

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

PaintableNewEmpty(int, int)

Calls native function gdk_paintable_new_empty.

public static extern IntPtr PaintableNewEmpty(int intrinsicWidth, int intrinsicHeight)

Parameters

intrinsicWidth int

Transfer ownership: None Nullable: False

intrinsicHeight int

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

PangoLayoutGetClipRegion(IntPtr, int, int, ref int, int)

Calls native function gdk_pango_layout_get_clip_region.

public static extern RegionOwnedHandle PangoLayoutGetClipRegion(IntPtr layout, int xOrigin, int yOrigin, ref int indexRanges, int nRanges)

Parameters

layout IntPtr

Transfer ownership: None Nullable: False

xOrigin int

Transfer ownership: None Nullable: False

yOrigin int

Transfer ownership: None Nullable: False

indexRanges int

Transfer ownership: None Nullable: False

nRanges int

Transfer ownership: None Nullable: False

Returns

RegionOwnedHandle

Transfer ownership: Full Nullable: False

PangoLayoutLineGetClipRegion(LayoutLineHandle, int, int, ref int, int)

Calls native function gdk_pango_layout_line_get_clip_region.

public static extern RegionOwnedHandle PangoLayoutLineGetClipRegion(LayoutLineHandle line, int xOrigin, int yOrigin, ref int indexRanges, int nRanges)

Parameters

line LayoutLineHandle

Transfer ownership: None Nullable: False

xOrigin int

Transfer ownership: None Nullable: False

yOrigin int

Transfer ownership: None Nullable: False

indexRanges int

Transfer ownership: None Nullable: False

nRanges int

Transfer ownership: None Nullable: False

Returns

RegionOwnedHandle

Transfer ownership: Full Nullable: False

PixbufGetFromSurface(SurfaceHandle, int, int, int, int)

Calls native function gdk_pixbuf_get_from_surface.

public static extern IntPtr PixbufGetFromSurface(SurfaceHandle surface, int srcX, int srcY, int width, int height)

Parameters

surface SurfaceHandle

Transfer ownership: None Nullable: False

srcX int

Transfer ownership: None Nullable: False

srcY int

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

PixbufGetFromTexture(IntPtr)

Calls native function gdk_pixbuf_get_from_texture.

public static extern IntPtr PixbufGetFromTexture(IntPtr texture)

Parameters

texture IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

SetAllowedBackends(NonNullableUtf8StringHandle)

Calls native function gdk_set_allowed_backends.

public static extern void SetAllowedBackends(NonNullableUtf8StringHandle backends)

Parameters

backends NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

TextureErrorQuark()

Calls native function gdk_texture_error_quark.

public static extern uint TextureErrorQuark()

Returns

uint

Transfer ownership: None Nullable: False

ToplevelSizeGetType()

Calls native function gdk_toplevel_size_get_type.

public static extern nuint ToplevelSizeGetType()

Returns

nuint

Transfer ownership: None Nullable: False

UnicodeToKeyval(uint)

Calls native function gdk_unicode_to_keyval.

public static extern uint UnicodeToKeyval(uint wc)

Parameters

wc uint

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

VulkanErrorQuark()

Calls native function gdk_vulkan_error_quark.

public static extern uint VulkanErrorQuark()

Returns

uint

Transfer ownership: None Nullable: False