HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
ttauri
GUI
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
9
namespace
tt::pipeline_image {
10
13
struct
ImageLocation
{
16
matrix3
transform
;
17
19
aarectangle
clippingRectangle
;
20
21
bool
operator==(
const
ImageLocation
&other)
noexcept
{
22
return
(
23
transform
== other.transform &&
24
clippingRectangle
== other.clippingRectangle
25
);
26
}
27
28
bool
operator!=(
const
ImageLocation
&other)
noexcept
{
return
!((*this) == other); }
29
};
30
31
}
tt::axis_aligned_rectangle
Class which represents an axis-aligned rectangle.
Definition
axis_aligned_rectangle.hpp:18
tt::geo::matrix< 3 >
tt::pipeline_image::ImageLocation
Definition
pipeline_image_image_location.hpp:13
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:19
tt::pipeline_image::ImageLocation::transform
matrix3 transform
Transformation matrix.
Definition
pipeline_image_image_location.hpp:16
Generated on Mon Apr 22 2024 12:53:42 for HikoGUI by
1.10.0