History log of /haiku/src/kits/interface/LayoutUtils.cpp
Revision Date Author Comments
# 71bba69f 15-Jul-2023 Augustin Cavalier <waddlesplash@gmail.com>

Interface Kit: Add casts to int32 following previous commit.


# cfa65340 09-Oct-2021 Adrien Destugues <pulkomandy@pulkomandy.tk>

LayoutUtils: improve text dump of layout

- Show view names in addition to class names
- Use class_name from ClassInfo.h to get class names (no functional change)
- Use 4 spaces for indentation instead of 2


# a43cf8d4 25-Jul-2021 Adrien Destugues <pulkomandy@pulkomandy.tk>

LayoutUtils: fix typo

This is in the code to print a text dump of the layout constraints, so
it does not fix any layout problems, but it makes debugging things a bit
easier.


# e439b003 07-Apr-2014 John Scipione <jscipione@gmail.com>

Fix button label position, try number 2

Create and use BLayoutUtils::AlignOnRect() to position the button label
in BControlLook::DrawLabel().

AlignOnRect(), unlike AlignInFrame(), provides the possibility to return
a rectangle with dimensions greater than the available size.

Add some comments above the methods in LayoutUtils that indicate such.

Also update copyright headers in LayoutUtils and ControlLook


# f0fdd7b9 07-Apr-2014 John Scipione <jscipione@gmail.com>

LayoutUtils: Use floorf() instead of floor()


# 6ecc270f 04-Apr-2014 John Scipione <jscipione@gmail.com>

LayoutUtils: Use std::max instead of max_c


# 04b48a29 04-Apr-2014 John Scipione <jscipione@gmail.com>

LayoutUtils: Style fix, remove leading space


# 4a8da960 10-Sep-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

BLayoutUtils: Add GetLayoutTreeDump()

Returns a debug output string listing the basic layout properties of
the view/item hierarchy.


# df2b4726 19-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

BLayoutUtils::MoveIntoFrame(): Fixed check. Spotted by korli.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39509 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 39c1cc12 19-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Added MoveIntoFrame() method.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39494 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52e06f98 16-Apr-2008 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Artur Wyszynski:
* Renamed BView::Alignment() to LayoutAlignment() which fixes a ton of warnings
and some conflicts with BControls.
* Added virtual destructor to BRefFilter in case the GCC version is 3 or newer
(can't do it for GCC 2.95.3, since that would break binary compatibility
AFAIKT)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24983 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dd5ac13b 08-Jun-2007 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added FixSizeConstraints() functions, which adjust the elements of a (min,
max, preferred) size triple so that they are compatible with each other.
* Implemented AlignInFrame(BView*, BRect).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21353 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9ecf9d1c 26-Aug-2006 Ingo Weinhold <ingo_weinhold@gmx.de>

Merge from layout management branch.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e439b003978b9554e034bb4cfc59e164a7215b31 07-Apr-2014 John Scipione <jscipione@gmail.com>

Fix button label position, try number 2

Create and use BLayoutUtils::AlignOnRect() to position the button label
in BControlLook::DrawLabel().

AlignOnRect(), unlike AlignInFrame(), provides the possibility to return
a rectangle with dimensions greater than the available size.

Add some comments above the methods in LayoutUtils that indicate such.

Also update copyright headers in LayoutUtils and ControlLook


# f0fdd7b97aa1cd8dd66bbeac35293523bcccedee 07-Apr-2014 John Scipione <jscipione@gmail.com>

LayoutUtils: Use floorf() instead of floor()


# 6ecc270f57931536803c747feb5a680f11a7595f 04-Apr-2014 John Scipione <jscipione@gmail.com>

LayoutUtils: Use std::max instead of max_c


# 04b48a29bd06f7d697ffee3882b645dd0bfd56e4 04-Apr-2014 John Scipione <jscipione@gmail.com>

LayoutUtils: Style fix, remove leading space


# 4a8da96088a5aa35d7377c97746f6151ff0e6457 10-Sep-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

BLayoutUtils: Add GetLayoutTreeDump()

Returns a debug output string listing the basic layout properties of
the view/item hierarchy.


# df2b4726b205a1ba341ee232a298d464a34c3236 19-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

BLayoutUtils::MoveIntoFrame(): Fixed check. Spotted by korli.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39509 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 39c1cc127a38610b30faf8bb8d9f00af92b4b1fa 19-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Added MoveIntoFrame() method.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39494 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52e06f988d899b47c5d93d07e99aa94c0af8019b 16-Apr-2008 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Artur Wyszynski:
* Renamed BView::Alignment() to LayoutAlignment() which fixes a ton of warnings
and some conflicts with BControls.
* Added virtual destructor to BRefFilter in case the GCC version is 3 or newer
(can't do it for GCC 2.95.3, since that would break binary compatibility
AFAIKT)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24983 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dd5ac13b5f77d65c74446503d7b58988c4dca4a1 08-Jun-2007 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added FixSizeConstraints() functions, which adjust the elements of a (min,
max, preferred) size triple so that they are compatible with each other.
* Implemented AlignInFrame(BView*, BRect).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21353 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9ecf9d1c1d4888d341a6eac72112c72d1ae3a4cb 26-Aug-2006 Ingo Weinhold <ingo_weinhold@gmx.de>

Merge from layout management branch.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96