Struct gdk4::RGBA [−][src]
Expand description
A RGBA
is used to represent a color, in a way that is compatible
with cairo’s notion of color.
RGBA
is a convenient way to pass colors around. It’s based on
cairo’s way to deal with colors and mirrors its behavior. All values
are in the range from 0.0 to 1.0 inclusive. So the color
(0.0, 0.0, 0.0, 0.0) represents transparent black and
(1.0, 1.0, 1.0, 1.0) is opaque white. Other values will
be clamped to this range when drawing.
Fields
red: f32
green: f32
blue: f32
alpha: f32
Implementations
Creates a new builder-style object to construct a RGBA
.
This method returns an instance of RGBABuilder
which can be used to create a RGBA
.
Trait Implementations
type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
Returns the type identifier of Self
.
Convert an Option
to a Value
.
Auto Trait Implementations
impl RefUnwindSafe for RGBA
impl UnwindSafe for RGBA
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.