Re: Fontsize vs. layouts and windowsizes
Jonathan Harper <[email protected]> Tue, 27 Jul 2004 23:09:08 -0400
| Newsgroups | gmane.comp.graphics.y.devel |
|---|---|
| Message-ID | <[email protected]> |
-----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-----