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