13#include "AUI/Common/AObject.h"
14#include "AUI/Common/ADeque.h"
15#include "AUI/View/AView.h"
16#include "AUI/Common/SharedPtr.h"
17#include "AUI/Util/ALayoutDirection.h"
207class API_AUI_VIEWS ALayout :
public AObject {
210 virtual ~ALayout() =
default;
211 virtual void onResize(
int x,
int y,
int width,
int height) = 0;
233 virtual int getMinimumWidth() = 0;
234 virtual int getMinimumHeight() = 0;
241 virtual ALayoutDirection getLayoutDirection();
virtual void addView(const _< AView > &view, AOptional< size_t > index=std::nullopt)=0
Attaches view to the layout.
virtual void setSpacing(int spacing)
Layout spacing.
Definition ALayout.cpp:14
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
A trivial modifiable view that represents a set of views.
Definition AViewContainer.h:33
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:178
Does not allow escaping, allowing to accept lvalue ref, rvalue ref, shared_ptr and etc without overhe...
Definition values.h:127