Table of Contents

Class Buffer

Namespace
GtkSource
Assembly
GtkSource-5.dll
public class Buffer : TextBuffer, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Buffer
Implements
Inherited Members

Constructors

Buffer(bool, params ConstructArgument[])

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

Parameters

owned bool
constructArguments ConstructArgument[]

Buffer(IntPtr, bool)

protected Buffer(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

BracketMatchedSignal

Signal Descriptor for OnBracketMatched.

public static readonly Signal<Buffer, Buffer.BracketMatchedSignalArgs> BracketMatchedSignal

Field Value

Signal<Buffer, Buffer.BracketMatchedSignalArgs>

CursorMovedSignal

Signal Descriptor for OnCursorMoved.

public static readonly Signal<Buffer> CursorMovedSignal

Field Value

Signal<Buffer>

HighlightMatchingBracketsPropertyDefinition

public static readonly Property<bool, Buffer> HighlightMatchingBracketsPropertyDefinition

Field Value

Property<bool, Buffer>

HighlightSyntaxPropertyDefinition

public static readonly Property<bool, Buffer> HighlightSyntaxPropertyDefinition

Field Value

Property<bool, Buffer>

HighlightUpdatedSignal

Signal Descriptor for OnHighlightUpdated.

public static readonly Signal<Buffer, Buffer.HighlightUpdatedSignalArgs> HighlightUpdatedSignal

Field Value

Signal<Buffer, Buffer.HighlightUpdatedSignalArgs>

ImplicitTrailingNewlinePropertyDefinition

public static readonly Property<bool, Buffer> ImplicitTrailingNewlinePropertyDefinition

Field Value

Property<bool, Buffer>

LanguagePropertyDefinition

public static readonly Property<Language?, Buffer> LanguagePropertyDefinition

Field Value

Property<Language, Buffer>

LoadingPropertyDefinition

public static readonly Property<bool, Buffer> LoadingPropertyDefinition

Field Value

Property<bool, Buffer>

SourceMarkUpdatedSignal

Signal Descriptor for OnSourceMarkUpdated.

public static readonly Signal<Buffer, Buffer.SourceMarkUpdatedSignalArgs> SourceMarkUpdatedSignal

Field Value

Signal<Buffer, Buffer.SourceMarkUpdatedSignalArgs>

StyleSchemePropertyDefinition

public static readonly Property<StyleScheme?, Buffer> StyleSchemePropertyDefinition

Field Value

Property<StyleScheme, Buffer>

Properties

HighlightMatchingBrackets

public bool HighlightMatchingBrackets { get; set; }

Property Value

bool

HighlightSyntax

public bool HighlightSyntax { get; set; }

Property Value

bool

ImplicitTrailingNewline

public bool ImplicitTrailingNewline { get; set; }

Property Value

bool

Language

public Language? Language { get; set; }

Property Value

Language

Loading

public bool Loading { get; }

Property Value

bool

StyleScheme

public StyleScheme? StyleScheme { get; set; }

Property Value

StyleScheme

Methods

ChangeCase(ChangeCaseType, TextIter, TextIter)

public void ChangeCase(ChangeCaseType caseType, TextIter start, TextIter end)

Parameters

caseType ChangeCaseType
start TextIter
end TextIter

CreateSourceMark(string?, string, TextIter)

public Mark CreateSourceMark(string? name, string category, TextIter where)

Parameters

name string
category string
where TextIter

Returns

Mark

EnsureHighlight(TextIter, TextIter)

public void EnsureHighlight(TextIter start, TextIter end)

Parameters

start TextIter
end TextIter

GetContextClassesAtIter(TextIter)

public string[] GetContextClassesAtIter(TextIter iter)

Parameters

iter TextIter

Returns

string[]

GetGType()

public static Type GetGType()

Returns

Type

GetHighlightMatchingBrackets()

public bool GetHighlightMatchingBrackets()

Returns

bool

GetHighlightSyntax()

public bool GetHighlightSyntax()

Returns

bool

GetImplicitTrailingNewline()

public bool GetImplicitTrailingNewline()

Returns

bool

GetLanguage()

public Language? GetLanguage()

Returns

Language

GetLoading()

public bool GetLoading()

Returns

bool

GetStyleScheme()

public StyleScheme? GetStyleScheme()

Returns

StyleScheme

IterHasContextClass(TextIter, string)

public bool IterHasContextClass(TextIter iter, string contextClass)

Parameters

iter TextIter
contextClass string

Returns

bool

JoinLines(TextIter, TextIter)

public void JoinLines(TextIter start, TextIter end)

Parameters

start TextIter
end TextIter

New(TextTagTable?)

public static Buffer New(TextTagTable? table)

Parameters

table TextTagTable

Returns

Buffer

NewWithLanguage(Language)

public static Buffer NewWithLanguage(Language language)

Parameters

language Language

Returns

Buffer

RemoveSourceMarks(TextIter, TextIter, string?)

public void RemoveSourceMarks(TextIter start, TextIter end, string? category)

Parameters

start TextIter
end TextIter
category string

SetHighlightMatchingBrackets(bool)

public void SetHighlightMatchingBrackets(bool highlight)

Parameters

highlight bool

SetHighlightSyntax(bool)

public void SetHighlightSyntax(bool highlight)

Parameters

highlight bool

SetImplicitTrailingNewline(bool)

public void SetImplicitTrailingNewline(bool implicitTrailingNewline)

Parameters

implicitTrailingNewline bool

SetLanguage(Language?)

public void SetLanguage(Language? language)

Parameters

language Language

SetStyleScheme(StyleScheme?)

public void SetStyleScheme(StyleScheme? scheme)

Parameters

scheme StyleScheme

SortLines(TextIter, TextIter, SortFlags, int)

public void SortLines(TextIter start, TextIter end, SortFlags flags, int column)

Parameters

start TextIter
end TextIter
flags SortFlags
column int

Events

OnBracketMatched

public event SignalHandler<Buffer, Buffer.BracketMatchedSignalArgs> OnBracketMatched

Event Type

SignalHandler<Buffer, Buffer.BracketMatchedSignalArgs>

OnCursorMoved

public event SignalHandler<Buffer> OnCursorMoved

Event Type

SignalHandler<Buffer>

OnHighlightUpdated

public event SignalHandler<Buffer, Buffer.HighlightUpdatedSignalArgs> OnHighlightUpdated

Event Type

SignalHandler<Buffer, Buffer.HighlightUpdatedSignalArgs>

OnSourceMarkUpdated

public event SignalHandler<Buffer, Buffer.SourceMarkUpdatedSignalArgs> OnSourceMarkUpdated

Event Type

SignalHandler<Buffer, Buffer.SourceMarkUpdatedSignalArgs>