KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UPageScrollItem.h
이 파일의 문서화 페이지로 가기
1// Copyright (c) 2025 Doppleddiggong. All rights reserved. Unauthorized copying, modification, or distribution of this file, via any medium is strictly prohibited. Proprietary and confidential.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Blueprint/UserWidget.h"
7#include "UPageScrollItem.generated.h"
8
10DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnItemFocusChanged, bool, bFocused);
11
16UCLASS()
17class ONEPIECE_API UPageScrollItem : public UUserWidget
18{
19 GENERATED_BODY()
20
21public:
25 virtual void InitData(int32 InIndex, class UPageScrollView* InOwner);
26
30 UFUNCTION(BlueprintNativeEvent, Category = "PageScrollItem")
31 void UpdateFocusState(bool bInFocused, float InScale);
32
35 UFUNCTION(BlueprintImplementableEvent, Category = "PageScrollItem")
36 void SetPageContent(int32 Index);
37
40 UFUNCTION(BlueprintCallable, BlueprintPure, Category = "PageScrollItem")
41 int32 GetPageIndex() const { return pageIndex; }
42
45 UFUNCTION(BlueprintCallable, BlueprintPure, Category = "PageScrollItem")
46 bool IsFocused() const { return bIsFocused; }
47
48public:
50 UPROPERTY(BlueprintAssignable, Category = "PageScrollItem|Events")
51 FOnItemFocusChanged OnItemFocusChanged;
52
53private:
55 TWeakObjectPtr<class UPageScrollView> ownerScrollView;
56
58 int32 pageIndex = -1;
59
61 bool bIsFocused = false;
62};
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnItemFocusChanged, bool, bFocused)
페이지 포커스 변경 이벤트 델리게이트
페이지 스크롤 뷰의 개별 페이지 아이템 UPageScrollView에 의해 동적으로 생성되며, 개별 페이지의 콘텐츠를 담는 컨테이너입니다.
페이지 단위 스크롤 뷰 위젯 드래그 기반 스크롤과 자동 스냅 기능을 제공하는 메인 컨트롤러 위젯입니다.