WingCloudHexExplorer/Be.Windows.Forms.HexBox/Partial HexBoxClass/HexBox.IKeyInterpreter.cs

52 lines
1.7 KiB
C#

using System.Drawing;
using System.Windows.Forms;
namespace Be.Windows.Forms
{
public partial class HexBox
{
/// <summary>
/// Defines a user input handler such as for mouse and keyboard input
/// </summary>
private interface IKeyInterpreter
{
/// <summary>
/// Activates mouse events
/// </summary>
void Activate();
/// <summary>
/// Deactivate mouse events
/// </summary>
void Deactivate();
/// <summary>
/// Preprocesses WM_KEYUP window message.
/// </summary>
/// <param name="m">the Message object to process.</param>
/// <returns>True, if the message was processed.</returns>
bool PreProcessWmKeyUp(ref Message m);
/// <summary>
/// Preprocesses WM_CHAR window message.
/// </summary>
/// <param name="m">the Message object to process.</param>
/// <returns>True, if the message was processed.</returns>
bool PreProcessWmChar(ref Message m);
/// <summary>
/// Preprocesses WM_KEYDOWN window message.
/// </summary>
/// <param name="m">the Message object to process.</param>
/// <returns>True, if the message was processed.</returns>
bool PreProcessWmKeyDown(ref Message m);
/// <summary>
/// Gives some information about where to place the caret.
/// </summary>
/// <param name="byteIndex">the index of the byte</param>
/// <returns>the position where the caret is to place.</returns>
PointF GetCaretPointF(long byteIndex);
}
}
}