HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
pipeline_image_page.hpp
1// Copyright Take Vos 2019.
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
5#pragma once
6
7#include "../required.hpp"
8#include <limits>
9
10namespace tt::pipeline_image {
11
12struct Page {
13 static constexpr int width = 64;
14 static constexpr int height = 64;
15 static constexpr int border = 1;
16 static constexpr int widthIncludingBorder = width + 2 * border;
17 static constexpr int heightIncludingBorder = height + 2 * border;
18
19 ssize_t nr;
20
21 Page(ssize_t nr) : nr(nr) {}
22
25 Page() : nr(std::numeric_limits<ssize_t>::max()) {}
26
27 bool isFullyTransparent() const noexcept { return nr == std::numeric_limits<ssize_t>::max(); }
28};
29
30}
STL namespace.
Definition pipeline_image_page.hpp:12
Page()
Definition pipeline_image_page.hpp:25
T max(T... args)