14#include "ALinearLayout.h"
16namespace aui::detail {
17 struct AbsoluteLayoutCell {
18 aui::non_null<_<AView>> view;
19 AMetric pivotX = 0, pivotY = 0;
20 AOptional<AMetric> sizeX, sizeY;
22 operator _<AView>()
const {
34 void onResize(
int x,
int y,
int width,
int height)
override;
36 void add(aui::detail::AbsoluteLayoutCell cell);
40 int getMinimumWidth()
override;
41 int getMinimumHeight()
override;
44 using ViewInfo = aui::detail::AbsoluteLayoutCell;
Absolute positioning layout. Allows to explicitly set your own coordinates.
Definition AAbsoluteLayout.h:32
virtual void addView(const _< AView > &view, AOptional< size_t > index=std::nullopt)=0
Attaches view to the layout.
Implements addView/removeView/getAllViews and protected mViews field for Vertical,...
Definition ALinearLayout.h:59
Utility wrapper implementing the stack-allocated (fast) optional idiom.
Definition AOptional.h:32
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:178