HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
quad_color.hpp
Go to the documentation of this file.
1// Copyright Take Vos 2021.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
9#pragma once
10
11#include "color_intf.hpp"
12#include "../macros.hpp"
13
14hi_export_module(hikogui.color.quad_color);
15
16hi_export namespace hi {
17inline namespace v1 {
18
23public:
28
29 constexpr quad_color(quad_color const &) noexcept = default;
30 constexpr quad_color(quad_color &&) noexcept = default;
31 constexpr quad_color &operator=(quad_color const &) noexcept = default;
32 constexpr quad_color &operator=(quad_color &&) noexcept = default;
33 constexpr quad_color() noexcept = default;
34 constexpr quad_color(color const &p0, color const &p1, color const &p2, color const &p3) noexcept :
35 p0(p0), p1(p1), p2(p2), p3(p3)
36 {
37 }
38 constexpr quad_color(color const &c) noexcept : p0(c), p1(c), p2(c), p3(c) {}
39};
40
41}} // namespace hi::inline v1
42
The HikoGUI namespace.
Definition array_generic.hpp:20
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
This is a RGBA floating point color.
Definition color_intf.hpp:49
A color for each corner of a quad.
Definition quad_color.hpp:22
color p0
left-bottom
Definition quad_color.hpp:24
color p2
left-top
Definition quad_color.hpp:26
color p3
right-top
Definition quad_color.hpp:27
color p1
right-bottom
Definition quad_color.hpp:25