xref: /haiku/docs/user/interface/ListView.dox (revision 080bf8fe19351c11230363077b3b6e1a00192c58)
14cbcabffSJohn Scipione/*
24cbcabffSJohn Scipione * Copyright 2013 Haiku Inc. All rights reserved.
34cbcabffSJohn Scipione * Distributed under the terms of the MIT License.
44cbcabffSJohn Scipione *
54cbcabffSJohn Scipione * Authors:
64cbcabffSJohn Scipione *		John Scipione, jscipione@gmail.com
74cbcabffSJohn Scipione *
84cbcabffSJohn Scipione * Corresponds to:
94cbcabffSJohn Scipione *		headers/os/interface/ListView.h	 hrev45555
104cbcabffSJohn Scipione *		src/kits/interface/ListView.cpp	 hrev45555
114cbcabffSJohn Scipione */
124cbcabffSJohn Scipione
134cbcabffSJohn Scipione
144cbcabffSJohn Scipione/*!
154cbcabffSJohn Scipione	\file ListView.h
164cbcabffSJohn Scipione	\ingroup interface
174cbcabffSJohn Scipione	\ingroup libbe
184cbcabffSJohn Scipione	\brief ListView class definition.
194cbcabffSJohn Scipione*/
204cbcabffSJohn Scipione
214cbcabffSJohn Scipione
224cbcabffSJohn Scipione/*!
234cbcabffSJohn Scipione	\class BListView
244cbcabffSJohn Scipione	\ingroup interface
254cbcabffSJohn Scipione	\ingroup libbe
264cbcabffSJohn Scipione	\brief Displays a list of items that the user can select and invoke.
274cbcabffSJohn Scipione
284cbcabffSJohn Scipione	BListView's can be one of two types set by the type parameter of the constructor:
294cbcabffSJohn Scipione	- \c B_SINGLE_SELECTION_LIST	Can select only one item in the list at a time.
304cbcabffSJohn Scipione	     This is the default.
314cbcabffSJohn Scipione	- \c B_MULTIPLE_SELECTION_LIST	Can select any number of items by holding down
324cbcabffSJohn Scipione	     Option for a discontinuous selection, or Shift for a contiguous selection.
334cbcabffSJohn Scipione
344cbcabffSJohn Scipione	An example of a BListView looks like this:
354cbcabffSJohn Scipione	\image html BListView_example.png
364cbcabffSJohn Scipione
374cbcabffSJohn Scipione	Click on an item to select it and double-click an item to invoke it. The
384cbcabffSJohn Scipione	BListView doesn't define what it means to "invoke" an item. See
394cbcabffSJohn Scipione	BListView::SetSelectionMessage() and BListView::SetInvocationMessage() to set
404cbcabffSJohn Scipione	a message to be set when these actions occur. You can also select and invoke
414cbcabffSJohn Scipione	items with keyboard keys such as the up and down arrow keys, Page Up and Page
424cbcabffSJohn Scipione	Down and the Enter key or Space key to invoke the item.
434cbcabffSJohn Scipione
444cbcabffSJohn Scipione	This class is based on the BList class from the Support Kit and many of the
454cbcabffSJohn Scipione	methods it uses behave similarly.
464cbcabffSJohn Scipione
474cbcabffSJohn Scipione	Although a BListView is scrollable, it doesn't provide scroll bars by itself.
484cbcabffSJohn Scipione	You should add the BListView as a child of a BScrollView to make it scrollable.
494cbcabffSJohn Scipione
504cbcabffSJohn Scipione	The code to add a BListView to a BScrollView looks something like this:
514cbcabffSJohn Scipione
524cbcabffSJohn Scipione\code
534cbcabffSJohn Scipione	BListView* list = new BListView(frame, "List", B_SINGLE_SELECTION_LIST);
544cbcabffSJohn Scipione	list->AddItem(new BStringItem("Item 1"));
554cbcabffSJohn Scipione	list->AddItem(new BStringItem("Item 2"));
564cbcabffSJohn Scipione	...
574cbcabffSJohn Scipione	view->AddChild(new BScrollView("scroll_view", list,
584cbcabffSJohn Scipione		B_FOLLOW_LEFT | B_FOLLOW_TOP, 0, false, true));
594cbcabffSJohn Scipione\endcode
604cbcabffSJohn Scipione
614cbcabffSJohn Scipione	\see BScrollView for more information on scrolling views.
624cbcabffSJohn Scipione	\see BList in the Support Kit.
634cbcabffSJohn Scipione	\see BOutlineListView
644cbcabffSJohn Scipione	\see BListItem
654cbcabffSJohn Scipione*/
664cbcabffSJohn Scipione
674cbcabffSJohn Scipione
684cbcabffSJohn Scipione/*!
694cbcabffSJohn Scipione	\fn BListView::BListView(BRect frame, const char* name, list_view_type type,
704cbcabffSJohn Scipione		uint32 resizingMode, uint32 flags)
714cbcabffSJohn Scipione	\brief Creates a new list view. This is the non-layout constructor.
724cbcabffSJohn Scipione
734cbcabffSJohn Scipione	\param frame The frame rectangle of the view.
744cbcabffSJohn Scipione	\param name The name of the view.
754cbcabffSJohn Scipione	\param type Whether the list view supports a single selection or multiple
764cbcabffSJohn Scipione	       selections.
774cbcabffSJohn Scipione	\param resizingMode The resizing mode flags.
784cbcabffSJohn Scipione	\param flags The view flags.
794cbcabffSJohn Scipione*/
804cbcabffSJohn Scipione
814cbcabffSJohn Scipione
824cbcabffSJohn Scipione/*!
834cbcabffSJohn Scipione	\fn BListView::BListView(const char* name, list_view_type type, uint32 flags)
844cbcabffSJohn Scipione	\brief Creates a new list view suitable as part of a layout with the specified
854cbcabffSJohn Scipione	       \a name, \a type, and \a flags.
864cbcabffSJohn Scipione
874cbcabffSJohn Scipione	\param name The name of the view.
884cbcabffSJohn Scipione	\param type Whether the list view supports a single selection or multiple
894cbcabffSJohn Scipione	       selections.
904cbcabffSJohn Scipione	\param flags The view flags.
914cbcabffSJohn Scipione*/
924cbcabffSJohn Scipione
934cbcabffSJohn Scipione
944cbcabffSJohn Scipione/*!
954cbcabffSJohn Scipione	\fn BListView::BListView(list_view_type type)
964cbcabffSJohn Scipione	\brief Creates a new list view suitable as part of a layout.
974cbcabffSJohn Scipione
984cbcabffSJohn Scipione	\param type Whether the list view supports a single selection or multiple
994cbcabffSJohn Scipione	       selections.
1004cbcabffSJohn Scipione*/
1014cbcabffSJohn Scipione
1024cbcabffSJohn Scipione
1034cbcabffSJohn Scipione/*!
1044cbcabffSJohn Scipione	\fn BListView::BListView(BMessage* archive)
1054cbcabffSJohn Scipione	\brief Creates a list view from an \a archive message.
1064cbcabffSJohn Scipione
1074cbcabffSJohn Scipione	\param archive The message to create the list view from.
1084cbcabffSJohn Scipione*/
1094cbcabffSJohn Scipione
1104cbcabffSJohn Scipione
1114cbcabffSJohn Scipione/*!
1124cbcabffSJohn Scipione	\fn BListView::~BListView()
1134cbcabffSJohn Scipione	\brief Delete the list view and free the memory used.
1144cbcabffSJohn Scipione
1154cbcabffSJohn Scipione	This method does not free the list items.
1164cbcabffSJohn Scipione*/
1174cbcabffSJohn Scipione
1184cbcabffSJohn Scipione
1194cbcabffSJohn Scipione/*!
1204cbcabffSJohn Scipione	\name Archiving
1214cbcabffSJohn Scipione*/
1224cbcabffSJohn Scipione
1234cbcabffSJohn Scipione
1244cbcabffSJohn Scipione//! @{
1254cbcabffSJohn Scipione
1264cbcabffSJohn Scipione
1274cbcabffSJohn Scipione/*!
1284cbcabffSJohn Scipione	\fn BArchivable* BListView::Instantiate(BMessage* archive)
1294cbcabffSJohn Scipione	\brief Create a new list view from the message \a archive.
1304cbcabffSJohn Scipione
1314cbcabffSJohn Scipione	\param archive The message to create the list view from.
1324cbcabffSJohn Scipione*/
1334cbcabffSJohn Scipione
1344cbcabffSJohn Scipione
1354cbcabffSJohn Scipione/*!
1364cbcabffSJohn Scipione	\fn status_t BListView::Archive(BMessage* archive, bool deep) const
1374cbcabffSJohn Scipione	\brief Archive the list view to a message.
1384cbcabffSJohn Scipione
1394cbcabffSJohn Scipione	\param archive The message to archive the list view to.
1404cbcabffSJohn Scipione	\param deep \c true to archive child views.
1414cbcabffSJohn Scipione*/
1424cbcabffSJohn Scipione
1434cbcabffSJohn Scipione
1444cbcabffSJohn Scipione//! @}
1454cbcabffSJohn Scipione
1464cbcabffSJohn Scipione
1474cbcabffSJohn Scipione/*!
1484cbcabffSJohn Scipione	\name Hook methods
1494cbcabffSJohn Scipione*/
1504cbcabffSJohn Scipione
1514cbcabffSJohn Scipione
1524cbcabffSJohn Scipione//! @{
1534cbcabffSJohn Scipione
1544cbcabffSJohn Scipione
1554cbcabffSJohn Scipione/*!
1564cbcabffSJohn Scipione	\fn void BListView::Draw(BRect updateRect)
1574cbcabffSJohn Scipione	\brief Hook method called to draw the contents of the text view.
1584cbcabffSJohn Scipione
1594cbcabffSJohn Scipione	You should not have to call this method directly, use Invalidate() instead.
1604cbcabffSJohn Scipione
1614cbcabffSJohn Scipione	\param updateRect The rectangular area to draw.
1624cbcabffSJohn Scipione
1634cbcabffSJohn Scipione	\see BView::Draw()
1644cbcabffSJohn Scipione*/
1654cbcabffSJohn Scipione
1664cbcabffSJohn Scipione
1674cbcabffSJohn Scipione/*!
1684cbcabffSJohn Scipione	\fn void BListView::AttachedToWindow()
1694cbcabffSJohn Scipione	\brief Hook method called when the list view is added to the view hierarchy.
1704cbcabffSJohn Scipione
1714cbcabffSJohn Scipione	\see BView::AttachedToWindow()
1724cbcabffSJohn Scipione*/
1734cbcabffSJohn Scipione
1744cbcabffSJohn Scipione
1754cbcabffSJohn Scipione/*!
1764cbcabffSJohn Scipione	\fn void BListView::DetachedFromWindow()
1774cbcabffSJohn Scipione	\brief Hook method that is called when the list view is removed from the
1784cbcabffSJohn Scipione	       view hierarchy.
1794cbcabffSJohn Scipione
1804cbcabffSJohn Scipione	\see BView::DetachedFromWindow()
1814cbcabffSJohn Scipione*/
1824cbcabffSJohn Scipione
1834cbcabffSJohn Scipione
1844cbcabffSJohn Scipione/*!
1854cbcabffSJohn Scipione	\fn void BListView::AllAttached()
1864cbcabffSJohn Scipione	\brief Hook method called once all views are attached to the view.
1874cbcabffSJohn Scipione
1884cbcabffSJohn Scipione	\see BView::AllAttached()
1894cbcabffSJohn Scipione*/
1904cbcabffSJohn Scipione
1914cbcabffSJohn Scipione
1924cbcabffSJohn Scipione/*!
1934cbcabffSJohn Scipione	\fn void BListView::AllDetached()
1944cbcabffSJohn Scipione	\brief Hook method called once all views are detached from the view.
1954cbcabffSJohn Scipione
1964cbcabffSJohn Scipione	\see BView::AllDetached()
1974cbcabffSJohn Scipione*/
1984cbcabffSJohn Scipione
1994cbcabffSJohn Scipione
2004cbcabffSJohn Scipione/*!
2014cbcabffSJohn Scipione	\fn void BListView::FrameResized(float width, float height)
2024cbcabffSJohn Scipione	\brief Hook method called when the list view is resized.
2034cbcabffSJohn Scipione
2044cbcabffSJohn Scipione	\param width The new \a width of the list view.
2054cbcabffSJohn Scipione	\param height The new \a height of the list view.
2064cbcabffSJohn Scipione
2074cbcabffSJohn Scipione	\see BView::FrameResized()
2084cbcabffSJohn Scipione*/
2094cbcabffSJohn Scipione
2104cbcabffSJohn Scipione
2114cbcabffSJohn Scipione/*!
2124cbcabffSJohn Scipione	\fn void BListView::FrameMoved(BPoint new_position)
2134cbcabffSJohn Scipione	\brief Hook method called when the list view is moved.
2144cbcabffSJohn Scipione
2154cbcabffSJohn Scipione	\param new_position The list view's new position.
2164cbcabffSJohn Scipione*/
2174cbcabffSJohn Scipione
2184cbcabffSJohn Scipione
2194cbcabffSJohn Scipione/*!
2204cbcabffSJohn Scipione	\fn void BListView::TargetedByScrollView(BScrollView *view)
2214cbcabffSJohn Scipione	\brief Hook method called when the list view is attached to a BScrollView.
2224cbcabffSJohn Scipione
2234cbcabffSJohn Scipione	\param view The BScrollView the list view is attached to.
2244cbcabffSJohn Scipione*/
2254cbcabffSJohn Scipione
2264cbcabffSJohn Scipione
2274cbcabffSJohn Scipione/*!
2284cbcabffSJohn Scipione	\fn void BListView::WindowActivated(bool state)
2294cbcabffSJohn Scipione	\brief Hook method that is called when the window becomes the active window
2304cbcabffSJohn Scipione	       or gives up that status.
2314cbcabffSJohn Scipione
2324cbcabffSJohn Scipione	\param state If \c true, window has just been activated. If \c false the
2334cbcabffSJohn Scipione	       window has just been deactivated.
2344cbcabffSJohn Scipione
2354cbcabffSJohn Scipione	\see BView::WindowActivated()
2364cbcabffSJohn Scipione*/
2374cbcabffSJohn Scipione
2384cbcabffSJohn Scipione
2394cbcabffSJohn Scipione/*!
2404cbcabffSJohn Scipione	\fn void BListView::MessageReceived(BMessage* message)
2414cbcabffSJohn Scipione	\brief Hook method called with a message is received by the list view.
2424cbcabffSJohn Scipione
2434cbcabffSJohn Scipione	\param message The message received by the list view.
2444cbcabffSJohn Scipione
2454cbcabffSJohn Scipione	\see BView::MessageReceived()
2464cbcabffSJohn Scipione*/
2474cbcabffSJohn Scipione
2484cbcabffSJohn Scipione
2494cbcabffSJohn Scipione/*!
2504cbcabffSJohn Scipione	\fn void BListView::KeyDown(const char* bytes, int32 numBytes)
2514cbcabffSJohn Scipione	\brief Hook method that is called when a key is pressed while the view is
2524cbcabffSJohn Scipione	       the focus view of the active window.
2534cbcabffSJohn Scipione
2544cbcabffSJohn Scipione	The following keys are used by the list view by default:
2554cbcabffSJohn Scipione	- Up Arrow				Selects the previous item.
2564cbcabffSJohn Scipione	- Down Arrow			Selects the next item.
2574cbcabffSJohn Scipione	- Page Up				Selects the item one view height above the current item.
2584cbcabffSJohn Scipione	- Page Down				Selects the item one view height below the current item.
2594cbcabffSJohn Scipione	- Home					Selects the first item in the list.
2604cbcabffSJohn Scipione	- End					Select the last item in the list.
2614cbcabffSJohn Scipione	- Enter and Spacebar	Invokes the currently selected item.
2624cbcabffSJohn Scipione
2634cbcabffSJohn Scipione	\param bytes The \a bytes representing the keys pushed down.
2644cbcabffSJohn Scipione	\param numBytes The size of \a bytes.
2654cbcabffSJohn Scipione
2664cbcabffSJohn Scipione	\see BView::KeyDown()
2674cbcabffSJohn Scipione*/
2684cbcabffSJohn Scipione
2694cbcabffSJohn Scipione
2704cbcabffSJohn Scipione/*!
2714cbcabffSJohn Scipione	\fn void BListView::MouseDown(BPoint point)
2724cbcabffSJohn Scipione	\brief Hook method that is called when a mouse button is pushed down while
2734cbcabffSJohn Scipione	       the cursor is contained in the view.
2744cbcabffSJohn Scipione
2754cbcabffSJohn Scipione	By default this method selects items on a single click, and invokes them on a
2764cbcabffSJohn Scipione	double click. This method calls InitiateDrag() to allow derived classes the
2774cbcabffSJohn Scipione	opportunity to drag and drop items from the list.
2784cbcabffSJohn Scipione
2794cbcabffSJohn Scipione	\param point The \a point where the mouse button was pushed down.
2804cbcabffSJohn Scipione
2814cbcabffSJohn Scipione	\see BView::MouseDown()
2824cbcabffSJohn Scipione*/
2834cbcabffSJohn Scipione
2844cbcabffSJohn Scipione
2854cbcabffSJohn Scipione/*!
2864cbcabffSJohn Scipione	\fn void BListView::MouseUp(BPoint where)
2874cbcabffSJohn Scipione	\brief Hook method that is called when a mouse button is released while
2884cbcabffSJohn Scipione	       the cursor is contained in the view.
2894cbcabffSJohn Scipione
2904cbcabffSJohn Scipione	\param where The location that the mouse button was released.
2914cbcabffSJohn Scipione
2924cbcabffSJohn Scipione	\see BView::MouseUp()
2934cbcabffSJohn Scipione*/
2944cbcabffSJohn Scipione
2954cbcabffSJohn Scipione
2964cbcabffSJohn Scipione/*!
2974cbcabffSJohn Scipione	\fn void BListView::MouseMoved(BPoint where, uint32 code,
2984cbcabffSJohn Scipione		const BMessage* dragMessage)
2994cbcabffSJohn Scipione	\brief Hook method that is called whenever the mouse cursor enters, exits
3004cbcabffSJohn Scipione	       or moves inside the list view.
3014cbcabffSJohn Scipione
3024cbcabffSJohn Scipione	\param where The point where the mouse cursor has moved to.
3034cbcabffSJohn Scipione	\param code A code which indicating if the mouse entered or exited the view.
3044cbcabffSJohn Scipione	\param dragMessage A message containing drag and drop information.
3054cbcabffSJohn Scipione
3064cbcabffSJohn Scipione	\see BView::MouseMoved()
3074cbcabffSJohn Scipione*/
3084cbcabffSJohn Scipione
3094cbcabffSJohn Scipione
3104cbcabffSJohn Scipione/*!
3114cbcabffSJohn Scipione	\fn bool BListView::InitiateDrag(BPoint point, int32 index, bool wasSelected)
3124cbcabffSJohn Scipione	\brief Hook method called when a drag and drop operation is initiated.
3134cbcabffSJohn Scipione
3144cbcabffSJohn Scipione	This method is used by derived classes to implement drag and drop. This method
3154cbcabffSJohn Scipione	is called by the MouseDown() method. If the derived class initiates the drag &
3164cbcabffSJohn Scipione	drop operation you should return \c true, otherwise return \c false. By default
3174cbcabffSJohn Scipione	this method returns \c false.
3184cbcabffSJohn Scipione
3194cbcabffSJohn Scipione	\param point Where the drag & drop operation started.
3204cbcabffSJohn Scipione	\param index
3214cbcabffSJohn Scipione	\param wasSelected Indicates whether or not the item was selected.
3224cbcabffSJohn Scipione
3234cbcabffSJohn Scipione	\returns \c true if a drag & drop operation was initiated, \c false if not.
3244cbcabffSJohn Scipione*/
3254cbcabffSJohn Scipione
3264cbcabffSJohn Scipione
3274cbcabffSJohn Scipione/*!
3284cbcabffSJohn Scipione	\fn void BListView::SelectionChanged()
3294cbcabffSJohn Scipione	\brief Hook method that is called when the selection changes.
3304cbcabffSJohn Scipione
3314cbcabffSJohn Scipione	This method should be implemented by derived classes, the default
3324cbcabffSJohn Scipione	implementation does nothing.
3334cbcabffSJohn Scipione*/
3344cbcabffSJohn Scipione
3354cbcabffSJohn Scipione
3364cbcabffSJohn Scipione//! @}
3374cbcabffSJohn Scipione
3384cbcabffSJohn Scipione
3394cbcabffSJohn Scipione/*!
3404cbcabffSJohn Scipione	\name Resize methods
3414cbcabffSJohn Scipione*/
3424cbcabffSJohn Scipione
3434cbcabffSJohn Scipione
3444cbcabffSJohn Scipione//! @{
3454cbcabffSJohn Scipione
3464cbcabffSJohn Scipione
3474cbcabffSJohn Scipione/*!
3484cbcabffSJohn Scipione	\fn void BListView::ResizeToPreferred()
3494cbcabffSJohn Scipione	\brief Resize the view to it's preferred size.
3504cbcabffSJohn Scipione
3514cbcabffSJohn Scipione	\see BView::ResizeToPreferred()
3524cbcabffSJohn Scipione*/
3534cbcabffSJohn Scipione
3544cbcabffSJohn Scipione
3554cbcabffSJohn Scipione/*!
3564cbcabffSJohn Scipione	\fn void BListView::GetPreferredSize(float *_width, float *_height)
3574cbcabffSJohn Scipione	\brief Fill out the \a _width and \a _height parameters with the preferred
3584cbcabffSJohn Scipione	       width and height of the list view.
3594cbcabffSJohn Scipione
3604cbcabffSJohn Scipione	\param _width The list view's preferred width is written to \a _width.
3614cbcabffSJohn Scipione	\param _height The list view's preferred height is written to \a _height.
3624cbcabffSJohn Scipione
3634cbcabffSJohn Scipione	\see BView::GetPreferredSize()
3644cbcabffSJohn Scipione*/
3654cbcabffSJohn Scipione
3664cbcabffSJohn Scipione
3674cbcabffSJohn Scipione/*!
3684cbcabffSJohn Scipione	\fn BSize BListView::MinSize()
3694cbcabffSJohn Scipione	\brief Returns the minimum size of the list view.
3704cbcabffSJohn Scipione
3714cbcabffSJohn Scipione	\return The minimum size of the list view as a BSize.
3724cbcabffSJohn Scipione
3734cbcabffSJohn Scipione	\see BView::MinSize()
3744cbcabffSJohn Scipione*/
3754cbcabffSJohn Scipione
3764cbcabffSJohn Scipione
3774cbcabffSJohn Scipione/*!
3784cbcabffSJohn Scipione	\fn BSize BListView::MaxSize()
3794cbcabffSJohn Scipione	\brief Returns the maximum size of the list view.
3804cbcabffSJohn Scipione
3814cbcabffSJohn Scipione	\return The maximum size of the list view as a BSize.
3824cbcabffSJohn Scipione
3834cbcabffSJohn Scipione	\see BView::MaxSize()
3844cbcabffSJohn Scipione*/
3854cbcabffSJohn Scipione
3864cbcabffSJohn Scipione
3874cbcabffSJohn Scipione/*!
3884cbcabffSJohn Scipione	\fn BSize BListView::PreferredSize()
3894cbcabffSJohn Scipione	\brief Returns the preferred size of the list view.
3904cbcabffSJohn Scipione
3914cbcabffSJohn Scipione	\return The preferred size of the list view as a BSize.
3924cbcabffSJohn Scipione
3934cbcabffSJohn Scipione	\see BView::PreferredSize()
3944cbcabffSJohn Scipione*/
3954cbcabffSJohn Scipione
3964cbcabffSJohn Scipione
3974cbcabffSJohn Scipione//! @}
3984cbcabffSJohn Scipione
3994cbcabffSJohn Scipione
4004cbcabffSJohn Scipione/*!
4014cbcabffSJohn Scipione	\fn void BListView::MakeFocus(bool focused)
4024cbcabffSJohn Scipione	\brief Highlight or unhighlight the selection when the list view acquires
4034cbcabffSJohn Scipione		or loses its focus state.
4044cbcabffSJohn Scipione
4054cbcabffSJohn Scipione	\param focused \c true to receive focus or \c false to lose it.
4064cbcabffSJohn Scipione
4074cbcabffSJohn Scipione	\see BView::MakeFocus()
4084cbcabffSJohn Scipione*/
4094cbcabffSJohn Scipione
4104cbcabffSJohn Scipione
4114cbcabffSJohn Scipione/*!
4124cbcabffSJohn Scipione	\fn void BListView::SetFont(const BFont* font, uint32 mask)
4134cbcabffSJohn Scipione	\brief Sets the font of the list view to \a font with the font parameters set
4144cbcabffSJohn Scipione	       by \a mask.
4154cbcabffSJohn Scipione
4164cbcabffSJohn Scipione	\param font The \a font to set the list view to.
4174cbcabffSJohn Scipione	\param mask A \a mask indicating which properties of \a font to set.
4184cbcabffSJohn Scipione
4194cbcabffSJohn Scipione	\see BView::SetFont()
4204cbcabffSJohn Scipione*/
4214cbcabffSJohn Scipione
4224cbcabffSJohn Scipione
4234cbcabffSJohn Scipione/*!
4244cbcabffSJohn Scipione	\fn void BListView::ScrollTo(BPoint point)
4254cbcabffSJohn Scipione	\brief Scroll the view to the specified \a point.
4264cbcabffSJohn Scipione
4274cbcabffSJohn Scipione	\param point The location to scroll the list view to.
4284cbcabffSJohn Scipione
4294cbcabffSJohn Scipione	\see BView::ScrollTo()
4304cbcabffSJohn Scipione*/
4314cbcabffSJohn Scipione
4324cbcabffSJohn Scipione
4334cbcabffSJohn Scipione/*!
4344cbcabffSJohn Scipione	\name Add and remove item methods
4354cbcabffSJohn Scipione*/
4364cbcabffSJohn Scipione
4374cbcabffSJohn Scipione
4384cbcabffSJohn Scipione//! @{
4394cbcabffSJohn Scipione
4404cbcabffSJohn Scipione
4414cbcabffSJohn Scipione/*!
4424cbcabffSJohn Scipione	\fn bool BListView::AddItem(BListItem *item, int32 index)
4434cbcabffSJohn Scipione	\brief Add an \a item to the list view at the specified \a index.
4444cbcabffSJohn Scipione
4454cbcabffSJohn Scipione	\param item The list item to add.
4464cbcabffSJohn Scipione	\param index The \a index of where to add the list item, if not specified the
4474cbcabffSJohn Scipione	       item is added to the end.
4484cbcabffSJohn Scipione
4494cbcabffSJohn Scipione	\return \c true if the list item was added, \c false otherwise.
4504cbcabffSJohn Scipione*/
4514cbcabffSJohn Scipione
4524cbcabffSJohn Scipione
4534cbcabffSJohn Scipione/*!
4544cbcabffSJohn Scipione	\fn bool BListView::AddList(BList* list, int32 index)
4554cbcabffSJohn Scipione	\brief Add a \a list of list items to the list view at the specified \a index.
4564cbcabffSJohn Scipione
4574cbcabffSJohn Scipione	\param list The \a list of list items to add.
4584cbcabffSJohn Scipione	\param index The \a index of where to add the list, if not specified the
4594cbcabffSJohn Scipione	       \a list is added to the end.
4604cbcabffSJohn Scipione
4614cbcabffSJohn Scipione	\return \c true if the \a list was added, \c false otherwise.
4624cbcabffSJohn Scipione*/
4634cbcabffSJohn Scipione
4644cbcabffSJohn Scipione
4654cbcabffSJohn Scipione/*!
4664cbcabffSJohn Scipione	\fn bool BListView::AddList(BList* list)
467*080bf8feSJohn Scipione	\brief Add a \a list of list items to the end of the list view.
4684cbcabffSJohn Scipione
4694cbcabffSJohn Scipione	\param list The \a list of list items to add.
4704cbcabffSJohn Scipione
4714cbcabffSJohn Scipione	\return \c true if the \a list was added, \c false otherwise.
4724cbcabffSJohn Scipione*/
4734cbcabffSJohn Scipione
4744cbcabffSJohn Scipione
4754cbcabffSJohn Scipione/*!
4764cbcabffSJohn Scipione	\fn BListItem* BListView::RemoveItem(int32 index)
4774cbcabffSJohn Scipione	\brief Remove the item at \a index from the list.
4784cbcabffSJohn Scipione
4794cbcabffSJohn Scipione	\param index The \a index of the item to remove.
4804cbcabffSJohn Scipione
4814cbcabffSJohn Scipione	\return \c true if the item was removed, \c false otherwise.
4824cbcabffSJohn Scipione*/
4834cbcabffSJohn Scipione
4844cbcabffSJohn Scipione
4854cbcabffSJohn Scipione/*!
4864cbcabffSJohn Scipione	\fn bool BListView::RemoveItem(BListItem* item)
4874cbcabffSJohn Scipione	\brief Remove the specified list item.
4884cbcabffSJohn Scipione
4894cbcabffSJohn Scipione	\param item The list item to remove.
4904cbcabffSJohn Scipione
4914cbcabffSJohn Scipione	\return \c true if the \a item was removed, \c false otherwise.
4924cbcabffSJohn Scipione*/
4934cbcabffSJohn Scipione
4944cbcabffSJohn Scipione
4954cbcabffSJohn Scipione/*!
4964cbcabffSJohn Scipione	\fn bool BListView::RemoveItems(int32 index, int32 count)
4974cbcabffSJohn Scipione	\brief Removes the items from \a index and the next \a count items.
4984cbcabffSJohn Scipione
4994cbcabffSJohn Scipione	\param index The location to start removing items from.
5004cbcabffSJohn Scipione	\param count The number of items past \a index to remove.
5014cbcabffSJohn Scipione
5024cbcabffSJohn Scipione	return \c true if the \a items were removed, \c false otherwise.
5034cbcabffSJohn Scipione*/
5044cbcabffSJohn Scipione
5054cbcabffSJohn Scipione
5064cbcabffSJohn Scipione//! @}
5074cbcabffSJohn Scipione
5084cbcabffSJohn Scipione
5094cbcabffSJohn Scipione/*!
5104cbcabffSJohn Scipione	\name Selection and Invocation message methods
5114cbcabffSJohn Scipione*/
5124cbcabffSJohn Scipione
5134cbcabffSJohn Scipione
5144cbcabffSJohn Scipione//! @{
5154cbcabffSJohn Scipione
5164cbcabffSJohn Scipione
5174cbcabffSJohn Scipione/*!
5184cbcabffSJohn Scipione	\fn void BListView::SetSelectionMessage(BMessage* message)
5194cbcabffSJohn Scipione	\brief Sets the \a message that the list view sends when a new item is selected.
5204cbcabffSJohn Scipione
5214cbcabffSJohn Scipione	\param message The selection \a message to set.
5224cbcabffSJohn Scipione*/
5234cbcabffSJohn Scipione
5244cbcabffSJohn Scipione
5254cbcabffSJohn Scipione/*!
5264cbcabffSJohn Scipione	\fn void BListView::SetInvocationMessage(BMessage* message)
5274cbcabffSJohn Scipione	Sets the \a message that the list view sends when an item is invoked.
5284cbcabffSJohn Scipione
5294cbcabffSJohn Scipione	\param message The invocation \a message to set.
5304cbcabffSJohn Scipione
5314cbcabffSJohn Scipione	\see BInvoker::SetMessage()
5324cbcabffSJohn Scipione*/
5334cbcabffSJohn Scipione
5344cbcabffSJohn Scipione
5354cbcabffSJohn Scipione/*!
5364cbcabffSJohn Scipione	\fn BMessage* BListView::InvocationMessage() const
5374cbcabffSJohn Scipione	\brief Returns the message that is send when an item is invoked.
5384cbcabffSJohn Scipione
5394cbcabffSJohn Scipione	\return The current invocation method as a BMessage.
5404cbcabffSJohn Scipione
5414cbcabffSJohn Scipione	\see BInvoker::Message()
5424cbcabffSJohn Scipione*/
5434cbcabffSJohn Scipione
5444cbcabffSJohn Scipione
5454cbcabffSJohn Scipione/*!
5464cbcabffSJohn Scipione	\fn uint32 BListView::InvocationCommand() const
5474cbcabffSJohn Scipione	\brief Returns the what parameter of the current invocation method.
5484cbcabffSJohn Scipione
5494cbcabffSJohn Scipione	\returns The what parameter of the currently set invocation method.
5504cbcabffSJohn Scipione
5514cbcabffSJohn Scipione	\see BInvoker::Command()
5524cbcabffSJohn Scipione*/
5534cbcabffSJohn Scipione
5544cbcabffSJohn Scipione
5554cbcabffSJohn Scipione/*!
5564cbcabffSJohn Scipione	\fn BMessage* BListView::SelectionMessage() const
5574cbcabffSJohn Scipione	\brief Returns the message that is send when an item is selected.
5584cbcabffSJohn Scipione
5594cbcabffSJohn Scipione	\return The current selection message as a BMessage.
5604cbcabffSJohn Scipione*/
5614cbcabffSJohn Scipione
5624cbcabffSJohn Scipione
5634cbcabffSJohn Scipione/*!
5644cbcabffSJohn Scipione	\fn uint32 BListView::SelectionCommand() const
5654cbcabffSJohn Scipione	\brief Returns the what parameter of the message that is send when an item is
5664cbcabffSJohn Scipione	       selected.
5674cbcabffSJohn Scipione
5684cbcabffSJohn Scipione	\return The what parameter of the current selection message.
5694cbcabffSJohn Scipione*/
5704cbcabffSJohn Scipione
5714cbcabffSJohn Scipione
5724cbcabffSJohn Scipione//! @}
5734cbcabffSJohn Scipione
5744cbcabffSJohn Scipione
5754cbcabffSJohn Scipione/*!
5764cbcabffSJohn Scipione	\name List type methods
5774cbcabffSJohn Scipione*/
5784cbcabffSJohn Scipione
5794cbcabffSJohn Scipione
5804cbcabffSJohn Scipione//! @{
5814cbcabffSJohn Scipione
5824cbcabffSJohn Scipione
5834cbcabffSJohn Scipione/*!
5844cbcabffSJohn Scipione	\fn void BListView::SetListType(list_view_type type)
5854cbcabffSJohn Scipione	\brief Sets the list view \a type.
5864cbcabffSJohn Scipione
5874cbcabffSJohn Scipione	\param type The list view \a type to set.
5884cbcabffSJohn Scipione*/
5894cbcabffSJohn Scipione
5904cbcabffSJohn Scipione
5914cbcabffSJohn Scipione/*!
5924cbcabffSJohn Scipione	\fn list_view_type BListView::ListType() const
5934cbcabffSJohn Scipione	\brief Returns the current list view type.
5944cbcabffSJohn Scipione
5954cbcabffSJohn Scipione	\return The list view type.
5964cbcabffSJohn Scipione*/
5974cbcabffSJohn Scipione
5984cbcabffSJohn Scipione
5994cbcabffSJohn Scipione//! @}
6004cbcabffSJohn Scipione
6014cbcabffSJohn Scipione
6024cbcabffSJohn Scipione/*!
6034cbcabffSJohn Scipione	\name List methods
6044cbcabffSJohn Scipione*/
6054cbcabffSJohn Scipione
6064cbcabffSJohn Scipione
6074cbcabffSJohn Scipione//! @{
6084cbcabffSJohn Scipione
6094cbcabffSJohn Scipione
6104cbcabffSJohn Scipione/*!
6114cbcabffSJohn Scipione	\fn BListItem* BListView::ItemAt(int32 index) const
6124cbcabffSJohn Scipione	\brief Returns the list item at the specified \a index.
6134cbcabffSJohn Scipione
6144cbcabffSJohn Scipione	\param index
6154cbcabffSJohn Scipione
6164cbcabffSJohn Scipione	\return The list item at the specified \a index.
6174cbcabffSJohn Scipione*/
6184cbcabffSJohn Scipione
6194cbcabffSJohn Scipione
6204cbcabffSJohn Scipione/*!
6214cbcabffSJohn Scipione	\fn int32 BListView::IndexOf(BListItem* item) const
6224cbcabffSJohn Scipione	\brief Returns the index of the specified \a item.
6234cbcabffSJohn Scipione
6244cbcabffSJohn Scipione	\param item The list item to get the index of.
6254cbcabffSJohn Scipione
6264cbcabffSJohn Scipione	\return The index of the specified \a item.
6274cbcabffSJohn Scipione*/
6284cbcabffSJohn Scipione
6294cbcabffSJohn Scipione
6304cbcabffSJohn Scipione/*!
6314cbcabffSJohn Scipione	\fn int32 BListView::IndexOf(BPoint point) const
6324cbcabffSJohn Scipione	\brief Returns the index of the item at the specified \a point.
6334cbcabffSJohn Scipione
6344cbcabffSJohn Scipione	\param point The location of the list item to get the index of.
6354cbcabffSJohn Scipione
6364cbcabffSJohn Scipione	\return The index of the list item at the specified \a point.
6374cbcabffSJohn Scipione*/
6384cbcabffSJohn Scipione
6394cbcabffSJohn Scipione
6404cbcabffSJohn Scipione/*!
6414cbcabffSJohn Scipione	\fn BListItem* BListView::FirstItem() const
6424cbcabffSJohn Scipione	\brief Returns the first list item.
6434cbcabffSJohn Scipione
6444cbcabffSJohn Scipione	\return The first item in the list.
6454cbcabffSJohn Scipione*/
6464cbcabffSJohn Scipione
6474cbcabffSJohn Scipione
6484cbcabffSJohn Scipione/*!
6494cbcabffSJohn Scipione	\fn BListItem* BListView::LastItem() const
6504cbcabffSJohn Scipione	\brief Returns the last list item.
6514cbcabffSJohn Scipione
6524cbcabffSJohn Scipione	\return The last item in the list.
6534cbcabffSJohn Scipione*/
6544cbcabffSJohn Scipione
6554cbcabffSJohn Scipione
6564cbcabffSJohn Scipione/*!
6574cbcabffSJohn Scipione	\fn bool BListView::HasItem(BListItem *item) const
6584cbcabffSJohn Scipione	\brief Returns whether or not the list contains the specified \a item.
6594cbcabffSJohn Scipione
6604cbcabffSJohn Scipione	\param item The list item to check.
6614cbcabffSJohn Scipione
6624cbcabffSJohn Scipione	\return \c true if the list item is contained in the list view, \c false
6634cbcabffSJohn Scipione	        otherwise.
6644cbcabffSJohn Scipione*/
6654cbcabffSJohn Scipione
6664cbcabffSJohn Scipione
6674cbcabffSJohn Scipione/*!
6684cbcabffSJohn Scipione	\fn int32 BListView::CountItems() const
6694cbcabffSJohn Scipione	\brief Returns the number of list items contained in the list view.
6704cbcabffSJohn Scipione
6714cbcabffSJohn Scipione	\return The number of list items.
6724cbcabffSJohn Scipione*/
6734cbcabffSJohn Scipione
6744cbcabffSJohn Scipione
6754cbcabffSJohn Scipione/*!
6764cbcabffSJohn Scipione	\fn void BListView::MakeEmpty()
6774cbcabffSJohn Scipione	\brief Empties the list view of all list items.
6784cbcabffSJohn Scipione*/
6794cbcabffSJohn Scipione
6804cbcabffSJohn Scipione
6814cbcabffSJohn Scipione/*!
6824cbcabffSJohn Scipione	\fn bool BListView::IsEmpty() const
6834cbcabffSJohn Scipione	\brief Returns whether or not the list view is empty or not.
6844cbcabffSJohn Scipione
6854cbcabffSJohn Scipione	\return \c true if the list view was empty, \c false otherwize.
6864cbcabffSJohn Scipione*/
6874cbcabffSJohn Scipione
6884cbcabffSJohn Scipione
6894cbcabffSJohn Scipione/*!
690*080bf8feSJohn Scipione	\fn void BListView::DoForEach(bool (*func)(BListItem* item))
6914cbcabffSJohn Scipione	\brief Calls the specified function on each item in the list.
6924cbcabffSJohn Scipione
6934cbcabffSJohn Scipione	The \a func is called on the items in order starting with the item at index 0
6944cbcabffSJohn Scipione	and ending at the last item in the list. This method stops calling the \a func
6954cbcabffSJohn Scipione	once it returns \a true or the end of the list is reached.
6964cbcabffSJohn Scipione
6974cbcabffSJohn Scipione	The first argument of \a func is a pointer to the list item.
6984cbcabffSJohn Scipione
6994cbcabffSJohn Scipione	\param func The function to call on each item.
7004cbcabffSJohn Scipione*/
7014cbcabffSJohn Scipione
7024cbcabffSJohn Scipione
7034cbcabffSJohn Scipione/*!
704*080bf8feSJohn Scipione	\fn void BListView::DoForEach(bool (*func)(BListItem* item, void* arg),
705*080bf8feSJohn Scipione		void* arg)
7064cbcabffSJohn Scipione	\brief Calls the specified function on each item in the list.
7074cbcabffSJohn Scipione
7084cbcabffSJohn Scipione	The \a func is called on the items in order starting with the item at index 0
7094cbcabffSJohn Scipione	and ending at the last item in the list. This method stops calling the \a func
7104cbcabffSJohn Scipione	once it returns \a true or the end of the list is reached.
7114cbcabffSJohn Scipione
7124cbcabffSJohn Scipione	The first argument of \a func is a pointer to the list item, \a arg is passed in
7134cbcabffSJohn Scipione	as the second argument.
7144cbcabffSJohn Scipione
7154cbcabffSJohn Scipione	\param func The function to call on each item.
716*080bf8feSJohn Scipione	\param arg The second argument of the function.
7174cbcabffSJohn Scipione*/
7184cbcabffSJohn Scipione
7194cbcabffSJohn Scipione
7204cbcabffSJohn Scipione/*!
7214cbcabffSJohn Scipione	\fn const BListItem** BListView::Items() const
7224cbcabffSJohn Scipione	\brief Returns a pointer to the list of list items.
7234cbcabffSJohn Scipione
7244cbcabffSJohn Scipione	\returns a pointer to the list of list items.
7254cbcabffSJohn Scipione*/
7264cbcabffSJohn Scipione
7274cbcabffSJohn Scipione
7284cbcabffSJohn Scipione//! @}
7294cbcabffSJohn Scipione
7304cbcabffSJohn Scipione
7314cbcabffSJohn Scipione/*!
7324cbcabffSJohn Scipione	\fn void BListView::InvalidateItem(int32 index)
7334cbcabffSJohn Scipione	\brief Draws the list item at the specified \a index.
7344cbcabffSJohn Scipione
7354cbcabffSJohn Scipione	\param index The \a index of the list item to draw.
7364cbcabffSJohn Scipione*/
7374cbcabffSJohn Scipione
7384cbcabffSJohn Scipione
7394cbcabffSJohn Scipione/*!
7404cbcabffSJohn Scipione	\name Selection methods
7414cbcabffSJohn Scipione*/
7424cbcabffSJohn Scipione
7434cbcabffSJohn Scipione
7444cbcabffSJohn Scipione//! @{
7454cbcabffSJohn Scipione
7464cbcabffSJohn Scipione
7474cbcabffSJohn Scipione/*!
7484cbcabffSJohn Scipione	\fn void BListView::ScrollToSelection()
7494cbcabffSJohn Scipione	\brief Scrolls to selected list item.
7504cbcabffSJohn Scipione*/
7514cbcabffSJohn Scipione
7524cbcabffSJohn Scipione
7534cbcabffSJohn Scipione/*!
7544cbcabffSJohn Scipione	\fn void BListView::Select(int32 index, bool extend)
7554cbcabffSJohn Scipione	\brief Selects the list item at the specified \a index.
7564cbcabffSJohn Scipione
7574cbcabffSJohn Scipione	\param index The \a index of the item to select.
7584cbcabffSJohn Scipione	\param extend Whether or not to also select child items.
7594cbcabffSJohn Scipione*/
7604cbcabffSJohn Scipione
7614cbcabffSJohn Scipione
7624cbcabffSJohn Scipione/*!
7634cbcabffSJohn Scipione	\fn void BListView::Select(int32 start, int32 finish, bool extend)
7644cbcabffSJohn Scipione	\brief Select items from \a start to \a finish.
7654cbcabffSJohn Scipione
7664cbcabffSJohn Scipione	\param start The index of the item to start the selection.
7674cbcabffSJohn Scipione	\param finish The index of the item to end the selection.
7684cbcabffSJohn Scipione	\param extend Whether or not to also select child items.
7694cbcabffSJohn Scipione*/
7704cbcabffSJohn Scipione
7714cbcabffSJohn Scipione
7724cbcabffSJohn Scipione/*!
7734cbcabffSJohn Scipione	\fn bool BListView::IsItemSelected(int32 index) const
7744cbcabffSJohn Scipione	\brief Returns whether or not the item at \a index is selected.
7754cbcabffSJohn Scipione
7764cbcabffSJohn Scipione	\return \c true if the item was selected, \c false otherwise.
7774cbcabffSJohn Scipione*/
7784cbcabffSJohn Scipione
7794cbcabffSJohn Scipione
7804cbcabffSJohn Scipione/*!
7814cbcabffSJohn Scipione	\fn int32 BListView::CurrentSelection(int32 index) const
7824cbcabffSJohn Scipione	\brief Returns the index of a currently selected item relative to the passed
7834cbcabffSJohn Scipione	       in \a index.
7844cbcabffSJohn Scipione
7854cbcabffSJohn Scipione	If the index of the selected item is lower than \a index the value returned
7864cbcabffSJohn Scipione	is negative, if the index of the selected item is greater than \a index the
7874cbcabffSJohn Scipione	value returned is positive. If the index of the selected item is equal to
7884cbcabffSJohn Scipione	\a index then 0 is returned.
7894cbcabffSJohn Scipione
7904cbcabffSJohn Scipione	\brief index The \a index of the item to get relative to the selected item's
7914cbcabffSJohn Scipione	       index.
7924cbcabffSJohn Scipione*/
7934cbcabffSJohn Scipione
7944cbcabffSJohn Scipione
7954cbcabffSJohn Scipione//! @}
7964cbcabffSJohn Scipione
7974cbcabffSJohn Scipione
7984cbcabffSJohn Scipione/*!
7994cbcabffSJohn Scipione	\fn status_t BListView::Invoke(BMessage* message)
8004cbcabffSJohn Scipione	\brief Invoke the list view, either with the current invocation message or
8014cbcabffSJohn Scipione	       \a message if it is specified.
8024cbcabffSJohn Scipione
8034cbcabffSJohn Scipione	\param message The message to send or \c NULL to send the current invocation
8044cbcabffSJohn Scipione	       message.
8054cbcabffSJohn Scipione
8064cbcabffSJohn Scipione	\see BControl::Invoke()
8074cbcabffSJohn Scipione*/
8084cbcabffSJohn Scipione
8094cbcabffSJohn Scipione
8104cbcabffSJohn Scipione/*!
8114cbcabffSJohn Scipione	\name Deselection methods
8124cbcabffSJohn Scipione*/
8134cbcabffSJohn Scipione
8144cbcabffSJohn Scipione
8154cbcabffSJohn Scipione//! @{
8164cbcabffSJohn Scipione
8174cbcabffSJohn Scipione
8184cbcabffSJohn Scipione/*!
8194cbcabffSJohn Scipione	\fn void BListView::DeselectAll()
8204cbcabffSJohn Scipione	\brief Deselect all items.
8214cbcabffSJohn Scipione*/
8224cbcabffSJohn Scipione
8234cbcabffSJohn Scipione
8244cbcabffSJohn Scipione/*!
8254cbcabffSJohn Scipione	\fn void BListView::DeselectExcept(int32 exceptFrom, int32 exceptTo)
8264cbcabffSJohn Scipione	\brief Deselect all items except the items with index in the range of
8274cbcabffSJohn Scipione	       \a exceptFrom to \a exceptTo.
8284cbcabffSJohn Scipione
8294cbcabffSJohn Scipione	\param exceptFrom The index of the start of the exception list.
8304cbcabffSJohn Scipione	\param exceptTo The index of the end of the exception list.
8314cbcabffSJohn Scipione*/
8324cbcabffSJohn Scipione
8334cbcabffSJohn Scipione
8344cbcabffSJohn Scipione/*!
8354cbcabffSJohn Scipione	\fn void BListView::Deselect(int32 index)
8364cbcabffSJohn Scipione	\brief Deselect the item at \a index.
8374cbcabffSJohn Scipione
8384cbcabffSJohn Scipione	\param index The \a index of the item to deselect.
8394cbcabffSJohn Scipione*/
8404cbcabffSJohn Scipione
8414cbcabffSJohn Scipione
8424cbcabffSJohn Scipione//! @}
8434cbcabffSJohn Scipione
8444cbcabffSJohn Scipione
8454cbcabffSJohn Scipione/*!
8464cbcabffSJohn Scipione	\fn void BListView::SortItems(int (*cmp)(const void *, const void *))
8474cbcabffSJohn Scipione	\brief sort the items according the the passed in \a cmp function.
8484cbcabffSJohn Scipione
8494cbcabffSJohn Scipione	\param cmp The compare function to use to sort the items.
8504cbcabffSJohn Scipione*/
8514cbcabffSJohn Scipione
8524cbcabffSJohn Scipione
8534cbcabffSJohn Scipione/*!
8544cbcabffSJohn Scipione	\fn bool BListView::SwapItems(int32 a, int32 b)
8554cbcabffSJohn Scipione	\brief Swap item \a a with item \a b.
8564cbcabffSJohn Scipione
8574cbcabffSJohn Scipione	\param a The index of the first item to swap.
8584cbcabffSJohn Scipione	\param b The index of the second item to swap.
8594cbcabffSJohn Scipione
8604cbcabffSJohn Scipione	\return \c true if the items were swapped, \c false otherwise.
8614cbcabffSJohn Scipione*/
8624cbcabffSJohn Scipione
8634cbcabffSJohn Scipione
8644cbcabffSJohn Scipione/*!
8654cbcabffSJohn Scipione	\fn bool BListView::MoveItem(int32 from, int32 to)
8664cbcabffSJohn Scipione	\brief Move the item at index \a from to the position in the list at index \a to.
8674cbcabffSJohn Scipione
8684cbcabffSJohn Scipione	\param from The index of the item to move.
8694cbcabffSJohn Scipione	\param to The index to move the item to.
8704cbcabffSJohn Scipione
8714cbcabffSJohn Scipione	\return \c true if the item was moved, \c false otherwise.
8724cbcabffSJohn Scipione*/
8734cbcabffSJohn Scipione
8744cbcabffSJohn Scipione
8754cbcabffSJohn Scipione/*!
8764cbcabffSJohn Scipione	\fn bool BListView::ReplaceItem(int32 index, BListItem* item)
8774cbcabffSJohn Scipione	\brief Replace the item at index \a index with \a item.
8784cbcabffSJohn Scipione
8794cbcabffSJohn Scipione	\param index The \a index of the item to replace.
8804cbcabffSJohn Scipione	\param item The \a item to replace the item at \a index with.
8814cbcabffSJohn Scipione
8824cbcabffSJohn Scipione	\return \c true if the item was replaced, \c false otherwise.
8834cbcabffSJohn Scipione*/
8844cbcabffSJohn Scipione
8854cbcabffSJohn Scipione
8864cbcabffSJohn Scipione/*!
8874cbcabffSJohn Scipione	\fn BRect BListView::ItemFrame(int32 index)
8884cbcabffSJohn Scipione	\brief Return the frame of the item at the specified \a index.
8894cbcabffSJohn Scipione
8904cbcabffSJohn Scipione	\param index The \a index of the item to get the frame of.
8914cbcabffSJohn Scipione
8924cbcabffSJohn Scipione	\returns The frame of the item at \a index.
8934cbcabffSJohn Scipione*/
8944cbcabffSJohn Scipione
8954cbcabffSJohn Scipione
8964cbcabffSJohn Scipione/*!
8974cbcabffSJohn Scipione	\fn BHandler* BListView::ResolveSpecifier(BMessage* message, int32 index,
8984cbcabffSJohn Scipione		BMessage* specifier, int32 form, const char* property);
8994cbcabffSJohn Scipione	\brief Returns the proper handler for the passed in scripting \a message.
9004cbcabffSJohn Scipione
9014cbcabffSJohn Scipione	\param message The scripting message to determine the handler.
9024cbcabffSJohn Scipione	\param index The index of the specifier.
9034cbcabffSJohn Scipione	\param specifier The message which contains the specifier.
9044cbcabffSJohn Scipione	\param form The 'what' field of the specifier message.
9054cbcabffSJohn Scipione	\param property The name of the target property.
9064cbcabffSJohn Scipione
9074cbcabffSJohn Scipione	\return The proper BHandler for the passed in scripting \a message.
9084cbcabffSJohn Scipione
9094cbcabffSJohn Scipione	\see BView::ResolveSpecifier()
9104cbcabffSJohn Scipione*/
9114cbcabffSJohn Scipione
9124cbcabffSJohn Scipione
9134cbcabffSJohn Scipione/*!
9144cbcabffSJohn Scipione	\fn status_t BListView::GetSupportedSuites(BMessage* data)
9154cbcabffSJohn Scipione	\brief Reports the suites of messages and specifiers that derived classes
9164cbcabffSJohn Scipione		understand.
9174cbcabffSJohn Scipione
9184cbcabffSJohn Scipione	\param data The message to report the suite of messages and specifiers.
9194cbcabffSJohn Scipione
9204cbcabffSJohn Scipione	\see BView::GetSupportedSuites()
9214cbcabffSJohn Scipione*/
9224cbcabffSJohn Scipione
9234cbcabffSJohn Scipione
9244cbcabffSJohn Scipione/*!
9254cbcabffSJohn Scipione	\fn status_t BListView::Perform(perform_code code, void* _data)
9264cbcabffSJohn Scipione	\brief Performs an action give a perform_code and data. (Internal Method)
9274cbcabffSJohn Scipione
9284cbcabffSJohn Scipione	\param code The perform code
9294cbcabffSJohn Scipione	\param _data A pointer to some data to perform on
9304cbcabffSJohn Scipione
9314cbcabffSJohn Scipione	\return A status code.
9324cbcabffSJohn Scipione
9334cbcabffSJohn Scipione	\see BView::Perform()
9344cbcabffSJohn Scipione*/
935