ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
layout.h File Reference

Layout widgets for the ASW UI module. More...

#include <cstddef>
#include <vector>
#include "context.h"
#include "widget.h"
Include dependency graph for layout.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  asw::ui::detail::ForcedSizes
 Sizes a layout forced on its children, so a child gets its own size back when the layout stops forcing it, e.g. a grid row after its tallest child is hidden. More...
 
struct  asw::ui::detail::ForcedSizes::Entry
 
class  asw::ui::Stack
 Places children one after another, top to bottom or left to right. More...
 
class  asw::ui::VBox
 A vertical stack with padding, for a column of rows. More...
 
class  asw::ui::Grid
 Places children in a grid, filling each row left to right, e.g. a level select or a 2 by 2 menu. More...
 

Namespaces

namespace  asw
 
namespace  asw::ui
 
namespace  asw::ui::detail
 

Enumerations

enum class  asw::ui::Direction { asw::ui::Vertical , asw::ui::Horizontal }
 Stack direction. More...
 
enum class  asw::ui::Align { asw::ui::Start , asw::ui::Center , asw::ui::End , asw::ui::Stretch }
 Where children sit across the stack: left to right for a vertical stack, top to bottom for a horizontal one. More...
 

Functions

bool asw::ui::in_row_with_focusables (const Widget &w)
 Whether a widget sits in a row with other widgets that can take focus: its parent is a horizontal Stack, or a Grid with more than one column, holding another visible, enabled, focusable child.
 

Detailed Description

Layout widgets for the ASW UI module.

Author
Allan Legemaate (alege.nosp@m.maat.nosp@m.e@gma.nosp@m.il.c.nosp@m.om)
Date
2026-09-28

Definition in file layout.h.