HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
ttauri
GFX
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
10
namespace
tt::pipeline_image {
11
12
struct
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
}
std
STL namespace.
tt::pipeline_image::Page
Definition
pipeline_image_page.hpp:12
tt::pipeline_image::Page::Page
Page()
Definition
pipeline_image_page.hpp:25
std::numeric_limits::max
T max(T... args)
std::ptrdiff_t
Generated on Mon Apr 22 2024 12:53:38 for HikoGUI by
1.10.0