ALayout#
Base class for all layout managers.
Header: | #include <AUI/Layout/ALayout.h> |
CMake: | aui_link(my_target PUBLIC aui::views) |
Public Methods#
addView#
Attaches view to the layout.
- Arguments
See ABasicLayout for basic implementation of this method.
Examples#
examples/app/minesweeper/src/MinesweeperWindow.cpp
Minesweeper Game - Minesweeper game implementation driven by ass.
getAllViews#
Visits all views in the layout.
onResize#
Applies geometry to children.
- Arguments
x
x coordinate in container's coordinate space, add padding if necessary.y
y coordinate in container's coordinate space, add padding if necessary.width
width of the container, add padding if necessary.height
height of the container, add padding if necessary.
See layout-managers for more info.
removeView#
Detaches view from the layout.
- Arguments
See ABasicLayout for basic implementation of this method.
setSpacing#
Layout spacing.
- Arguments
spacing
spacing in px.