AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AGridSplitter Class Reference

A resizable grid layout. More...

#include <AUI/View/AGridSplitter.h>

Detailed Description

AGridSplitter represents a grid layout which can be resized by user. Unlike ASplitter, works in both directions. AGridSplitter can be constructed with AGridSplitter::Builder.

Member Function Documentation

> All members, including inherited

◆ consumesClick()

bool AGridSplitter::consumesClick ( const glm::ivec2 & pos)
overridevirtual
Parameters
posmouse position
Returns
true if AView processes this click

Used in AViewContainer::getViewAt method subset, thus affecting click event handling.

Reimplemented from AView.

◆ onPointerMove()

void AGridSplitter::onPointerMove ( glm::vec2 pos,
const APointerMoveEvent & event )
overridevirtual
Parameters
posevent position
eventevent description
Note
If the view is pressed, it would still received move events. Use AView::isMouseHover to check is the pointer actually over view or not. See AView::onPointerReleased for more info.

Reimplemented from AView.

◆ onPointerPressed()

void AGridSplitter::onPointerPressed ( const APointerPressedEvent & event)
overridevirtual
Parameters
eventevent

Reimplemented from AView.

◆ onPointerReleased()

void AGridSplitter::onPointerReleased ( const APointerReleasedEvent & event)
overridevirtual
Parameters
eventevent
Note
To handle clicks, you should use AView::clicked signal instead. View still receives pointer move and released events even if cursor goes outside the view boundaries, or other exclusive event appeared (i.e. scrollarea scroll). AView::clicked emitted only if release event occurred inside view and no other event has prevented click gesture. See APointerReleasedEvent::triggerClick.

Reimplemented from AView.