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
"
6
#include "
Extensions/UIComponent.h
"
7
#include "
UObject/ObjectMacros.h
"
8
9
#include "MouseHoverComponent.generated.h"
10
12
UCLASS
(MinimalAPI)
13
class
UMouseHoverComponent
:
public
UUIComponent
14
{
15
GENERATED_BODY
()
16
17
public
:
18
19
bool
GetIsHovered
()
const
{
return
bIsHovered; }
20
21
void
OnMouseHoverChanged(
bool
InbIsHovered
);
22
23
private
:
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
};
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
ObjectMacros.h
UPROPERTY
#define UPROPERTY(...)
UObject definition macros.
Definition
ObjectMacros.h:744
GENERATED_BODY
#define GENERATED_BODY(...)
Definition
ObjectMacros.h:765
UCLASS
#define UCLASS(...)
Definition
ObjectMacros.h:776
UIComponent.h
TSharedRef
Definition
SharedPointer.h:153
UMouseHoverComponent
Definition
MouseHoverComponent.h:14
UMouseHoverComponent::GetIsHovered
bool GetIsHovered() const
Definition
MouseHoverComponent.h:19
UUIComponent
Definition
UIComponent.h:25
Engine
Source
Runtime
UMG
Public
Components
MouseHoverComponent.h
Generated by
1.9.8