1#ifndef OPENXLSX_XLCOLOR_HPP
2#define OPENXLSX_XLCOLOR_HPP
6# pragma warning(disable : 4251)
7# pragma warning(disable : 4275)
15#include "OpenXLSX-Exports.hpp"
35 XLColor(uint8_t alpha, uint8_t red, uint8_t green, uint8_t blue);
40 XLColor(uint8_t red, uint8_t green, uint8_t blue);
45 explicit XLColor(std::string_view hexCode);
60 void set(uint8_t alpha, uint8_t red, uint8_t green, uint8_t blue);
65 void set(uint8_t red = 0, uint8_t green = 0, uint8_t blue = 0);
70 void set(std::string_view hexCode);
75 [[nodiscard]] uint8_t alpha()
const;
80 [[nodiscard]] uint8_t red()
const;
85 [[nodiscard]] uint8_t green()
const;
90 [[nodiscard]] uint8_t blue()
const;
95 [[nodiscard]] std::string hex()
const;
Definition XLColor.hpp:22
XLColor & operator=(const XLColor &other)
uint8_t red() const
Retrieves the red channel value.
Definition XLColor.cpp:120
XLColor(XLColor &&other) noexcept
uint8_t alpha() const
Retrieves the alpha (opacity) channel value.
Definition XLColor.cpp:115
XLColor()
Default constructor. Initializes to opaque black (A=255, R=0, G=0, B=0).
uint8_t blue() const
Retrieves the blue channel value.
Definition XLColor.cpp:130
uint8_t green() const
Retrieves the green channel value.
Definition XLColor.cpp:125
XLColor & operator=(XLColor &&other) noexcept
XLColor(const XLColor &other)
Definition IZipArchive.hpp:18
bool operator==(const XLCell &lhs, const XLCell &rhs)
Definition XLCell.hpp:304
bool operator!=(const XLCell &lhs, const XLCell &rhs)
Definition XLCell.hpp:311