Table of Contents

Class MarkupParseContext

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public class MarkupParseContext
Inheritance
MarkupParseContext
Inherited Members

Methods

EndParse(MarkupParseContextHandle, out ErrorOwnedHandle)

Calls native method g_markup_parse_context_end_parse.

public static extern bool EndParse(MarkupParseContextHandle context, out ErrorOwnedHandle error)

Parameters

context MarkupParseContextHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

Free(MarkupParseContextHandle)

Calls native method g_markup_parse_context_free.

public static extern void Free(MarkupParseContextHandle context)

Parameters

context MarkupParseContextHandle

Transfer ownership: None Nullable: False

GetElement(MarkupParseContextHandle)

Calls native method g_markup_parse_context_get_element. Version: 2.2

[Version("2.2")]
public static extern NonNullableUtf8StringUnownedHandle GetElement(MarkupParseContextHandle context)

Parameters

context MarkupParseContextHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetElementStack(MarkupParseContextHandle)

Calls native method g_markup_parse_context_get_element_stack. Version: 2.16

[Version("2.16")]
public static extern SListUnownedHandle GetElementStack(MarkupParseContextHandle context)

Parameters

context MarkupParseContextHandle

Transfer ownership: None Nullable: False

Returns

SListUnownedHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_markup_parse_context_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetPosition(MarkupParseContextHandle, out int, out int)

Calls native method g_markup_parse_context_get_position.

public static extern void GetPosition(MarkupParseContextHandle context, out int lineNumber, out int charNumber)

Parameters

context MarkupParseContextHandle

Transfer ownership: None Nullable: False

lineNumber int

Transfer ownership: Full Nullable: False

charNumber int

Transfer ownership: Full Nullable: False

GetUserData(MarkupParseContextHandle)

Calls native method g_markup_parse_context_get_user_data. Version: 2.18

[Version("2.18")]
public static extern IntPtr GetUserData(MarkupParseContextHandle context)

Parameters

context MarkupParseContextHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

New(MarkupParserHandle, MarkupParseFlags, IntPtr, DestroyNotify)

Calls native constructor g_markup_parse_context_new.

public static extern MarkupParseContextOwnedHandle New(MarkupParserHandle parser, MarkupParseFlags flags, IntPtr userData, DestroyNotify userDataDnotify)

Parameters

parser MarkupParserHandle

Transfer ownership: None Nullable: False

flags MarkupParseFlags

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

userDataDnotify DestroyNotify

Transfer ownership: None Nullable: False

Returns

MarkupParseContextOwnedHandle

Transfer ownership: Full Nullable: False

Parse(MarkupParseContextHandle, NonNullableUtf8StringHandle, long, out ErrorOwnedHandle)

Calls native method g_markup_parse_context_parse.

public static extern bool Parse(MarkupParseContextHandle context, NonNullableUtf8StringHandle text, long textLen, out ErrorOwnedHandle error)

Parameters

context MarkupParseContextHandle

Transfer ownership: None Nullable: False

text NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

textLen long

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

Pop(MarkupParseContextHandle)

Calls native method g_markup_parse_context_pop. Version: 2.18

[Version("2.18")]
public static extern IntPtr Pop(MarkupParseContextHandle context)

Parameters

context MarkupParseContextHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

Push(MarkupParseContextHandle, MarkupParserHandle, IntPtr)

Calls native method g_markup_parse_context_push. Version: 2.18

[Version("2.18")]
public static extern void Push(MarkupParseContextHandle context, MarkupParserHandle parser, IntPtr userData)

Parameters

context MarkupParseContextHandle

Transfer ownership: None Nullable: False

parser MarkupParserHandle

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

Ref(MarkupParseContextHandle)

Calls native method g_markup_parse_context_ref. Version: 2.36

[Version("2.36")]
public static extern MarkupParseContextOwnedHandle Ref(MarkupParseContextHandle context)

Parameters

context MarkupParseContextHandle

Transfer ownership: None Nullable: False

Returns

MarkupParseContextOwnedHandle

Transfer ownership: Full Nullable: False

Unref(MarkupParseContextHandle)

Calls native method g_markup_parse_context_unref. Version: 2.36

[Version("2.36")]
public static extern void Unref(MarkupParseContextHandle context)

Parameters

context MarkupParseContextHandle

Transfer ownership: None Nullable: False