[Y-devel] Fontsize vs. layouts and windowsizes
Jonathan Harper jonathan.harper at softhome.net
Wed Jul 28 04:09:08 BST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> When Y's windows resize, a request goes down the widget tree to request the
> minimum size. Each widget adds up all the child widgets minimum sizes (or
> if this widget has some sort of border, it's the widgets responsibility for
> adding the propper amount for borders/whatnot. So if you increase the font
> in a label, the minimum size will go up for the label, the gridlayout
> widget it happens to be in will detect this and add it into the minimum
> size accordingly.
Yup. The tree-branch nature of Y means that the each branch takes care of the
padding and such for the branch above it. When a widget button needs drawing,
it doesn't have to know how big the window widget it resides in is because it
does not draw itself. It simply passes the pertinent information down the
line and the drawing occurs later.
- - Jonathan Harper
- --
- ---------
Jonathan Harper
jonathan(dot)harper(at)softhome(dot)net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iQCVAwUBQQcY16ot2VYJ2ffdAQICwwP+MiZPV8X7OqXOtElMcZ6XtezZfAMwpQLP
DwZazbOSHdPO3vPemSjdEz9HMdMvg/SiA79Bp2jUuYhh7M3I/WoIE9bl+9iK6wKD
CB0abIOWI8TcEOiw3LgqbmO84b9hSbafrj2bYJ54Ddsb+1sIozUKKY0eBGKfAUvJ
OBRMsJWrfag=
=QsFN
-----END PGP SIGNATURE-----
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved