20class API_AUI_VIEWS AAdvancedGridLayout :
public ALayout {
22 AAdvancedGridLayout(
int cellsX,
int cellsY);
24 virtual ~AAdvancedGridLayout() =
default;
26 _<AView> getViewAt(
size_t index) {
return mCells.at(index).view; }
28 void setViewAt(
size_t index,
_<AView> view) { mCells.at(index).view = view; }
30 void onResize(
int x,
int y,
int width,
int height)
override;
37 int getMinimumWidth()
override;
39 int getMinimumHeight()
override;
49 unsigned expandingSum = 0;
60 operator _<AView>()
const {
return view; }
63 int mCurrentIndex = 0;
65 unsigned mSpacing = 0;
71 int& indexAt(
int x,
int y);
void setSpacing(int spacing) override
Layout spacing.
AVector< _< AView > > getAllViews() override
Visits all views in the layout.
void removeView(aui::no_escape< AView > view, size_t index) override
Detaches view from the layout.
void addView(const _< AView > &view, AOptional< size_t > index) override
Attaches view to the layout.
virtual void addView(const _< AView > &view, AOptional< size_t > index=std::nullopt)=0
Attaches view to the layout.
Utility wrapper implementing the stack-allocated (fast) optional idiom.
Definition AOptional.h:33
A std::vector with AUI extensions.
Definition AVector.h:39
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:179
Definition AAdvancedGridLayout.h:48
Definition AAdvancedGridLayout.h:56
Does not allow escaping, allowing to accept lvalue ref, rvalue ref, shared_ptr and etc without overhe...
Definition values.h:128