Table of Contents

Method FastHasFlags

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

FastHasFlags(KeyCode, KeyCode)

Determines if the specified flags are set in the current value of this KeyCode.

public static bool FastHasFlags(this KeyCode e, KeyCode checkFlags)

Parameters

e KeyCode
checkFlags KeyCode

Returns

bool

True, if all flags present in checkFlags are also present in the current value of the KeyCode.
Otherwise false.

Remarks

NO VALIDATION IS PERFORMED!

FastHasFlags(KeyCode, uint)

Determines if the specified mask bits are set in the current value of this KeyCode.

public static bool FastHasFlags(this KeyCode e, uint mask)

Parameters

e KeyCode

The KeyCode value to check against the mask value.

mask uint

A mask to apply to the current value.

Returns

bool

True, if all bits set to 1 in the mask are also set to 1 in the current value of the KeyCode.
Otherwise false.

Remarks

NO VALIDATION IS PERFORMED!