KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UPageScrollItem.cpp
이 파일의 문서화 페이지로 가기
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#include "UPageScrollItem.h"
4#include "UPageScrollView.h"
5
6void UPageScrollItem::InitData(int32 InIndex, UPageScrollView* InOwner)
7{
8 pageIndex = InIndex;
9 ownerScrollView = InOwner;
10
11 // Blueprint에서 구현할 SetPageContent 호출
12 SetPageContent(InIndex);
13}
14
15void UPageScrollItem::UpdateFocusState_Implementation(bool bInFocused, float InScale)
16{
17 if (bIsFocused == bInFocused)
18 return;
19
20 bIsFocused = bInFocused;
21
22 // 포커스 변경 이벤트 발생
24}
TWeakObjectPtr< class UPageScrollView > ownerScrollView
이 페이지를 소유한 부모 ScrollView
bool bIsFocused
현재 포커스 상태
virtual void InitData(int32 InIndex, class UPageScrollView *InOwner)
페이지 아이템을 초기화합니다.
int32 pageIndex
이 페이지의 인덱스
void SetPageContent(int32 Index)
페이지 콘텐츠를 설정합니다 (Blueprint에서 재정의).
FOnItemFocusChanged OnItemFocusChanged
포커스 변경 이벤트
페이지 단위 스크롤 뷰 위젯 드래그 기반 스크롤과 자동 스냅 기능을 제공하는 메인 컨트롤러 위젯입니다.