Table of Contents

Class SnippetContext

Namespace
GtkSource.Internal
Assembly
GtkSource-5.dll
public class SnippetContext
Inheritance
SnippetContext
Inherited Members

Methods

ClearVariables(IntPtr)

Calls native method gtk_source_snippet_context_clear_variables.

public static extern void ClearVariables(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Expand(IntPtr, NonNullableUtf8StringHandle)

Calls native method gtk_source_snippet_context_expand.

public static extern NonNullableUtf8StringOwnedHandle Expand(IntPtr self, NonNullableUtf8StringHandle input)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

input NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

GetGType()

Calls native function gtk_source_snippet_context_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetVariable(IntPtr, NonNullableUtf8StringHandle)

Calls native method gtk_source_snippet_context_get_variable.

public static extern NullableUtf8StringUnownedHandle GetVariable(IntPtr self, NonNullableUtf8StringHandle key)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

key NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

New()

Calls native constructor gtk_source_snippet_context_new.

public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: Full Nullable: False

SetConstant(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle)

Calls native method gtk_source_snippet_context_set_constant.

public static extern void SetConstant(IntPtr self, NonNullableUtf8StringHandle key, NonNullableUtf8StringHandle value)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

key NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetLinePrefix(IntPtr, NonNullableUtf8StringHandle)

Calls native method gtk_source_snippet_context_set_line_prefix.

public static extern void SetLinePrefix(IntPtr self, NonNullableUtf8StringHandle linePrefix)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

linePrefix NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetTabWidth(IntPtr, int)

Calls native method gtk_source_snippet_context_set_tab_width.

public static extern void SetTabWidth(IntPtr self, int tabWidth)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

tabWidth int

Transfer ownership: None Nullable: False

SetUseSpaces(IntPtr, bool)

Calls native method gtk_source_snippet_context_set_use_spaces.

public static extern void SetUseSpaces(IntPtr self, bool useSpaces)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

useSpaces bool

Transfer ownership: None Nullable: False

SetVariable(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle)

Calls native method gtk_source_snippet_context_set_variable.

public static extern void SetVariable(IntPtr self, NonNullableUtf8StringHandle key, NonNullableUtf8StringHandle value)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

key NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False