C# Класс WinCompose.Composer

The main composer class. It gets input from the keyboard hook, and acts depending on the global configuration and current keyboard state.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Fini ( ) : void

Terminate the composer.

Init ( ) : void

Initialize the composer.

IsComposing ( ) : bool

Indicates whether a compose sequence is in progress

IsDisabled ( ) : bool

Return whether WinCompose has been disabled

OnKey ( WM ev, VK vk, SC sc, LLKHF flags ) : bool

Get input from the keyboard hook; return true if the key was handled and needs to be removed from the input chain.

ToggleDisabled ( ) : void

Toggle the disabled state

UpdateKeyboardLeds ( object sender, EventArgs e ) : void

Приватные методы

Метод Описание
AddToSequence ( Key key ) : bool

Add a key to the sequence currently being built. If necessary, output the finished sequence or trigger actions for invalid sequences.

AnalyzeKeyboardLayout ( ) : void

Attempt to enumerate all dead keys available on the current keyboard layout and cache the results in m_possible_dead_keys.

CheckKeyboardLayout ( ) : void
OnKeyInternal ( WM ev, VK vk, SC sc, LLKHF flags ) : bool
ResetSequence ( ) : void
RestoreDeadKey ( int dead_key ) : void

Restore a previously saved dead key. This should restore the ToUnicode internal buffer.

SaveDeadKey ( ) : int

Save the dead key if there is one, since we'll be calling ToUnicode later on. This effectively removes any dead key from the ToUnicode internal buffer.

SendKeyDown ( VK vk, KEYEVENTF flags ) : void
SendKeyPress ( VK vk, KEYEVENTF flags ) : void
SendKeyUp ( VK vk, KEYEVENTF flags ) : void
SendString ( string str ) : void
StartMonitoringKeyboardLeds ( ) : void
StopMonitoringKeyboardLeds ( ) : void
VkToKey ( VK vk, SC sc, LLKHF flags, bool has_shift, bool has_altgr, bool has_capslock ) : Key
VkToUnicode ( VK vk ) : string
VkToUnicode ( VK vk, SC sc, byte keystate, LLKHF flags ) : string

Описание методов

Fini() публичный статический Метод

Terminate the composer.
public static Fini ( ) : void
Результат void

Init() публичный статический Метод

Initialize the composer.
public static Init ( ) : void
Результат void

IsComposing() публичный статический Метод

Indicates whether a compose sequence is in progress
public static IsComposing ( ) : bool
Результат bool

IsDisabled() публичный статический Метод

Return whether WinCompose has been disabled
public static IsDisabled ( ) : bool
Результат bool

OnKey() публичный статический Метод

Get input from the keyboard hook; return true if the key was handled and needs to be removed from the input chain.
public static OnKey ( WM ev, VK vk, SC sc, LLKHF flags ) : bool
ev WM
vk VK
sc SC
flags LLKHF
Результат bool

ToggleDisabled() публичный статический Метод

Toggle the disabled state
public static ToggleDisabled ( ) : void
Результат void

UpdateKeyboardLeds() публичный статический Метод

public static UpdateKeyboardLeds ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void