15#include "AViewContainer.h"
16#include "ASplitterHelper.h"
17#include <AUI/Util/UIBuildingHelpers.h>
26class API_AUI_VIEWS AGridSplitter:
public AViewContainerBase {
28 friend class AGridSplitterLayout;
30 friend class ASplitter;
33 bool mAddSpacers =
true;
37 mItems = std::move(items);
49 for (
auto& row: mItems) {
50 row.push_back(_new<ASpacerExpanding>());
53 AVector<
_<AView>>::generate(mItems.first().size(), [](
size_t) { return _new<ASpacerExpanding>(); }));
55 splitter->mItems = std::move(mItems);
56 splitter->updateSplitterItems();
73 glm::bvec2 isDraggingArea(glm::ivec2
position);
76 void updateSplitterItems();
Definition AGridSplitter.h:29
Definition ASplitterHelper.h:18
A std::vector with AUI extensions.
Definition AVector.h:39
void onPointerPressed(const APointerPressedEvent &event) override
Called on pointer (mouse) released event.
Definition AViewContainerBase.cpp:289
void onPointerMove(glm::vec2 pos, const APointerMoveEvent &event) override
Handles pointer hover events.
Definition AViewContainerBase.cpp:244
bool consumesClick(const glm::ivec2 &pos) override
Determines whether this AView processes this click or passes it thru.
Definition AViewContainerBase.cpp:371
void onPointerReleased(const APointerReleasedEvent &event) override
Called on pointer (mouse) released event.
Definition AViewContainerBase.cpp:329
auto position() const
Top left corner's position relative to top left corner's position of the parent AView.
Definition AView.h:102
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:178
Pointing method move event.
Definition APointerMoveEvent.h:21
Pointing method press event.
Definition APointerPressedEvent.h:21
Pointing method press event.
Definition APointerReleasedEvent.h:19
static _< T > manage(T *raw)
Delegates memory management of the raw pointer T* raw to the shared pointer, which is returned.
Definition SharedPtrTypes.h:372