diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-02-09 21:01:34 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-02-09 21:01:34 -0500 |
| commit | 5fde17eafa11bf397bbf1f18864b8ee26d9a701d (patch) | |
| tree | 6a49da06e7a9ef1faa3c99a4067e561ed077349d /layout/doc.go | |
| parent | 5de30aee491087fa3b58c8bd629353e1133f28ba (diff) | |
| download | gui-5fde17eafa11bf397bbf1f18864b8ee26d9a701d.zip | |
add region layout
Diffstat (limited to 'layout/doc.go')
| -rw-r--r-- | layout/doc.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/layout/doc.go b/layout/doc.go new file mode 100644 index 0000000..bae4673 --- /dev/null +++ b/layout/doc.go @@ -0,0 +1,15 @@ +/* +Package layout provides means of partitioning screen space. + +A layout exists in a parent Env, and has one or more child Envs. It +acts as a multiplexer for the children. The parent Env may be a window, +another layout, or whatever... Several layers of layouts can be composed. + +A layout allocates screen area to its children by intercepting Resize +events from the parent Env. Upon reception by the layout, a Resize event +is transformed for each child, and forwarded to them. + +Draw calls from the children are intercepted and translated onto their +respective areas before being forwarded to the parent Env. +*/ +package layout |