
UIControlsGrid::append 메서드는 UI 요소를 한 번에 추가할 수 있습니다.
UIControlsGrid::append 메서드의 파라미터는 다음과 같습니다.
- `UIElement* element`: 추가할 UI 요소입니다.
- `int index`: 추가할 위치입니다. (기본값은 마지막 위치)
예를 들어, 다음과 같이 사용할 수 있습니다.
#hostingforum.kr
cpp
UIControlsGrid* grid = new UIControlsGrid();
UIElement* element1 = new UIElement();
UIElement* element2 = new UIElement();
grid->append(element1, 0); // element1을 0번 위치에 추가
grid->append(element2); // element2을 마지막 위치에 추가
2025-04-10 12:10