Exemple #1
0
 /// <summary>
 /// Internal constructor of managed <see cref="LogitechRGBDeviceInfo"/>.
 /// </summary>
 /// <param name="deviceType">The type of the <see cref="IRGBDevice"/>.</param>
 /// <param name="model">The represented device model.</param>
 /// <param name="deviceCaps">The lighting-capabilities of the device.</param>
 /// <param name="imageLayout">The layout used to decide which images to load.</param>
 /// <param name="layoutPath">The path/name of the layout-file.</param>
 internal LogitechRGBDeviceInfo(RGBDeviceType deviceType, string model, LogitechDeviceCaps deviceCaps,
                                string imageLayout, string layoutPath)
 {
     this.DeviceType  = deviceType;
     this.Model       = model;
     this.DeviceCaps  = deviceCaps;
     this.ImageLayout = imageLayout;
     this.LayoutPath  = layoutPath;
 }
Exemple #2
0
        /// <summary>
        /// Internal constructor of managed <see cref="LogitechRGBDeviceInfo"/>.
        /// </summary>
        /// <param name="deviceType">The type of the <see cref="IRGBDevice"/>.</param>
        /// <param name="model">The represented device model.</param>
        /// <param name="deviceCaps">The lighting-capabilities of the device.</param>
        /// <param name="imageBasePath">The base of the image path used to load device-images.</param>
        /// <param name="imageLayout">The layout used to decide which images to load.</param>
        /// <param name="layoutPath">The path/name of the layout-file.</param>
        internal LogitechRGBDeviceInfo(RGBDeviceType deviceType, string model, LogitechDeviceCaps deviceCaps,
                                       string imageBasePath, string imageLayout, string layoutPath)
        {
            this.DeviceType    = deviceType;
            this.Model         = model;
            this.DeviceCaps    = deviceCaps;
            this.ImageBasePath = imageBasePath;
            this.ImageLayout   = imageLayout;
            this.LayoutPath    = layoutPath;

            Image = new Uri(PathHelper.GetAbsolutePath($@"Images\Logitech\{LayoutPath}.png"), UriKind.Absolute);
        }
        /// <summary>
        /// Internal constructor of managed <see cref="LogitechRGBDeviceInfo"/>.
        /// </summary>
        /// <param name="deviceType">The type of the <see cref="IRGBDevice"/>.</param>
        /// <param name="model">The represented device model.</param>
        /// <param name="deviceCaps">The lighting-capabilities of the device.</param>
        /// <param name="zones">The amount of zones the device is able to control.</param>
        /// <param name="imageLayout">The layout used to decide which images to load.</param>
        /// <param name="layoutPath">The path/name of the layout-file.</param>
        internal LogitechRGBDeviceInfo(RGBDeviceType deviceType, string model, LogitechDeviceCaps deviceCaps,
                                       int zones, string imageLayout, string layoutPath)
        {
            this.DeviceType  = deviceType;
            this.Model       = model;
            this.DeviceCaps  = deviceCaps;
            this.Zones       = zones;
            this.ImageLayout = imageLayout;
            this.LayoutPath  = layoutPath;

            DeviceName = $"{Manufacturer} {Model}";
        }
Exemple #4
0
 internal static bool LogiLedSetTargetDevice(LogitechDeviceCaps targetDevice)
 {
     return(_logiLedSetTargetDevicePointer((int)targetDevice));
 }
Exemple #5
0
 internal static bool LogiLedSetTargetDevice(LogitechDeviceCaps targetDevice) => _logiLedSetTargetDevicePointer((int)targetDevice);