Program Listing for File slint_color_internal.h#
↰ Return to documentation for file (cppdocs/generated_include/slint_color_internal.h
)
#pragma once
/* Generated with cbindgen:0.24.3 */
#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
#include "slint_enums_internal.h"
namespace slint {
namespace cbindgen_private {
namespace types {
struct Color {
uint8_t red;
uint8_t green;
uint8_t blue;
uint8_t alpha;
bool operator==(const Color& other) const {
return red == other.red &&
green == other.green &&
blue == other.blue &&
alpha == other.alpha;
}
bool operator!=(const Color& other) const {
return red != other.red ||
green != other.green ||
blue != other.blue ||
alpha != other.alpha;
}
};
extern "C" {
void slint_color_brighter(const Color *col, float factor, Color *out);
void slint_color_darker(const Color *col, float factor, Color *out);
} // extern "C"
} // namespace types
} // namespace cbindgen_private
} // namespace slint