Class InputMethodContext
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public class InputMethodContext : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
InputMethodContext
- Implements
- Inherited Members
Constructors
InputMethodContext(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public InputMethodContext(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
InputMethodContext(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected InputMethodContext(CreationData data)
Parameters
dataCreationData
InputMethodContext(InputMethodContextHandle)
protected InputMethodContext(InputMethodContextHandle handle)
Parameters
handleInputMethodContextHandle
Fields
CommittedSignal
Signal Descriptor for OnCommitted.
public static readonly Signal<InputMethodContext, InputMethodContext.CommittedSignalArgs> CommittedSignal
Field Value
DeleteSurroundingSignal
Signal Descriptor for OnDeleteSurrounding.
public static readonly Signal<InputMethodContext, InputMethodContext.DeleteSurroundingSignalArgs> DeleteSurroundingSignal
Field Value
InputHintsPropertyDefinition
public static readonly Property<InputHints, InputMethodContext> InputHintsPropertyDefinition
Field Value
InputPurposePropertyDefinition
public static readonly Property<InputPurpose, InputMethodContext> InputPurposePropertyDefinition
Field Value
PreeditChangedSignal
Signal Descriptor for OnPreeditChanged.
public static readonly Signal<InputMethodContext> PreeditChangedSignal
Field Value
PreeditFinishedSignal
Signal Descriptor for OnPreeditFinished.
public static readonly Signal<InputMethodContext> PreeditFinishedSignal
Field Value
PreeditStartedSignal
Signal Descriptor for OnPreeditStarted.
public static readonly Signal<InputMethodContext> PreeditStartedSignal
Field Value
Properties
InputHints
public InputHints InputHints { get; set; }
Property Value
InputPurpose
public InputPurpose InputPurpose { get; set; }
Property Value
Methods
FilterKeyEvent(Event)
[Version("2.28")]
public bool FilterKeyEvent(Event keyEvent)
Parameters
keyEventEvent
Returns
GetGType()
public static Type GetGType()
Returns
GetInputHints()
[Version("2.28")]
public InputHints GetInputHints()
Returns
GetInputPurpose()
[Version("2.28")]
public InputPurpose GetInputPurpose()
Returns
NewFromPointer(nint, bool)
Creates a new managed InputMethodContext instance for a given pointer.
public static InputMethodContext NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new InputMethodContext and sets the properties specified by the construct arguments.
public static InputMethodContext NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
NotifyCursorArea(int, int, int, int)
[Version("2.28")]
public void NotifyCursorArea(int x, int y, int width, int height)
Parameters
NotifyFocusIn()
[Version("2.28")]
public void NotifyFocusIn()
NotifyFocusOut()
[Version("2.28")]
public void NotifyFocusOut()
NotifySurrounding(string, int, uint, uint)
[Version("2.28")]
public void NotifySurrounding(string text, int length, uint cursorIndex, uint selectionIndex)
Parameters
Reset()
[Version("2.28")]
public void Reset()
SetEnablePreedit(bool)
[Version("2.28")]
public void SetEnablePreedit(bool enabled)
Parameters
enabledbool
SetInputHints(InputHints)
[Version("2.28")]
public void SetInputHints(InputHints hints)
Parameters
hintsInputHints
SetInputPurpose(InputPurpose)
[Version("2.28")]
public void SetInputPurpose(InputPurpose purpose)
Parameters
purposeInputPurpose
Events
OnCommitted
public event SignalHandler<InputMethodContext, InputMethodContext.CommittedSignalArgs> OnCommitted
Event Type
OnDeleteSurrounding
public event SignalHandler<InputMethodContext, InputMethodContext.DeleteSurroundingSignalArgs> OnDeleteSurrounding
Event Type
OnPreeditChanged
public event SignalHandler<InputMethodContext> OnPreeditChanged
Event Type
OnPreeditFinished
public event SignalHandler<InputMethodContext> OnPreeditFinished
Event Type
OnPreeditStarted
public event SignalHandler<InputMethodContext> OnPreeditStarted