using System; using ImeSharp.Native; namespace ImeSharp { /// /// Contains properties that are queries into the system's various settings. /// internal sealed class SafeSystemMetrics { private SafeSystemMetrics() { } /// /// Maps to SM_CXDOUBLECLK /// public static int DoubleClickDeltaX { get { return NativeMethods.GetSystemMetrics(SM.CXDOUBLECLK); } } /// /// Maps to SM_CYDOUBLECLK /// public static int DoubleClickDeltaY { get { return NativeMethods.GetSystemMetrics(SM.CYDOUBLECLK); } } /// /// Maps to SM_CXDRAG /// public static int DragDeltaX { get { return NativeMethods.GetSystemMetrics(SM.CXDRAG); } } /// /// Maps to SM_CYDRAG /// public static int DragDeltaY { get { return NativeMethods.GetSystemMetrics(SM.CYDRAG); } } /// /// Is an IMM enabled ? Maps to SM_IMMENABLED /// public static bool IsImmEnabled { get { return (NativeMethods.GetSystemMetrics(SM.IMMENABLED) != 0); } } } }