visual of standard window layout

This commit is contained in:
Jeff Carr 2025-09-11 16:42:11 -05:00
parent 809f2e564d
commit 9289ed7f2c
1 changed files with 35 additions and 3 deletions

View File

@ -3,15 +3,47 @@
package gadgets package gadgets
// This model works for 99.9% of all windows
// This is the Default Standard Window Model
import ( import (
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/gui" "go.wit.com/gui"
) )
// This model works for 99.9% of all windows
// This is the Default Standard Window Model
//
/////////////////////// Win /////////////////////////////////
// / / //
// / Top / ///////////////////////////////////////
// / / / //
// / / / Group //
// / / / //////////////////////////////////
// / / / // //
// / / / // //
// ////////////////////////////////////////////////////
// / / // // // // //
// Shelf / / // // // // //
// / Middle / // // // // .... //
// / / // // // // //
// / / // // // // //
// ////////////////////////////////////////////////////
// / / //
// / Bottom //////////////////////////////////////////
// / / //
// / //////////////////////////////////////////
// / / //
// / / | //
// / / v //
// / / //
// ////////////////////////////////////////////////////
// / //
// / //
// ////////////////////////////////////////////////////
// / //
// / | //
// / v //
// / //
/////////////////////////////////////////////////////////////
type GenericWindow struct { type GenericWindow struct {
// Win *BasicWindow // the window widget itself // Win *BasicWindow // the window widget itself
Win *gui.Node // the window widget itself Win *gui.Node // the window widget itself