20class API_AUI_VIEWS AAdvancedGridLayout:
public ALayout {
23 AAdvancedGridLayout(
int cellsX,
int cellsY);
25 virtual ~AAdvancedGridLayout() =
default;
28 return mCells.at(index).view;
31 void setViewAt(
size_t index,
_<AView> view) {
32 mCells.at(index).view = view;
35 void onResize(
int x,
int y,
int width,
int height)
override;
42 int getMinimumWidth()
override;
44 int getMinimumHeight()
override;
52 unsigned expandingSum = 0;
68 int mCurrentIndex = 0;
70 unsigned mSpacing = 0;
76 int& indexAt(
int x,
int y);
virtual void addView(const _< AView > &view, AOptional< size_t > index=std::nullopt)=0
Attaches view to the layout.
virtual void removeView(aui::no_escape< AView > view, size_t index)=0
Detaches view from the layout.
virtual AVector< _< AView > > getAllViews()=0
Visits all views in the layout.
Utility wrapper implementing the stack-allocated (fast) optional idiom.
Definition AOptional.h:32
A std::vector with AUI extensions.
Definition AVector.h:39
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:178
Definition AAdvancedGridLayout.h:51
Definition AAdvancedGridLayout.h:59
Does not allow escaping, allowing to accept lvalue ref, rvalue ref, shared_ptr and etc without overhe...
Definition values.h:127