HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
PipelineImage_Page.hpp
1// Copyright 2019 Pokitec
2// All rights reserved.
3
4#pragma once
5
6#include <limits>
7#include "TTauri/Foundation/required.hpp"
8
9namespace tt::PipelineImage {
10
11struct Page {
12 static constexpr int width = 64;
13 static constexpr int height = 64;
14 static constexpr int border = 1;
15 static constexpr int widthIncludingBorder = width + 2 * border;
16 static constexpr int heightIncludingBorder = height + 2 * border;
17
18 ssize_t nr;
19
20 Page(ssize_t nr) : nr(nr) {}
21
24 Page() : nr(std::numeric_limits<ssize_t>::max()) {}
25
26 bool isFullyTransparent() const noexcept { return nr == std::numeric_limits<ssize_t>::max(); }
27};
28
29}
STL namespace.
Definition PipelineImage_Page.hpp:11
Page()
Definition PipelineImage_Page.hpp:24
T max(T... args)