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);
Grid layout. Unlike AGridLayout, cells may have different sizes.
Definition: AAdvancedGridLayout.h:20
Base class for all layout managers.
Definition: ALayout.h:207
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:38
An std::weak_ptr with AUI extensions.
Definition: SharedPtrTypes.h:177
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