/// <summary> /// Sets a spectrum cycling effect on this device. /// </summary> /// <param name="effect">Effect options.</param> public void SetSpectrumCycling(SpectrumCycling effect) { SetGuid(NativeWrapper.CreateDeviceEffect(DeviceId, Effect.SpectrumCycling, effect)); }
/// <summary> /// Sets an effect without any parameters. /// Currently, this only works for the <see cref="Effect.None" /> effect. /// </summary> /// <param name="effect">Effect options.</param> public void SetEffect(Effect effect) { SetGuid(NativeWrapper.CreateMouseEffect(effect, IntPtr.Zero)); }
/// <summary> /// Starts a blinking effect on the specified LED. /// </summary> /// <param name="effect">An instance of the <see cref="Blinking" /> effect.</param> public void SetBlinking(Blinking effect) { SetGuid(NativeWrapper.CreateMouseEffect(Effect.Blinking, effect)); }
/// <summary> /// Sets a <see cref="Wave" /> effect on the keypad. /// </summary> /// <param name="effect">An instance of the <see cref="Wave" /> struct.</param> public void SetWave(Wave effect) { SetGuid(NativeWrapper.CreateKeypadEffect(effect)); }
/// <summary> /// Sets a <see cref="Custom" /> effect on the Chroma Link. /// </summary> /// <param name="effect">An instance of the <see cref="Custom" /> struct.</param> public void SetCustom(Custom effect) { SetGuid(NativeWrapper.CreateChromaLinkEffect(Effect.Custom, effect)); }
/// <summary> /// Sets an effect without any parameters. /// Currently, this only works for the <see cref="Effect.None" /> effect. /// </summary> /// <param name="effect">Effect options.</param> public void SetEffect(Effect effect) { SetGuid(NativeWrapper.CreateKeypadEffect(effect)); }
/// <summary> /// Sets a <see cref="Custom" /> effect on the keypad. /// </summary> /// <param name="effect">An instance of the <see cref="Custom" /> struct.</param> public void SetCustom(Custom effect) { SetGuid(NativeWrapper.CreateKeypadEffect(effect)); }
/// <summary> /// Updates the device to use the effect pointed to by the specified GUID. /// </summary> /// <param name="guid">GUID to set.</param> public void Set(Guid guid) { Clear(); NativeWrapper.SetEffect(guid); CurrentEffectId = guid; }
/// <summary> /// Sets a breathing effect on the keyboard. /// </summary> /// <param name="effect">Effect options.</param> public void SetBreathing(Breathing effect) { SetGuid(NativeWrapper.CreateKeyboardEffect(Effect.Breathing, effect)); }
/// <summary> /// Clears the current effect on Generic Devices. /// </summary> public override void Clear() { SetGuid(NativeWrapper.CreateDeviceEffect(DeviceId, Effect.None, default(None))); }
/// <summary> /// Sets an effect on this device, taking a parameter. /// </summary> /// <param name="effect">Effect to set.</param> /// <param name="param">Effect-specific parameter to use.</param> public void SetEffect(Effect effect, IntPtr param) { SetGuid(NativeWrapper.CreateEffect(DeviceId, effect, param)); }
/// <summary> /// Sets a wave effect on this device. /// </summary> /// <param name="effect">Effect options.</param> public void SetWave(Wave effect) { SetGuid(NativeWrapper.CreateDeviceEffect(DeviceId, Effect.Wave, effect)); }
/// <summary> /// Sets a static effect on this device. /// </summary> /// <param name="effect">Effect options.</param> public void SetStatic(Static effect) { SetGuid(NativeWrapper.CreateDeviceEffect(DeviceId, Effect.Static, effect)); }
/// <summary> /// Sets a starlight effect on this device. /// </summary> /// <param name="effect">Effect options.</param> public void SetStarlight(Starlight effect) { SetGuid(NativeWrapper.CreateDeviceEffect(DeviceId, Effect.Starlight, effect)); }
/// <summary> /// Sets a custom effect on the mouse. /// </summary> /// <param name="effect">An instance of the <see cref="Custom" /> struct.</param> public void SetCustom(Custom effect) { SetGuid(NativeWrapper.CreateMouseEffect(Effect.Custom, effect)); }
/// <summary> /// Sets the color of all keys on the keyboard. /// </summary> /// <param name="color">Color to set.</param> public override void SetAll(Color color) { _grid.Set(color); SetGuid(NativeWrapper.CreateKeyboardEffect(Effect.Custom, _grid)); }
/// <summary> /// Sets a custom grid effect on the mouse. /// </summary> /// <param name="effect">An instance of the <see cref="CustomGrid" /> struct.</param> public void SetGrid(CustomGrid effect) { SetGuid(NativeWrapper.CreateMouseEffect(Effect.CustomGrid, effect)); }
/// <summary> /// Sets a custom grid effect on the keyboard. /// </summary> /// <param name="effect">Effect options.</param> /// <remarks> /// This will overwrite the current internal <see cref="Custom" /> /// struct in the <see cref="Keyboard" /> class. /// </remarks> public void SetCustom(Custom effect) { _grid = effect; SetGuid(NativeWrapper.CreateKeyboardEffect(Effect.Custom, _grid)); }
/// <summary> /// Sets a <see cref="Breathing" /> effect on the keypad. /// </summary> /// <param name="effect">An instance of the <see cref="Breathing" /> struct.</param> public void SetBreathing(Breathing effect) { SetGuid(NativeWrapper.CreateKeypadEffect(effect)); }
/// <summary> /// Sets a static color on the keyboard. /// </summary> /// <param name="effect">Effect options.</param> public void SetStatic(Static effect) { SetGuid(NativeWrapper.CreateKeyboardEffect(Effect.Static, effect)); }
/// <summary> /// Sets a <see cref="Static" /> effect on the keypad. /// </summary> /// <param name="effect">An instance of the <see cref="Static" /> struct.</param> public void SetStatic(Static effect) { SetGuid(NativeWrapper.CreateKeypadEffect(effect)); }
/// <summary> /// Sets a wave effect on the keyboard. /// </summary> /// <param name="effect">Effect options.</param> public void SetWave(Wave effect) { SetGuid(NativeWrapper.CreateKeyboardEffect(Effect.Wave, effect)); }
/// <summary> /// Sets an effect without any parameters. /// Currently, this only works for the <see cref="Effect.None" /> and <see cref="Effect.Static" /> effects. /// </summary> /// <param name="effect">Effect options.</param> public void SetEffect(Effect effect) { SetGuid(NativeWrapper.CreateChromaLinkEffect(effect, IntPtr.Zero)); }
/// <summary> /// Prevents a default instance of the <see cref="Chroma" /> class from being created. /// </summary> private Chroma() { NativeWrapper.Init(); _registeredHandle = IntPtr.Zero; }
/// <summary> /// Sets a <see cref="Static" /> effect on the Chroma Link. /// </summary> /// <param name="effect">An instance of the <see cref="Static" /> struct.</param> public void SetStatic(Static effect) { SetGuid(NativeWrapper.CreateChromaLinkEffect(Effect.Static, effect)); }
/// <summary> /// Sets a spectrum cycling effect on the mouse. /// </summary> /// <param name="effect">Effect options struct.</param> public void SetSpectrumCycling(SpectrumCycling effect) { SetGuid(NativeWrapper.CreateMouseEffect(Effect.SpectrumCycling, effect)); }
/// <summary> /// Sets a static color on the mouse. /// </summary> /// <param name="effect">An instance of the <see cref="Static" /> effect.</param> public void SetStatic(Static effect) { SetGuid(NativeWrapper.CreateMouseEffect(Effect.Static, effect)); }
/// <summary> /// Sets a wave effect on the mouse. /// </summary> /// <param name="effect">Effect options struct.</param> public void SetWave(Wave effect) { SetGuid(NativeWrapper.CreateMouseEffect(Effect.Wave, effect)); }
/// <summary> /// Sets a reactive effect on the mouse. /// </summary> /// <param name="effect">Effect options struct.</param> public void SetReactive(Reactive effect) { SetGuid(NativeWrapper.CreateMouseEffect(Effect.Reactive, effect)); }
/// <summary> /// Sets a reactive effect on this device. /// </summary> /// <param name="effect">Effect options.</param> public void SetReactive(Reactive effect) { SetGuid(NativeWrapper.CreateDeviceEffect(DeviceId, Effect.Reactive, effect)); }