Table of Contents

Class IMContext

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class IMContext : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
IMContext
Implements
Derived
Inherited Members

Constructors

IMContext(bool, params ConstructArgument[])

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

Parameters

owned bool
constructArguments ConstructArgument[]

IMContext(IntPtr, bool)

protected IMContext(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

CommitSignal

Signal Descriptor for OnCommit.

public static readonly Signal<IMContext, IMContext.CommitSignalArgs> CommitSignal

Field Value

Signal<IMContext, IMContext.CommitSignalArgs>

DeleteSurroundingSignal

Signal Descriptor for OnDeleteSurrounding.

public static readonly ReturningSignal<IMContext, IMContext.DeleteSurroundingSignalArgs, bool> DeleteSurroundingSignal

Field Value

ReturningSignal<IMContext, IMContext.DeleteSurroundingSignalArgs, bool>

InputHintsPropertyDefinition

public static readonly Property<InputHints, IMContext> InputHintsPropertyDefinition

Field Value

Property<InputHints, IMContext>

InputPurposePropertyDefinition

public static readonly Property<InputPurpose, IMContext> InputPurposePropertyDefinition

Field Value

Property<InputPurpose, IMContext>

PreeditChangedSignal

Signal Descriptor for OnPreeditChanged.

public static readonly Signal<IMContext> PreeditChangedSignal

Field Value

Signal<IMContext>

PreeditEndSignal

Signal Descriptor for OnPreeditEnd.

public static readonly Signal<IMContext> PreeditEndSignal

Field Value

Signal<IMContext>

PreeditStartSignal

Signal Descriptor for OnPreeditStart.

public static readonly Signal<IMContext> PreeditStartSignal

Field Value

Signal<IMContext>

RetrieveSurroundingSignal

Signal Descriptor for OnRetrieveSurrounding.

public static readonly ReturningSignal<IMContext, bool> RetrieveSurroundingSignal

Field Value

ReturningSignal<IMContext, bool>

Properties

InputHints

public InputHints InputHints { get; set; }

Property Value

InputHints

InputPurpose

public InputPurpose InputPurpose { get; set; }

Property Value

InputPurpose

Methods

ActivateOsk(Event?)

[Version("4.14")]
public bool ActivateOsk(Event? @event)

Parameters

event Event

Returns

bool

DeleteSurrounding(int, int)

public bool DeleteSurrounding(int offset, int nChars)

Parameters

offset int
nChars int

Returns

bool

FilterKey(bool, Surface, Device, uint, uint, ModifierType, int)

public bool FilterKey(bool press, Surface surface, Device device, uint time, uint keycode, ModifierType state, int group)

Parameters

press bool
surface Surface
device Device
time uint
keycode uint
state ModifierType
group int

Returns

bool

FilterKeypress(Event)

public bool FilterKeypress(Event @event)

Parameters

event Event

Returns

bool

FocusIn()

public void FocusIn()

FocusOut()

public void FocusOut()

GetGType()

public static Type GetGType()

Returns

Type

GetSurrounding(out string, out int)

public bool GetSurrounding(out string text, out int cursorIndex)

Parameters

text string
cursorIndex int

Returns

bool

GetSurroundingWithSelection(out string, out int, out int)

[Version("4.2")]
public bool GetSurroundingWithSelection(out string text, out int cursorIndex, out int anchorIndex)

Parameters

text string
cursorIndex int
anchorIndex int

Returns

bool

Reset()

public void Reset()

SetClientWidget(Widget?)

public void SetClientWidget(Widget? widget)

Parameters

widget Widget

SetCursorLocation(Rectangle)

public void SetCursorLocation(Rectangle area)

Parameters

area Rectangle

SetSurrounding(string, int, int)

public void SetSurrounding(string text, int len, int cursorIndex)

Parameters

text string
len int
cursorIndex int

SetSurroundingWithSelection(string, int, int, int)

[Version("4.2")]
public void SetSurroundingWithSelection(string text, int len, int cursorIndex, int anchorIndex)

Parameters

text string
len int
cursorIndex int
anchorIndex int

SetUsePreedit(bool)

public void SetUsePreedit(bool usePreedit)

Parameters

usePreedit bool

Events

OnCommit

public event SignalHandler<IMContext, IMContext.CommitSignalArgs> OnCommit

Event Type

SignalHandler<IMContext, IMContext.CommitSignalArgs>

OnDeleteSurrounding

public event ReturningSignalHandler<IMContext, IMContext.DeleteSurroundingSignalArgs, bool> OnDeleteSurrounding

Event Type

ReturningSignalHandler<IMContext, IMContext.DeleteSurroundingSignalArgs, bool>

OnPreeditChanged

public event SignalHandler<IMContext> OnPreeditChanged

Event Type

SignalHandler<IMContext>

OnPreeditEnd

public event SignalHandler<IMContext> OnPreeditEnd

Event Type

SignalHandler<IMContext>

OnPreeditStart

public event SignalHandler<IMContext> OnPreeditStart

Event Type

SignalHandler<IMContext>

OnRetrieveSurrounding

public event ReturningSignalHandler<IMContext, bool> OnRetrieveSurrounding

Event Type

ReturningSignalHandler<IMContext, bool>