UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateBox2.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7namespace UE::Slate
8{
9
10inline static FBox2f CastToBox2f(const FBox2d& InValue)
11{
12 return FBox2f(InValue);
13}
14
19{
20 FDeprecateBox2D() = default;
22 : Data(InValue)
23 {
24 }
25
26public:
27 operator FBox2d() const
28 {
29 return FBox2d(Data);
30 }
31
32 operator FBox2f() const
33 {
34 return Data;
35 }
36
37public:
38 bool operator==(const FBox2d& Other) const
39 {
40 return CastToBox2f(Other) == Data;
41 }
42
43 bool operator==(const FBox2f& Other) const
44 {
45 return Data == Other;
46 }
47
48 bool operator!=(const FBox2d& Other) const
49 {
50 return CastToBox2f(Other) != Data;
51 }
52
53 bool operator!=(const FBox2f& Other) const
54 {
55 return Data != Other;
56 }
57
58private:
59 FBox2f Data;
60};
61
62} // namespace
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE::Math::TBox2< double > FBox2d
Definition MathFwd.h:69
UE::Math::TBox2< float > FBox2f
Definition MathFwd.h:82
Definition DockingUtilsPrivate.h:8
Definition SlateBox2.h:19
FDeprecateBox2D(const FBox2f &InValue)
Definition SlateBox2.h:21
bool operator!=(const FBox2d &Other) const
Definition SlateBox2.h:48
bool operator==(const FBox2f &Other) const
Definition SlateBox2.h:43
bool operator!=(const FBox2f &Other) const
Definition SlateBox2.h:53
bool operator==(const FBox2d &Other) const
Definition SlateBox2.h:38