UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MouseHoverComponent.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8
9#include "MouseHoverComponent.generated.h"
10
12UCLASS(MinimalAPI)
14{
16
17public:
18
19 bool GetIsHovered() const { return bIsHovered; }
20
21 void OnMouseHoverChanged(bool InbIsHovered);
22
23private:
24
25 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Getter = "GetIsHovered", FieldNotify, Category = "Mouse Hover State", meta = (AllowPrivateAccess))
26 bool bIsHovered = false;
27
28 virtual TSharedRef<SWidget> RebuildWidgetWithContent(const TSharedRef<SWidget> OwnerContent) override;
29};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition SharedPointer.h:153
Definition MouseHoverComponent.h:14
bool GetIsHovered() const
Definition MouseHoverComponent.h:19
Definition UIComponent.h:25