Merge work by John Scipione on the Haiku Book.
* Some new classes documented * Screenshots for the interface kit controls * A lot of typo fixes * Some css tweaks This has some backporting to the current version of Doxygen, since there are experiments to get coloring similar to the one in the Be Book that will hopefully be upstreamed in Doxygen. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42608 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,3 +1,21 @@
|
||||
/*
|
||||
* Copyright 2010, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Documentation by:
|
||||
* Alex Wilson <[email protected]>
|
||||
* Corresponds to:
|
||||
* /trunk/headers/os/interface/LayoutItem.h rev 38207
|
||||
* /trunk/src/kits/interface/LayoutItem.cpp rev 38207
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\file LayoutItem.h
|
||||
Describes the BLayoutItem class
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\class BLayoutItem
|
||||
\ingroup interface
|
||||
@@ -20,7 +38,7 @@
|
||||
\fn BLayoutItem::BLayoutItem(BMessage* archive)
|
||||
\brief Archive constructor.
|
||||
|
||||
Creates a Bunarchiver for \a archive and calls its Finish() method.
|
||||
Creates a BLayoutItem from the \a archive message.
|
||||
*/
|
||||
|
||||
|
||||
@@ -31,10 +49,21 @@
|
||||
|
||||
|
||||
/*!
|
||||
\name Reporting size and alignment constraints to a BLayout
|
||||
@{
|
||||
\fn BLayout::~BLayout()
|
||||
\brief Destructor method.
|
||||
|
||||
Standard Destructor.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\name Reporting size and alignment constraints to a BLayout
|
||||
*/
|
||||
|
||||
|
||||
//! @{
|
||||
|
||||
|
||||
/*!
|
||||
\fn BSize BLayoutItem::MinSize() = 0
|
||||
\brief Returns the minimum desirable size for this item.
|
||||
@@ -67,7 +96,7 @@
|
||||
|
||||
/*!
|
||||
\fn bool BLayoutItem::HasHeightForWidth()
|
||||
\brief Returns whether or not this BLayoutItem's height constraints are
|
||||
\brief Returns whether or not this BLayoutItem's height constraints are
|
||||
dependent on its width.
|
||||
|
||||
\note By default, this method returns \c false.
|
||||
@@ -77,18 +106,18 @@
|
||||
/*!
|
||||
\fn void BLayoutItem::GetHeightForWidth(float width, float* min,
|
||||
float* max, float* preferred)
|
||||
\brief Get this BLayoutItem's height constraints for a given \a width.
|
||||
\brief Get this BLayoutItem's height constraints for a given \a width.
|
||||
|
||||
If a BLayoutItem does not have height for width constraints
|
||||
(HasHeightForWidth() returns \c false) it does not need to implement this
|
||||
method.
|
||||
|
||||
\note It is prudent to compare \a min, \a max, \a preferred to NULL before
|
||||
dereferencing them.
|
||||
\note It is prudent to compare \a min, \a max, \a preferred to \c NULL
|
||||
before dereferencing them.
|
||||
*/
|
||||
|
||||
|
||||
//@}
|
||||
//! @}
|
||||
|
||||
|
||||
/*!
|
||||
@@ -100,11 +129,12 @@
|
||||
in when reporting these constraints. It is recommended that all subclasses
|
||||
do this as well, the BAbstractLayoutItem class provides any easy way to
|
||||
include this behaviour in your class.
|
||||
|
||||
@{
|
||||
*/
|
||||
|
||||
|
||||
//! @{
|
||||
|
||||
|
||||
/*!
|
||||
\fn void BLayoutItem::SetExplicitMinSize(BSize size) = 0
|
||||
\brief Set this item's explicit min size, to be used in MinSize().
|
||||
@@ -130,7 +160,7 @@
|
||||
*/
|
||||
|
||||
|
||||
//@}
|
||||
//! @}
|
||||
|
||||
|
||||
/*!
|
||||
@@ -138,11 +168,12 @@
|
||||
|
||||
These methods take into account only the local visibility of this
|
||||
item, not the visibility of its ancestors. \n
|
||||
|
||||
@{
|
||||
*/
|
||||
|
||||
|
||||
//! @{
|
||||
|
||||
|
||||
/*!
|
||||
\fn bool BLayoutItem::IsVisible() = 0
|
||||
\brief Return the current local visibility of this item. If an item is not
|
||||
@@ -160,17 +191,17 @@
|
||||
*/
|
||||
|
||||
|
||||
//@}
|
||||
//! @}
|
||||
|
||||
|
||||
/*!
|
||||
\name Getting and setting the current on-screen positioning of \
|
||||
a BLayoutItem.
|
||||
|
||||
@{
|
||||
\name Getting and setting the current on-screen positioning of a BLayoutItem.
|
||||
*/
|
||||
|
||||
|
||||
//! @{
|
||||
|
||||
|
||||
/*!
|
||||
\fn void BLayoutItem::AlignInFrame(BRect frame)
|
||||
\brief Position this BLayoutItem within \a frame, given the value returned
|
||||
@@ -191,21 +222,21 @@
|
||||
\fn void BLayoutItem::SetFrame(BRect frame) = 0
|
||||
\brief Set the bounding frame of this item.
|
||||
|
||||
\a frame is in the coordinate system of the target view of the
|
||||
BLayout this item belongs to.
|
||||
\a frame is in the coordinate system of the target view of the BLayout
|
||||
that this item belongs to.
|
||||
*/
|
||||
|
||||
|
||||
//@}
|
||||
//! @}
|
||||
|
||||
|
||||
/*!
|
||||
\fn BView* BLayoutItem::View()
|
||||
\brief Return the BView this item is representing, or NULL if it does not
|
||||
\brief Return the BView this item is representing, or \c NULL if it does not
|
||||
represent any view.
|
||||
|
||||
When a BLayoutItem is added to a BLayout, this method is called, and the
|
||||
returned BView will be added to the BLayout's target view.
|
||||
returned BView will be added to the BLayout's target view.
|
||||
*/
|
||||
|
||||
|
||||
@@ -216,11 +247,12 @@
|
||||
BLayout. In some implementations they may be handled directly by this
|
||||
BLayoutItem, but many implementations will forward these events to
|
||||
another object.
|
||||
|
||||
@{
|
||||
*/
|
||||
|
||||
|
||||
//! @{
|
||||
|
||||
|
||||
/*!
|
||||
\fn void BLayoutItem::InvalidateLayout(bool children = false)
|
||||
\brief Invalidate the layout of this item, or the object it represents.
|
||||
@@ -237,18 +269,19 @@
|
||||
*/
|
||||
|
||||
|
||||
//@}
|
||||
//! @}
|
||||
|
||||
|
||||
/*!
|
||||
\name Utility methods for BLayout subclasses
|
||||
\brief Utility methods for the BLayout class to attach and retrieve
|
||||
arbitrary data for a BLayoutItem.
|
||||
|
||||
@{
|
||||
*/
|
||||
|
||||
|
||||
//! @{
|
||||
|
||||
|
||||
/*!
|
||||
\fn void* BLayoutItem::LayoutData() const
|
||||
\brief Retrieve arbitrary data attached to this BLayoutItem.
|
||||
@@ -265,15 +298,17 @@
|
||||
*/
|
||||
|
||||
|
||||
//@}
|
||||
//! @}
|
||||
|
||||
|
||||
/*! \name Hook methods
|
||||
|
||||
@{
|
||||
/*!
|
||||
\name Hook methods
|
||||
*/
|
||||
|
||||
|
||||
//! @{
|
||||
|
||||
|
||||
/*!
|
||||
\fn void BLayoutItem::AttachedToLayout()
|
||||
\brief Hook called when this object is attached to a BLayout (via
|
||||
@@ -288,16 +323,17 @@
|
||||
\fn void BLayoutItem::DetachedFromLayout(BLayout* layout)
|
||||
\brief Hook called when this object is attached to a BLayout (via
|
||||
BLayout::RemoveItem())
|
||||
\param layout The BLayout you were previously attached to.
|
||||
|
||||
\warning You should not use this hook to reattach \c this to \a BLayout,
|
||||
doing so will cause undefined behaviour (probably a crash).
|
||||
|
||||
\param layout The BLayout you were previously attached to.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn void BLayoutItem::AncestorVisibilityChanged(bool shown)
|
||||
\brief Hook called when this BLayoutItem's ancestors change visibility,
|
||||
\brief Hook called when this BLayoutItem's ancestors change visibility,
|
||||
effectively hiding or showing this item.
|
||||
|
||||
Implementations of this method should alter the onscreen visibility of this
|
||||
@@ -306,7 +342,9 @@
|
||||
|
||||
\note This method should not effect the value returned by this object's
|
||||
IsVisible() method.
|
||||
|
||||
\param shown \c true to show, \c false to hide.
|
||||
*/
|
||||
|
||||
|
||||
//@}
|
||||
//! @}
|
||||
|
||||
Reference in New Issue
Block a user