roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
color_set.h
Go to the documentation of this file.
1#pragma once
2
3#include "roo_collections.h"
4#include "roo_collections/flat_small_hash_set.h"
6
7namespace roo_display {
8
9namespace internal {
10
11/// Hash functor for `Color`.
12struct ColorHash {
13 uint32_t operator()(Color color) const { return color.asArgb(); }
14};
15
16/// Small hash set of `Color` values.
17typedef roo_collections::FlatSmallHashSet<Color, ColorHash> ColorSet;
18
19} // namespace internal
20
21} // namespace roo_display
ARGB8888 color stored as a 32-bit unsigned integer.
Definition color.h:16
roo_collections::FlatSmallHashSet< Color, ColorHash > ColorSet
Small hash set of Color values.
Definition color_set.h:17
Defines 140 opaque HTML named colors.
Hash functor for Color.
Definition color_set.h:12
uint32_t operator()(Color color) const
Definition color_set.h:13