Searched hist:caf8aba2c926b8ebaa3eb8db3aa7b5ff77048f2b (Results 1 – 2 of 2) sorted by relevance
/haiku/headers/os/interface/ |
H A D | Box.h | caf8aba2c926b8ebaa3eb8db3aa7b5ff77048f2b Fri Jun 08 23:40:16 UTC 2007 Ingo Weinhold <ingo_weinhold@gmx.de> * Added layout-friendly constructors and implemented Min/Max/PreferredSize(), and DoLayout(). When the B_SUPPORTS_LAYOUT view flag is set (as is by default when using one of the new constructors) the BBox completely manages one true child (the first child that is not the label view). * Centralized the layout related computation in new method _ValidateLayoutData(). The computed infos are cached in a new private LayoutData structure. * GetPreferredSize() was broken in several respects. It does now return the same result as PreferredSize(). If B_SUPPORTS_LAYOUT is not set, these are the sums of the insets induces by the frame and the label. I.e. those values can for instance be added to the child's preferred size to compute the preferred size of the compound.
Not sure, if the Haiku-only TopBorderOffset() and InnerFrame() functions still make sense. With layout management they're actually superfluous.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21356 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
/haiku/src/kits/interface/ |
H A D | Box.cpp | caf8aba2c926b8ebaa3eb8db3aa7b5ff77048f2b Fri Jun 08 23:40:16 UTC 2007 Ingo Weinhold <ingo_weinhold@gmx.de> * Added layout-friendly constructors and implemented Min/Max/PreferredSize(), and DoLayout(). When the B_SUPPORTS_LAYOUT view flag is set (as is by default when using one of the new constructors) the BBox completely manages one true child (the first child that is not the label view). * Centralized the layout related computation in new method _ValidateLayoutData(). The computed infos are cached in a new private LayoutData structure. * GetPreferredSize() was broken in several respects. It does now return the same result as PreferredSize(). If B_SUPPORTS_LAYOUT is not set, these are the sums of the insets induces by the frame and the label. I.e. those values can for instance be added to the child's preferred size to compute the preferred size of the compound.
Not sure, if the Haiku-only TopBorderOffset() and InnerFrame() functions still make sense. With layout management they're actually superfluous.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21356 a95241bf-73f2-0310-859d-f6bbb57e9c96
|