// Copyright © 2020 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp.DevTools.DOM { /// /// A structure holding an RGBA color. /// [System.Runtime.Serialization.DataContractAttribute] public class RGBA : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The red component, in the [0-255] range. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("r"), IsRequired = (true))] public int R { get; set; } /// /// The green component, in the [0-255] range. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("g"), IsRequired = (true))] public int G { get; set; } /// /// The blue component, in the [0-255] range. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("b"), IsRequired = (true))] public int B { get; set; } /// /// The alpha component, in the [0-1] range (default: 1). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("a"), IsRequired = (false))] public long? A { get; set; } } }