HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
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
10namespace tt::pipeline_image {
11
18
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}
Class which represents an axis-aligned rectangle.
Definition axis_aligned_rectangle.hpp:20
Definition pipeline_image_image_location.hpp:14
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
matrix3 transform
Transformation matrix.
Definition pipeline_image_image_location.hpp:17