HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
ttauri
GFX
pipeline_image_image_location.hpp
1
// Copyright Take Vos 2019-2020.
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 "../geometry/axis_aligned_rectangle.hpp"
8
#include "../geometry/matrix.hpp"
9
10
namespace
tt::pipeline_image {
11
14
struct
ImageLocation
{
17
matrix3
transform
;
18
20
aarectangle
clippingRectangle
;
21
22
bool
operator==(
const
ImageLocation
&other)
noexcept
{
23
return
(
24
transform
== other.transform &&
25
clippingRectangle
== other.clippingRectangle
26
);
27
}
28
29
bool
operator!=(
const
ImageLocation
&other)
noexcept
{
return
!((*this) == other); }
30
};
31
32
}
tt::axis_aligned_rectangle
Class which represents an axis-aligned rectangle.
Definition
axis_aligned_rectangle.hpp:20
tt::geo::matrix< 3 >
tt::pipeline_image::ImageLocation
Definition
pipeline_image_image_location.hpp:14
tt::pipeline_image::ImageLocation::clippingRectangle
aarectangle clippingRectangle
The position in pixels of the clipping rectangle relative to the top-left corner of the window,...
Definition
pipeline_image_image_location.hpp:20
tt::pipeline_image::ImageLocation::transform
matrix3 transform
Transformation matrix.
Definition
pipeline_image_image_location.hpp:17
Generated on Mon Apr 22 2024 12:53:30 for HikoGUI by
1.10.0