diff --git a/docs/user/interface/AbstractLayout.dox b/docs/user/interface/AbstractLayout.dox index 4e04b49d82..1b01bf79bd 100644 --- a/docs/user/interface/AbstractLayout.dox +++ b/docs/user/interface/AbstractLayout.dox @@ -16,9 +16,9 @@ \ingroup interface \ingroup layout \ingroup libbe - \brief BLayout subclass providing convenience methods for derived - implementations. + implementations. + \since Haiku R1 This class is designed to reduce the amount of boilerplate code required to write a BLayout subclass. In most cases, you classes should derive from @@ -30,7 +30,7 @@ locally. \warning This class is not yet finalized, if you use it in your software - assume that it will break some time in the future. + assume that it will break some time in the future. */ @@ -44,12 +44,16 @@ /*! \fn BAbstractLayout::BAbstractLayout() \brief Construct a BAbstractLayout. + + \since Haiku R1 */ /*! \fn BAbstractLayout::BAbstractLayout(BMessage* from); \brief Archive constructor. + + \since Haiku R1 */ @@ -59,6 +63,7 @@ /*! \fn BSize BAbstractLayout::MinSize() \copydoc BLayoutItem::MinSize() + \since Haiku R1 The return value for this method is composed (using BLayoutUtils::ComposeSize()) from the values returned by BaseMinSize() and @@ -73,6 +78,8 @@ The return value for this method is composed (using BLayoutUtils::ComposeSize()) from the values returned by BaseMaxSize() and ExplicitMaxSize(). + + \since Haiku R1 */ @@ -83,6 +90,8 @@ The return value for this method is composed (using BLayoutUtils::ComposeSize()) from the values returned by BasePreferredSize() and ExplicitPreferredSize(). + + \since Haiku R1 */ @@ -92,13 +101,14 @@ The return value for this method is composed (using BLayoutUtils::ComposeAlignment()) from the values returned by - BaseAlignment() and - ExplicitAlignment() + BaseAlignment() and ExplicitAlignment() + + \since Haiku R1 */ /*! - \name BAbstractLayout hooks + \name Hook Methods @{ */ @@ -107,28 +117,34 @@ /*! \fn BSize BAbstractLayout::BaseMinSize() \brief Method to be implemented in derived classes return the minimum size - constraint for this BAbstractLayout. + constraint for this BAbstractLayout. + + \since Haiku R1 */ /*! \fn BSize BAbstractLayout::BaseMaxSize() \brief Method to be implemented in derived classes return the maximum size - constraint for this BAbstractLayout. + constraint for this BAbstractLayout. + + \since Haiku R1 */ /*! \fn BSize BAbstractLayout::BasePreferredSize() \brief Method to be implemented in derived classes return the preferred size - constraint for this BAbstractLayout. + constraint for this BAbstractLayout. + + \since Haiku R1 */ /*! \fn BAlignment BAbstractLayout::BaseAlignment() \brief Method to be implemented in derived classes return the preferred - alignment for this BAbstractLayout. + alignment for this BAbstractLayout. */ diff --git a/docs/user/interface/Alert.dox b/docs/user/interface/Alert.dox index a74c071542..f23740bc32 100644 --- a/docs/user/interface/Alert.dox +++ b/docs/user/interface/Alert.dox @@ -26,12 +26,17 @@ Determines which icon (if any) is displayed in the alert dialog. Choose one option. If the constructor doesn't include an alert_type argument than \c B_EMPTY_ALERT is used. + + \since BeOS R3 */ + /*! \var alert_type B_EMPTY_ALERT No icon + + \since BeOS R3 */ /*! @@ -40,6 +45,8 @@ \image html http://api.haiku-os.org/images/alert_info_32.png Info icon + + \since BeOS R3 */ /*! @@ -48,6 +55,8 @@ \image html http://api.haiku-os.org/images/alert_idea_32.png Idea icon + + \since BeOS R3 */ /*! @@ -56,6 +65,8 @@ \image html http://api.haiku-os.org/images/alert_warning_32.png Warning icon + + \since BeOS R3 */ /*! @@ -64,8 +75,11 @@ \image html http://api.haiku-os.org/images/alert_stop_32.png Stop icon + + \since BeOS R3 */ + /*! \enum button_spacing \ingroup interface @@ -73,15 +87,21 @@ Determines how the buttons on the alert dialog are spaced relative to each other. Choose one option. If the constructor doesn't include a button_spacing argument than \c B_EVEN_SPACING is used. + + \since BeOS R3 */ + /*! \var button_spacing B_EVEN_SPACING If the alert dialog has more than one button than the buttons are spaced evenly across the bottom of the alert dialog. + + \since BeOS R3 */ + /*! \var button_spacing B_OFFSET_SPACING @@ -89,6 +109,8 @@ is offset to the left-hand side of the dialog while the rest of the buttons are grouped on the right. This is useful to separate off a leftmost "Cancel" or "Delete" button. + + \since BeOS R3 */ @@ -97,8 +119,8 @@ \ingroup interface \ingroup libbe \brief The BAlert class defines a modal alert dialog which displays a short - message and provides a set of labeled buttons that allow the user to - respond. + message and provides a set of labeled buttons that allow the user to + respond. The alert can be configured with a set of one to three buttons. These buttons are assigned indexes 0, 1, and 2 from right-to-left respectively @@ -142,12 +164,14 @@ int32 button_index = alert->Go(); The Go() method does the work of loading up and removing the alert window and returns the index of the button that the user selected. + + \since BeOS R3 */ /*! - \fn BAlert::BAlert(const char *title, const char *text, - const char *button1, const char *button2, const char *button3, + \fn BAlert::BAlert(const char* title, const char* text, + const char* button1, const char* button2, const char* button3, button_width width, alert_type type) \brief Creates and initializes a BAlert dialog. @@ -174,11 +198,14 @@ int32 button_index = alert->Go(); \li \c B_STOP_ALERT See alert_type for details. + + \since BeOS R3 */ + /*! - \fn BAlert::BAlert(const char *title, const char *text, const char *button1, - const char *button2, const char *button3, button_width width, + \fn BAlert::BAlert(const char* title, const char* text, const char* button1, + const char* button2, const char* button3, button_width width, button_spacing spacing, alert_type type) \brief Creates and initializes a BAlert dialog. @@ -212,43 +239,73 @@ int32 button_index = alert->Go(); \li \c B_STOP_ALERT See alert_type for details. + + \since BeOS R4 */ + /*! \fn BAlert::BAlert(BMessage* data) \brief Unarchives an alert from a BMessage. \param data The archive. + + \since BeOS R3 */ + /*! \fn BAlert::~BAlert() \brief Destructor method. Standard Destructor method to delete a BAlert. + + \since BeOS R3 */ + +/*! + \name Archiving +*/ + + +//! @{ + + /*! \fn BArchivable* BAlert::Instantiate(BMessage* data) \brief Instantiates a BAlert from a BMessage. + \param data The message to instantiate the BAlert. + \returns a BArchivable object of the BAlert. + + \since BeOS R3 */ + /*! \fn status_t BAlert::Archive(BMessage* data, bool deep) const \brief Archives the BAlert into \a archive. \param data The target archive which the BAlert \a data will go into. \param deep Whether or not to recursively archive the BAlert's children. + + \return A status code. \retval B_OK The archive operation was successful. \retval B_BAD_VALUE The archive operation failed. + + \since BeOS R3 */ + +//! @} + + /*! \fn void BAlert::SetShortcut(int32 index, char key) \brief Sets the shortcut character which is mapped to a button at the - specified \a index. + specified \a index. A button can only have one shortcut except for the rightmost button which, in addition to the shortcut you set, is always mapped to \c B_ENTER. @@ -258,19 +315,25 @@ int32 button_index = alert->Go(); \param index The \a index of the button to set the shortcut to. \param key The shortcut character to set. + + \since BeOS R3 */ + /*! \fn char BAlert::Shortcut(int32 index) const - \brief Gets the shortcut character which is mapped to a button at the - specified \a index. + \brief Gets the shortcut character which is mapped to a button at the + specified \a index. \param index The \a index of the button to get the shortcut of. \return The shortcut character mapped to the button at the specified \a index. + + \since BeOS R3 */ + /*! \fn int32 BAlert::Go() \brief Displays the alert window. @@ -284,8 +347,11 @@ int32 button_index = alert->Go(); window is still on screen then Go() returns -1. \returns The index of the button clicked. + + \since BeOS R3 */ + /*! \fn status_t BAlert::Go(BInvoker* invoker) \brief Displays the alert window from a specified \a invoker. @@ -303,27 +369,27 @@ int32 button_index = alert->Go(); window is still on screen then the message is not sent. \returns A status code. + + \since BeOS R3 */ + /*! - \fn void BAlert::MessageReceived(BMessage* msg) + \fn void BAlert::MessageReceived(BMessage* message) \brief Initiates an action from a received message. - \param msg The message - - \see BWindow::MessagedReceived() + \copydetails BWindow::MessageReceived() */ + /*! \fn void BAlert::FrameResized(float newWidth, float newHeight) \brief Resizes the alert dialog. - \param newWidth The new alert dialog width. - \param newHeight The new alert dialog height. - - \see BWindow::FrameResized() + \copydetails BWindow::FrameResized() */ + /*! \fn BButton* BAlert::ButtonAt(int32 index) const \brief Returns a pointer to the BButton at the specified \a index. @@ -335,74 +401,80 @@ int32 button_index = alert->Go(); \param index The \a index of the desired button. \return A pointer to the BButton at the specified \a index. + + \since BeOS R3 */ + /*! \fn BTextView* BAlert::TextView() const \brief Returns a TextView containing the text of the Alert. + + \since BeOS R3 */ + /*! - \fn BHandler* BAlert::ResolveSpecifier(BMessage* msg, int32 index, - BMessage* specifier, int32 form, const char* property) - \brief Resolves specifiers for properties. - \see BHandler::ResolveSpecifier() + \fn BHandler* BAlert::ResolveSpecifier(BMessage* message, int32 index, + BMessage* specifier, int32 what, const char* property) + \copydoc BHandler::ResolveSpecifier() */ + /*! \fn status_t BAlert::GetSupportedSuites(BMessage* data) - \brief Reports the suites of messages and specifiers that derived classes - understand. - - \param data The message to report the suite of messages and specifiers. - - \see BWindow::GetSupportedSuites() + \copydoc BWindow::GetSupportedSuites() */ + /*! \fn void BAlert::DispatchMessage(BMessage* msg, BHandler* handler) \brief Sends out a message. - \see BWindow::DispatchMessage() + \copydetails BWindow::DispatchMessage() */ + /*! \fn void BAlert::Quit() \brief Quits the window closing it. - \see BWindow::Quit() + \copydetails BWindow::Quit() */ + /*! \fn bool BAlert::QuitRequested() \brief Hook method that gets called with the window is closed. - \returns \c true if the window closes. - - \see BWindow::QuitRequested() + \copydetails BWindow::QuitRequested() */ + /*! \fn BPoint BAlert::AlertPosition(float width, float height) \brief Resizes the Alert window to the width and height specified and - return the Point of the top-left corner of the Alert window. + return the Point of the top-left corner of the alert window. \param width The desired \a width of the alert window. \param height The desired \a height of the alert window. \returns The BPoint of the top-left corner of the Alert window. + + \since BeOS R3 */ + /*! \fn status_t BAlert::Perform(perform_code code, void* _data) - \brief Performs an action give a perform_code and data + \brief Perform some action. (Internal Method) - Currently the only perform code available is \c PERFORM_CODE_SET_LAYOUT. + \param code The perform code. + \param _data A pointer to store some data. - \param code The perform code - \param _data A pointer to some data to perform on + \returns A status code. - \return A status code. + \sa BLooper::Perform() - \see BWindow::Perform(). + \since Haiku R1 */ diff --git a/docs/user/interface/Bitmap.dox b/docs/user/interface/Bitmap.dox index e5dc91ddf5..6f016bbeff 100644 --- a/docs/user/interface/Bitmap.dox +++ b/docs/user/interface/Bitmap.dox @@ -17,7 +17,7 @@ \ingroup interface \ingroup libbe \brief Defines the BBitmap class and global operators and functions for - handling bitmaps. + handling bitmaps. */ @@ -64,6 +64,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); bitmap resides in you should call the Lock() and UnLock() methods. To determine is a bitmap is currently locked you can call the IsLocked() method. + + \since BeOS R3 */ @@ -79,6 +81,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \c B_ANY_BYTES_PER_ROW to let the constructor choose an appropriate value. \param screenID ??? + + \since Haiku R1 */ @@ -94,6 +98,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); it. \param needsContiguous If \c true a physically contiguous chunk of memory will be allocated. + + \since BeOS R3 */ @@ -108,6 +114,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); it. \param needsContiguous If \c true a physically contiguous chunk of memory will be allocated. + + \since Haiku R1 */ @@ -117,6 +125,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \param source The source bitmap. \param flags Creation flags. + + \since Haiku R1 */ @@ -125,6 +135,18 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Creates a BBitmap object as a clone of another bitmap. \param source The source bitmap. + + \since Haiku R1 +*/ + + +/*! + \fn BBitmap::BBitmap(BMessage* data) + \brief Unarchives a bitmap from a BMessage. + + \param data The archive. + + \since BeOS R3 */ @@ -133,6 +155,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Destructor Method Frees all resources associated with this object. + + \since BeOS R3 */ @@ -144,21 +168,15 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); //! @{ -/*! - \fn BBitmap::BBitmap(BMessage* data) - \brief Unarchives a bitmap from a BMessage. - - \param data The archive. -*/ - - /*! \fn BArchivable* BBitmap::Instantiate(BMessage* data) \brief Instantiates a BBitmap from an archive. \param data The archive. - \return A bitmap reconstructed from the archive or \c NULL, if an error - occurred. + \return A bitmap reconstructed from the archive or \c NULL if an error + occurred. + + \since BeOS R3 */ @@ -168,7 +186,10 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \param data The archive. \param deep if \c true, child object will be archived as well. + \return \c B_OK, if everything went fine, an error code otherwise. + + \since BeOS R3 */ @@ -180,7 +201,10 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Gets the status of the constructor. \returns B_OK if initialization succeeded, otherwise returns an - error status. + error status. + + + \since Haiku R1 */ @@ -189,6 +213,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Determines whether or not the BBitmap object is valid. \return \c true, if the object is properly initialized, \c false otherwise. + + \since BeOS R3 */ @@ -212,6 +238,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \param state Unused \returns \c B_OK on success or an error status code. + + \since Haiku R1 */ @@ -220,6 +248,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Unlocks the bitmap's buffer. Counterpart to BBitmap::LockBits(). + + \since Haiku R1 */ @@ -230,6 +260,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); The bitmap must accept views, if locking should work. \returns \c true, if the lock was acquired successfully. + + \since BeOS R3 */ @@ -238,6 +270,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Unlocks the off-screen window that belongs to the bitmap. The bitmap must accept views, if locking should work. + + \since BeOS R3 */ @@ -248,6 +282,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); The bitmap must accept views, if locking should work. \return \c true, if the caller owns a lock , \c false otherwise. + + \since BeOS R4 */ @@ -267,6 +303,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Gets the ID of the area the bitmap data reside in. \return The ID of the area the bitmap data reside in. + + \since Haiku R1 */ @@ -275,6 +313,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Gets the pointer to the bitmap data. \return The pointer to the bitmap data. + + \since BeOS R3 */ @@ -283,6 +323,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Gets the length of the bitmap data. \return The length of the bitmap data as an int32. + + \since BeOS R3 */ @@ -291,6 +333,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Gets the number of bytes used to store a row of bitmap data. \return The number of bytes used to store a row of bitmap data. + + \since BeOS R3 */ @@ -299,6 +343,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Gets the bitmap's color space. \return The bitmap's color space. + + \since BeOS R3 */ @@ -307,6 +353,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Gets a BRect the size of the bitmap's dimensions. \return A BRect the size of the bitmap's dimensions. + + \since BeOS R3 */ @@ -319,21 +367,23 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); bitmap. If bitmap creation succeeded, all flags are fulfilled. \return The bitmap's creation flags. + + \since Haiku R1 */ /*! - \fn status_t BBitmap::GetOverlayRestrictions(overlay_restrictions* - restrictions) const + \fn status_t BBitmap::GetOverlayRestrictions( + overlay_restrictions* restrictions) const \brief Gets the overlay_restrictions structure for this bitmap. - \note This function is not part of the BeOS R5 API. - \param restrictions The overlay restrictions flag \retval B_OK The overlay restriction structure was found. \retval B_BAD_TYPE The overlay restriction structure for the bitmap could not be found. + + \since Haiku R1 */ @@ -375,6 +425,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); data specifying the position at which the source data shall be written. \param colorSpace Color space of the source data. + + \since BeOS R3 */ @@ -394,8 +446,6 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); B_RGB{32,24,16,15}[_BIG], \c B_CMAP8 and B_GRAY{8,1}. - \note This function is not part of the BeOS R5 API. - \param data The data to be copied. \param length The length in bytes of the data to be copied. \param bpr The number of bytes per row in the source data. @@ -406,7 +456,9 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \retval B_OK The bits were imported into the bitmap. \retval B_BAD_VALUE \c NULL \a data, invalid \a bpr or \a offset, or - unsupported \a colorSpace. + unsupported \a colorSpace. + + \since Haiku R1 */ @@ -424,8 +476,6 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); B_RGB{32,24,16,15}[_BIG], \c B_CMAP8 and B_GRAY{8,1}. - \note This function is not part of the BeOS R5 API. - \param data The data to be copied. \param length The length in bytes of the data to be copied. \param bpr The number of bytes per row in the source data. @@ -438,6 +488,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \retval B_OK The bits were imported into the bitmap. \retval B_BAD_VALUE: \c NULL \a data, invalid \a bpr, unsupported \a colorSpace or invalid \a width or \a height. + + \since Haiku R1 */ @@ -452,13 +504,13 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); B_RGB{32,24,16,15}[_BIG], \c B_CMAP8 and B_GRAY{8,1}. - \note This function is not part of the BeOS R5 API. - \param bitmap The source bitmap. \retval B_OK The bits were imported into the bitmap. \retval B_BAD_VALUE \c NULL \a bitmap, or \a bitmap has other dimensions, or the conversion from or to one of the color spaces is not supported. + + \since Haiku R1 */ @@ -476,8 +528,6 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); B_RGB{32,24,16,15}[_BIG], \c B_CMAP8 and B_GRAY{8,1}. - \note This function is not part of the BeOS R5 API. - \param bitmap The source bitmap. \param from The offset in the source where reading should begin. \param to The offset in the bitmap where the source should be written. @@ -487,6 +537,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \retval B_OK The bits were imported into the bitmap. \retval B_BAD_VALUE \c NULL \a bitmap, the conversion from or to one of the color spaces is not supported, or invalid \a width or \a height. + + \since Haiku R1 */ @@ -494,7 +546,7 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); /*! - \name Child View Methods + \name View Hierarchy */ @@ -509,6 +561,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); another parent. \param view The view to be added. + + \since BeOS R3 */ @@ -517,6 +571,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Removes a BView from the bitmap's view hierarchy. \param view The view to be removed. + + \since BeOS R3 */ @@ -525,6 +581,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \brief Gets the number of BViews currently belonging to the bitmap. \returns The number of BViews currently belonging to the bitmap. + + \since BeOS R3 */ @@ -535,6 +593,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \param index The index of the BView to be returned. \returns The BView at index \a index or \c NULL if the index is out of range. + + \since BeOS R3 */ @@ -545,6 +605,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \param viewName The name of the BView to be returned. \returns The BView with the name \a name or \c NULL if the bitmap doesn't know a view with that name. + + \since BeOS R3 */ @@ -555,6 +617,8 @@ appFileInfo.GetIcon(iconBitmap, B_LARGE_ICON); \param point The location. \returns The BView with located at \a point or \c NULL if the bitmap doesn't know a view at this location. + + \since BeOS R3 */ diff --git a/docs/user/interface/Box.dox b/docs/user/interface/Box.dox index 1d7dfc0f68..4750019e4d 100644 --- a/docs/user/interface/Box.dox +++ b/docs/user/interface/Box.dox @@ -33,6 +33,8 @@ A box's label can either be composed of text or it can be a view such as a checkbox or dropdown box. See SetLabel() for more details on setting the box's label. + + \since BeOS R3 */ @@ -49,9 +51,11 @@ \param frame The bounds of the box. \param name The name of the box. \param resizingMode Defines the behavior of the box as the parent view - resizes. See BView for details. + resizes. See BView for details. \param flags Behavior flags for the box. See BView for details. \param border The border_style of the box. + + \since BeOS R3 */ @@ -67,6 +71,8 @@ \param border The border_style of the box. \param child Adds an initial child to the Box object. See the Layout API for details. + + \since Haiku R1 */ @@ -77,6 +83,8 @@ There can only be a single child view. This view can, however, act as a nesting container if you need to show more items inside the box. + + \since Haiku R1 */ @@ -92,6 +100,8 @@ child views recursively. \param archive The \a archive message to restore from. + + \since BeOS R3 */ @@ -101,9 +111,19 @@ Calling the destructor will also free the memory used by the box's label if it has one. + + \since BeOS R3 */ +/*! + \name Archiving +*/ + + +//! @{ + + /*! \fn static BArchivable* BBox::Instantiate(BMessage* archive) \brief Creates a new object from an \a archive. @@ -117,11 +137,13 @@ \returns An instance of the object if \a archive is valid or \c NULL. \sa BArchivable::Instantiate() + + \since BeOS R3 */ /*! - \fn virtual status_t BBox::Archive(BMessage* archive, + \fn virtual status_t BBox::Archive(BMessage* archive, bool deep = true) const; \brief Archives the object into \a archive. @@ -133,9 +155,14 @@ \retval B_ERROR The archive operation failed. \sa BArchivable::Archive() + + \since BeOS R3 */ +//! @} + + /*! \fn virtual void BBox::SetBorder(border_style border) \brief Sets the #border_style. @@ -146,6 +173,8 @@ - \c B_NO_BORDER Used to make a borderless box. \param border The #border_style to set. + + \since BeOS R3 */ @@ -159,6 +188,8 @@ - \c B_NO_BORDER Used to make a borderless box. \returns The #border_style of the box. + + \since BeOS R3 */ @@ -167,8 +198,7 @@ \brief Gets the distance from the very top of the box to the top border line in pixels. - \warning This method is not part of the BeOS R5 API and is not yet - finalized. + \warning This method is not yet finalized. The distance may vary depending on the text or view used as label and the font settings. The border is drawn center-aligned with the label. This @@ -177,6 +207,8 @@ \returns The distance from the very top of the box to the top border line in pixels as a \c float. + + \since Haiku R1 */ @@ -184,10 +216,11 @@ \fn BRect BBox::InnerFrame() \brief Gets the frame rectangle just inside the border of the box. - \warning This method is not part of the BeOS R5 API and is not yet - finalized. + \warning This method is not yet finalized. \returns A BRect set to the dimensions of the box's inside border. + + \since Haiku R1 */ @@ -206,6 +239,8 @@ fIconBox->SetLabel("Icon"); \endcode \param string The label text string to set as the box's title. + + \since BeOS R3 */ @@ -232,6 +267,8 @@ fVirtualMemoryBox->SetLabel(fVirtualMemoryEnabledCheckBox); \param viewLabel A BView. \returns \c B_OK + + \since BeOS R3 */ @@ -245,6 +282,8 @@ fVirtualMemoryBox->SetLabel(fVirtualMemoryEnabledCheckBox); \returns The label text of the BBox if the box has a text label or \c NULL otherwise. + + \since BeOS R3 */ @@ -253,6 +292,8 @@ fVirtualMemoryBox->SetLabel(fVirtualMemoryEnabledCheckBox); \brief Gets the BView representing the label. \returns a pointer to a BView object. + + \since BeOS R4 */ @@ -265,6 +306,8 @@ fVirtualMemoryBox->SetLabel(fVirtualMemoryEnabledCheckBox); consider calling Invalidate() instead. \param updateRect The rectangular area to be drawn. + + \since BeOS R3 */ @@ -280,6 +323,8 @@ fVirtualMemoryBox->SetLabel(fVirtualMemoryEnabledCheckBox); the layout of the parent view. \sa BView::AttachedToWindow() + + \since BeOS R3 */ @@ -292,6 +337,8 @@ fVirtualMemoryBox->SetLabel(fVirtualMemoryEnabledCheckBox); This method recomputes the layout of the BBox (including label and contents) and makes it redraw as necessary. + + \since BeOS R3 */ @@ -300,6 +347,8 @@ fVirtualMemoryBox->SetLabel(fVirtualMemoryEnabledCheckBox); \brief Resizes the box to its preferred dimensions. \note This only works in the non-layout mode, as it forces the resizing. + + \since BeOS R3 */ @@ -317,6 +366,8 @@ fVirtualMemoryBox->SetLabel(fVirtualMemoryEnabledCheckBox); \param[out] _width Pointer to a \c float to store the width of the view. \param[out] _height Pointer to a \c float to store the height of the view. + + \since BeOS R3 */ @@ -327,6 +378,8 @@ fVirtualMemoryBox->SetLabel(fVirtualMemoryEnabledCheckBox); Drawing the box at this size ensures the label and the child view are visible. Reducing the size even more would mean that a view would not be visible. + + \since Haiku R1 */ @@ -337,6 +390,8 @@ fVirtualMemoryBox->SetLabel(fVirtualMemoryEnabledCheckBox); The maximum size depends on the maximize size of the child views. \returns The maximum possible size of the BBox as a BSize. + + \since Haiku R1 */ @@ -348,6 +403,8 @@ fVirtualMemoryBox->SetLabel(fVirtualMemoryEnabledCheckBox); convenient BSize object. \returns The minimum possible size of the BBox as a BSize. + + \since Haiku R1 */ @@ -363,4 +420,6 @@ fVirtualMemoryBox->SetLabel(fVirtualMemoryEnabledCheckBox); label, eventually truncating the label text if there is not enough space. The exact border positions are also computed, then the child view is also laid out if its size constraints change. + + \since Haiku R1 */ diff --git a/docs/user/interface/Button.dox b/docs/user/interface/Button.dox index 2d5508d61c..8062504cf1 100644 --- a/docs/user/interface/Button.dox +++ b/docs/user/interface/Button.dox @@ -44,6 +44,8 @@ label is set in the constructor or by the SetLabel() method. To set the icon for a button use the SetIcon() method. The text label will draw to the right of the icon. + + \since BeOS R3 */ @@ -73,6 +75,8 @@ resized. See BView for more information on resizing options. \param flags The \a flags mask sets what notifications the BButton can receive. See BView for more information on \a flags. + + \since BeOS R3 */ @@ -92,6 +96,8 @@ \param message The button's action \a message. Can be \c NULL. \param flags The \a flags mask sets what notifications the button can receive. See BView for more information on \a flags. + + \since Haiku R1 */ @@ -104,6 +110,8 @@ \param label The button's \a label text. Can be \c NULL. \param message The buttons action \a message. Can be \c NULL. + + \since Haiku R1 */ @@ -118,12 +126,16 @@ of its child views recursively. \param data The \a data message to restore from. + + \since BeOS R3 */ /*! \fn BButton::~BButton() \brief Destructor, does nothing. + + \since BeOS R3 */ @@ -139,8 +151,12 @@ \fn BArchivable* BButton::Instantiate(BMessage* archive) \brief Creates a new BButton object from the \a archive message. + \param archive The \a archive message to restore from. + \return A newly created check box or \c NULL if the message doesn't contain an archived BButton. + + \since BeOS R3 */ @@ -155,6 +171,8 @@ otherwise. \sa BControl::Archive() + + \since BeOS R3 */ @@ -177,6 +195,8 @@ the default button the window's default button is updated. \sa BControl::AttachedToWindow() + + \since BeOS R3 */ @@ -184,9 +204,7 @@ \fn void BButton::DetachedFromWindow() \brief Hook method called when the button is detached from a window. - The default implementation does nothing. - - \sa BControl::DetachedFromWindow() + \copydetails BControl::DetachedFromWindow() */ @@ -195,9 +213,7 @@ \brief Similar to AttachedToWindow() but this method is triggered after all child views have already been attached to a window. - The default implementation does nothing. - - \sa BView::AllAttached() + \copydetails BView::AllAttached() */ @@ -206,9 +222,7 @@ \brief Similar to AttachedToWindow() but this method is triggered after all child views have already been detached from a window. - The default implementation does nothing. - - \sa BView::AllDetached() + \copydetails BView::AllDetached() */ @@ -224,6 +238,8 @@ \param updateRect The rectangular area to be drawn. \sa BView::Draw() + + \since BeOS R3 */ @@ -231,24 +247,15 @@ \fn void BButton::FrameMoved(BPoint newPosition) \brief Hook method called when the button is moved. - The default implementation does nothing. - - \param newPosition The point that the button has been moved to. - - \sa BView::FrameMoved() + \copydetails BView::FrameMoved() */ /*! - \fn void BButton::FrameResized(float width, float height) + \fn void BButton::FrameResized(float newWidth, float newHeight) \brief Hook method called when the button is resized. - The default implementation does nothing. - - \param width The new \a width of the button. - \param height The new \a height of the button. - - \sa BView::FrameResized() + \copydetails BView::FrameResized() */ @@ -260,6 +267,8 @@ \param bytes The bytes of the key combination pressed. \param numBytes The number of bytes in \a bytes. + + \since BeOS R3 */ @@ -269,9 +278,9 @@ Invalidate cached preferred size. - \note This method was not available in BeOS R5. - \param descendants Whether or not child views have also been invalidated. + + \since Haiku R1 */ @@ -279,11 +288,7 @@ \fn void BButton::MessageReceived(BMessage* message) \brief Handle \a message received by the associated looper. - The default implemenation does nothing. - - \param message The \a message received by the associated looper. - - \see BControl::MessageReceived() + \copydetails BControl::MessageReceived() */ @@ -293,8 +298,7 @@ Begins tracking the mouse cursor. - \param where The point on the screen where to mouse pointer is when - the mouse button is pressed. + \copydetails BControl::MouseDown() */ @@ -307,19 +311,7 @@ if the mouse cursor is inside the button. The value that is set depends on if the button is using \c B_TOGGLE_BEHAVIOR or not. - \param where The new location of the mouse in the control's coordinate system. - \param code One of the following: - - \c B_ENTERED_VIEW The cursor has just entered the button. - - \c B_INSIDE_VIEW The cursor is inside the button. - - \c B_EXITED_VIEW The cursor has left the button's bounds. This only gets - sent if the scope of the mouse events that the button can receive has - been expanded by BView::SetEventMask() or BView::SetMouseEventMask(). - - \c B_OUTSIDE_VIEW The cursor is outside the button. This only gets sent if - the scope of the mouse events that the control can receive has been - expanded by SetEventMask() or SetMouseEventMask(). - \param dragMessage If a drag-and-drop operation is taking place this is a - pointer to a BMessage that holds the drag information, otherwise the - pointer is \c NULL. + \copydetails BControl::MouseMoved() */ @@ -331,8 +323,7 @@ button. The value that is set depends on if the button is using \c B_TOGGLE_BEHAVIOR or not. - \param where The point on the screen where the mouse pointer is located when - the mouse button is released in the view's coordinate system. + \copydetails BControl::MouseUp() */ @@ -341,12 +332,7 @@ \brief Hook method called when the attached window is activated or deactivated. - The default implementation does nothing. - - \param active \c true if the window becomes activated, \c false if the - window becomes deactivated. - - \sa BControl::WindowActivated() + \copydetails BControl::WindowActivated() */ @@ -358,15 +344,7 @@ \brief Fill out the preferred width and height of the button into the \a _width and \a _height parameters. - The size is computed from the children sizes, unless it was explicitly set - for the BButton, which can be done only if the BButton is configured to - use the Layout APIs. - - \note Either the \a _width or \a _height parameter may be set to \c NULL - if you only want to get the other one. - - \param[out] _width Pointer to a \c float to store the width. - \param[out] _height Pointer to a \c float to store the height. + \copydetails BControl::GetPreferredSize() */ @@ -374,12 +352,7 @@ \fn status_t BButton::GetSupportedSuites(BMessage* message) \brief Report the suites of messages this control understands. - \param message Allows you to add the names of the suites the button - implements to the suites array. - - \return \c B_OK if all went well or an error code otherwise. - - \sa BControl::GetSupportedSuites(); + \copydetails BControl::GetSupportedSuites(); */ @@ -387,12 +360,7 @@ \fn status_t BButton::Invoke(BMessage* message) \brief Sends a copy of the model \a message to the designated target. - \param message The \a message to send. - - \return \c B_OK if the button was invoked, otherwise an error - code is returned. - - \sa BControl::Invoke() + \copydetails BControl::Invoke() */ @@ -407,19 +375,17 @@ to remove the default button status. \sa BWindow::SetDefaultButton() + + \since BeOS R3 */ /*! - \fn void BButton::MakeFocus(bool focused) + \fn void BButton::MakeFocus(bool focus) \brief Makes the button the current focus view of the window or gives up being the window's focus view. - The default implementation does nothing. - - \param focused \a true to set focus, \a false to remove it. - - \sa BControl::MakeFocus() + \copydetails BControl::MakeFocus() */ @@ -427,9 +393,9 @@ \fn BSize BButton::MinSize() \brief Returns the button's minimum size. - \note This method was not available in BeOS R5. - \return The button's minimum size as a BSize. + + \since Haiku R1 */ @@ -437,9 +403,9 @@ \fn BSize BButton::MaxSize() \brief Returns the button's maximum size. - \note This method was not available in BeOS R5. - \return The button's maximum size as a BSize. + + \since Haiku R1 */ @@ -447,15 +413,15 @@ \fn BSize BButton::PreferredSize() \brief Returns the button's preferred size. - \note This method was not available in BeOS R5. - \return The button's preferred size as a BSize. + + \since Haiku R1 */ /*! \fn status_t BButton::Perform(perform_code code, void* _data) - \brief Perform some action. (Internal Method) + \copydoc BView::Perform() */ @@ -463,18 +429,14 @@ \fn void BButton::ResizeToPreferred() \brief Resize the button to its preferred size. - \sa BView::ResizeToPreferred() + \copydetails BView::ResizeToPreferred() */ /*! \fn BHandler* BButton::ResolveSpecifier(BMessage* message, int32 index, BMessage* specifier, int32 what, const char* property) - \brief Determine the proper specifier for scripting messages. - - The default implementation does nothing. - - \sa BControl::ResolveSpecifier() + \copydoc BHandler::ResolveSpecifier() */ @@ -483,6 +445,8 @@ \brief Sets the button's label. \param label The string to set the label to. + + \since BeOS R3 */ @@ -492,6 +456,8 @@ window, i.e. whether or not it responds to the \key{Enter} key. \returns \c true if the button is the default button, \c false otherwise. + + \since BeOS R3 */ @@ -499,9 +465,9 @@ \fn bool BButton::IsFlat() const \brief Returns whether or not the button is flat or not. - \note This method was not available in BeOS R5. - \returns \c true if the button is flat, \c false otherwise. + + \since Haiku R1 */ @@ -509,10 +475,10 @@ \fn void BButton::SetFlat(bool flat) \brief Sets or unsets the button to be flat. - \note This method was not available in BeOS R5. - \param flat \c true to make the button flat, \c false to make the button not flat. + + \since Haiku R1 */ @@ -520,9 +486,9 @@ \fn BButton::BBehavior BButton::Behavior() const \brief Returns the buttons behavior. - \note This method was not available in BeOS R5. - \return The button behavior flag. + + \since Haiku R1 */ @@ -530,13 +496,13 @@ \fn void BButton::SetBehavior(BBehavior behavior) \brief Sets the button behavior. - \note This method was not available in BeOS R5. - \param behavior One of the following: - \c B_BUTTON_BEHAVIOR Normal behavior, - \c B_TOGGLE_BEHAVIOR Acts like a check box, - \c B_POP_UP_BEHAVIOR Adds a pop-up marker to the button (similar to that of BMenuField). + + \since Haiku R1 */ @@ -545,9 +511,9 @@ \brief Returns the message sent to the button's target when the pop-up marker is selected using \c B_POP_UP_BEHAVIOR. - \note This method was not available in BeOS R5. - \return The message sent to the button's target. + + \since Haiku R1 */ @@ -556,9 +522,9 @@ \brief Sets the message sent to the button's target when the pop-up marker is selected using \c B_POP_UP_BEHAVIOR. - \note This method was not available in BeOS R5. - \param message The \a message sent to the button's target. + + \since Haiku R1 */ @@ -567,14 +533,14 @@ \brief This convenience method is used to set the bitmaps for the standard states from a single bitmap. - \note This method was not available in BeOS R5. - \param icon The \a icon to set. \param flags Modify how the icon is set. \return \c B_OK if the icon was set or an error code otherwise. \sa BControl::SetIcon() + + \since Haiku R1 */ @@ -590,4 +556,6 @@ - \c 1 (\c B_CONTROL_ON) \see BControl::SetValue() + + \since BeOS R3 */ diff --git a/docs/user/interface/CheckBox.dox b/docs/user/interface/CheckBox.dox index f1b5332050..73fb1ac448 100644 --- a/docs/user/interface/CheckBox.dox +++ b/docs/user/interface/CheckBox.dox @@ -42,6 +42,8 @@ state, and another unchecked check box with focus on it. \image html BCheckBox_example.png + + \since BeOS R3 */ @@ -64,6 +66,8 @@ \param resizingMode Defines the behavior of the check box as the parent view resizes. See BView for details. \param flags Behavior \a flags for the check box. See BView for details. + + \since BeOS R3 */ @@ -81,6 +85,8 @@ \param message The \a message to send when the check box is activated. See BView for details. \param flags Behavior \a flags for the check box. See BView for details. + + \since Haiku R1 */ @@ -94,6 +100,8 @@ \param label The \a label displayed along with the check box. \param message The \a message to send when the check box is activated. + + \since Haiku R1 */ @@ -106,12 +114,16 @@ because it can handle errors properly. \param archive The message to construct the BCheckBox object from. + + \since BeOS R3 */ /*! \fn BCheckBox::~BCheckBox() \brief Destructor, does nothing. + + \since BeOS R3 */ @@ -127,8 +139,12 @@ \fn BArchivable* BCheckBox::Instantiate(BMessage* archive) \brief Creates a new BCheckBox object from the \a archive message. + \param archive The \a archive message to restore from. + \return A newly created check box or \c NULL if the message doesn't contain an archived BCheckBox. + + \since BeOS R3 */ @@ -136,13 +152,7 @@ \fn status_t BCheckBox::Archive(BMessage* data, bool deep) const \brief Archives the object into the \a data message. - \param data A pointer to the BMessage object to archive the object into. - \param deep Whether or not to archive child views as well. - - \return A status code, \c B_OK if everything went well or an error code - otherwise. - - \sa BControl::Archive() + \copydetails BControl::Archive() */ @@ -161,9 +171,7 @@ \fn void BCheckBox::AttachedToWindow() \brief Hook method called when the control is attached to a window. - The default implementation does nothing. - - \sa BControl::AttachedToWindow() + \copydetails BControl::AttachedToWindow() */ @@ -171,9 +179,7 @@ \fn void BCheckBox::DetachedFromWindow() \brief Hook method called when the control is detached from a window. - The default implementation does nothing. - - \sa BControl::DetachedFromWindow() + \copydetails BControl::DetachedFromWindow() */ @@ -182,9 +188,7 @@ \brief Similar to AttachedToWindow() but this method is triggered after all child views have already been attached to a window. - The default implementation does nothing. - - \sa BView::AllAttached() + \copydetails BView::AllAttached() */ @@ -193,9 +197,7 @@ \brief Similar to AttachedToWindow() but this method is triggered after all child views have already been detached from a window. - The default implementation does nothing. - - \sa BView::AllDetached() + \copydetails BView::AllDetached() */ @@ -210,6 +212,8 @@ \param updateRect The rectangular area to be drawn. \sa BView::Draw() + + \since BeOS R3 */ @@ -217,24 +221,15 @@ \fn void BCheckBox::FrameMoved(BPoint newPosition) \brief Hook method called when the check box is moved. - The default implementation does nothing. - - \param newPosition The point that the check box has been moved to. - - \sa BView::FrameMoved() + \copydetails BView::FrameMoved() */ /*! - \fn void BCheckBox::FrameResized(float width, float height) + \fn void BCheckBox::FrameResized(float newWidth, float newHeight) \brief Hook method called when the check box is resized. - The default implementation does nothing. - - \param width The new \a width of the check box. - \param height The new \a height of the check box. - - \sa BView::FrameResized() + \copydetails BView::FrameResized() */ @@ -243,8 +238,7 @@ \brief Fill out the preferred width and height of the check box into the \a _width and \a _height parameters. - \param[out] _width Pointer to a \c float to store the width. - \param[out] _height Pointer to a \c float to store the height. + \copydetails BView::GetPreferredSize() */ @@ -258,8 +252,9 @@ \return \c B_OK if all went well or an error code otherwise. \sa BControl::GetSupportedSuites(); -*/ + \since BeOS R3 +*/ /*! @@ -268,8 +263,7 @@ Inverts the value on \a B_ENTER or \a B_SPACE. - \param bytes The bytes of the key combination pressed. - \param numBytes The number of bytes in \a bytes. + \copydetails BControl::KeyDown() */ @@ -277,9 +271,7 @@ \fn void BCheckBox::MessageReceived(BMessage* message) \brief Handle \a message received by the associated looper. - \param message The \a message received by the associated looper. - - \see BControl::MessageReceived() + \copydetails BControl::MessageReceived() */ @@ -289,8 +281,7 @@ Begins tracking the mouse cursor. - \param where The point on the screen where to mouse pointer is when - the mouse button is pressed. + \copydetails BControl::MouseDown() */ @@ -302,19 +293,7 @@ Once MouseDown() has been called on a check box this method updates the outline when the cursor is inside the control redrawing as necessary. - \param where The new location of the mouse in the control's coordinate system. - \param code One of the following: - - \c B_ENTERED_VIEW The cursor has just entered the control. - - \c B_INSIDE_VIEW The cursor is inside the control. - - \c B_EXITED_VIEW The cursor has left the control's bounds. This only gets - sent if the scope of the mouse events that the control can receive has - been expanded by BView::SetEventMask() or BView::SetMouseEventMask(). - - \c B_OUTSIDE_VIEW The cursor is outside the button. This only gets sent if - the scope of the mouse events that the control can receive has been - expanded by SetEventMask() or SetMouseEventMask(). - \param dragMessage If a drag-and-drop operation is taking place this is a - pointer to a BMessage that holds the drag information, otherwise the - pointer is \c NULL. + \copydetails BControl::MouseMoved() */ @@ -324,10 +303,7 @@ Inverts the check box value. - \param where The point on the screen where the mouse pointer is located when - the mouse button is released in the view's coordinate system. - - \sa BControl::MouseUp() + \copydetails BControl::MouseUp() */ @@ -337,12 +313,7 @@ \brief Hook method called when the attached window is activated or deactivated. - The default implementation does nothing. - - \param active \c true if the window becomes activated, \c false if the - window becomes deactivated. - - \sa BControl::WindowActivated() + \copydetails BControl::WindowActivated() */ @@ -357,4 +328,13 @@ either \c B_CONTROL_ON or \c B_CONTROL_OFF. \sa BControl::SetValue() + + \since BeOS R3 +*/ + + +/*! + \fn BHandler* BCheckBox::ResolveSpecifier(BMessage* message, int32 index, + BMessage* specifier, int32 what, const char* property) + \copydoc BHandler::ResolveSpecifier() */ diff --git a/docs/user/interface/ColorControl.dox b/docs/user/interface/ColorControl.dox index a1cfe85f00..8352db1316 100644 --- a/docs/user/interface/ColorControl.dox +++ b/docs/user/interface/ColorControl.dox @@ -24,36 +24,53 @@ \ingroup interface Enumeration of the color control layout options. + + \since BeOS R3 */ + /*! \var color_control_layout B_CELLS_4x64 Cells are arranged in 4 columns, 64 rows. + + \since BeOS R3 */ + /*! \var color_control_layout B_CELLS_8x32 Cells are arranged in 8 columns, 32 rows. + + \since BeOS R3 */ + /*! \var color_control_layout B_CELLS_16x16 Cells are arranged in 16 columns, 16 rows. + + \since BeOS R3 */ + /*! \var color_control_layout B_CELLS_32x8 Cells are arranged in 32 columns, 8 rows. + + \since BeOS R3 */ + /*! \var color_control_layout B_CELLS_64x4 Cells are arranged in 64 columns, 4 rows. + + \since BeOS R3 */ @@ -94,6 +111,8 @@ colorControl->SetValue(0x336698); \image html BColorControl_example_256_colors.png You can set the size of these cells by calling the SetCellSize() method. + + \since BeOS R3 */ @@ -121,27 +140,33 @@ colorControl->SetValue(0x336698); made to an off-screen bitmap and then copied to the screen making the drawing smoother, but requiring more memory (currently unused). + + \since BeOS R3 */ /*! - \fn BColorControl::BColorControl(BMessage* archive) - \brief Constructs a BColorControl object from an \a archive message. + \fn BColorControl::BColorControl(BMessage* data) + \brief Constructs a BColorControl object from an \a data message. This method is usually not called directly. If you want to build a color control from a message you should call Instantiate() which can handle errors properly. - If the \a archive deep, the BColorControl object will also unarchive + If the \a data deep, the BColorControl object will also undata each of its child views recursively. - \param archive The \a archive message to restore from. + \param data The \a data message to restore from. + + \since BeOS R3 */ /*! \fn BColorControl::~BColorControl() \brief Destructor method. + + \since BeOS R3 */ @@ -152,6 +177,8 @@ colorControl->SetValue(0x336698); \param layout The \a layout to set. \sa BView::SetLayout() + + \since Haiku R1 */ @@ -167,8 +194,9 @@ colorControl->SetValue(0x336698); - \c B_CELLS_32x8 \param layout The color control layout to set. -*/ + \since BeOS R3 +*/ /*! @@ -176,6 +204,8 @@ colorControl->SetValue(0x336698); \brief Set the color of the BColorControl to \a value. \param value The 32-bit color value to set. + + \since BeOS R3 */ @@ -184,6 +214,8 @@ colorControl->SetValue(0x336698); \brief Set the color of the BColorControl to \a color. \param color The rgb_color to set. + + \since BeOS R3 */ @@ -192,6 +224,8 @@ colorControl->SetValue(0x336698); \brief Return the current color value as an rgb_color. \returns The current color as an rgb_color. + + \since BeOS R3 */ @@ -200,6 +234,8 @@ colorControl->SetValue(0x336698); \brief Enable and disable the color control. \param enabled Whether to enable or disable the color control. + + \since BeOS R3 */ @@ -214,6 +250,8 @@ colorControl->SetValue(0x336698); \sa BControl::AttachedToWindow() \sa BView::SetViewColor() + + \since BeOS R3 */ @@ -228,6 +266,8 @@ colorControl->SetValue(0x336698); \param updateRect The area to be drawn. \sa BView::Draw() + + \since BeOS R3 */ @@ -236,6 +276,8 @@ colorControl->SetValue(0x336698); \brief Set the size of the color cell in the color control. \param cellSide The cell size to set. + + \since BeOS R3 */ @@ -244,6 +286,8 @@ colorControl->SetValue(0x336698); \brief Get the current color cell size. \returns the current color cell size as a float. + + \since BeOS R3 */ @@ -252,6 +296,8 @@ colorControl->SetValue(0x336698); \brief Get the current color control layout. \returns The current color_control_layout + + \since BeOS R3 */ @@ -260,7 +306,7 @@ colorControl->SetValue(0x336698); \brief Hook method that is called when the object is detached from a window. - \sa BView::DetachedFromWindow() + \copydetails BControl::DetachedFromWindow() */ @@ -273,6 +319,8 @@ colorControl->SetValue(0x336698); \param _height Pointer to a \c float to hold the height of the checkbox. \sa BView::GetPreferredSize() + + \since BeOS R3 */ @@ -281,47 +329,53 @@ colorControl->SetValue(0x336698); \brief Resize the color control to its preferred size. \sa BView::ResizeToPreferred() + + \since BeOS R3 */ /*! - \fn status_t BColorControl::Invoke(BMessage *msg) + \fn status_t BColorControl::Invoke(BMessage* message) \brief Tells the messenger to send a message. - \param msg The message to send. + \param message The message to send. \sa BControl::Invoke() + + \since BeOS R3 */ /*! - \fn void BColorControl::FrameMoved(BPoint new_position) + \fn void BColorControl::FrameMoved(BPoint newPosition) \brief Hook method that gets called when the color control is moved. - \param new_position The point that the top left corner of the frame - is moved to. - - \sa BView::FrameMoved() + \copydetails BView::FrameMoved() */ /*! - \fn void BColorControl::FrameResized(float new_width, float new_height) + \fn void BColorControl::FrameResized(float newWidth, float newHeight) \brief Hook method that gets called when the checkbox is resized. - \param new_width The new width of the checkbox. - \param new_height The new height of the checkbox. - - \sa BView::FrameResized() + \copydetails BView::FrameResized() */ /*! \fn void BColorControl::MakeFocus(bool state) - \brief Gives focus to or removes focus from the color control. + \brief Gives focus to or removes focus from the control. \param state \a true to set focus, \a false to remove it. \sa BControl::MakeFocus() + \since BeOS R3 +*/ + + +/*! + \fn BHandler* BColorControl::ResolveSpecifier(BMessage* message, + int32 index, BMessage* specifier, int32 what, const char* property) + \copydoc BHandler::ResolveSpecifier() */ diff --git a/docs/user/interface/Control.dox b/docs/user/interface/Control.dox index 00b47b7f44..b8a608f267 100644 --- a/docs/user/interface/Control.dox +++ b/docs/user/interface/Control.dox @@ -23,6 +23,8 @@ \var B_CONTROL_ON Control on. Value equal to 1. + + \since BeOS R3 */ @@ -30,6 +32,8 @@ \var B_CONTROL_OFF Control off. Value equal to 0. + + \since BeOS R3 */ @@ -52,6 +56,8 @@ values that you can use as a convenience if your control has a simple on/off state. If your BControl derived class stores a larger set of states then you should define your own integer values instead. + + \since BeOS R3 */ @@ -71,6 +77,8 @@ \param resizingMode Defines the behavior of the control as the parent view resizes, see BView for more details. \param flags Behavior \a flags for the control, see BView for details. + + \since BeOS R3 */ @@ -83,12 +91,12 @@ The initial value of the control is set to 0 (\c B_CONTROL_OFF). The \a label and the \a message parameters can be set to \c NULL. - \note This method was not available in BeOS R5. - \param name The \a name of the control. \param label The \a label displayed along with the control. \param message The \a message to send when the control is activated. \param flags Behavior \a flags for the control, see BView for details. + + \since Haiku R1 */ @@ -96,67 +104,88 @@ \fn BControl::~BControl() \brief Frees all memory used by the BControl object including the memory used by the model message. + + \since BeOS R3 */ /*! - \fn BControl::BControl(BMessage* archive) - \brief Creates a new BControl object from an \a archive message. + \name Archiving +*/ + + +//! @{ + + +/*! + \fn BControl::BControl(BMessage* data) + \brief Creates a new BControl object from an \a data message. This method is usually not called directly. If you want to build a control from a message you should call Instantiate() which can handle errors properly. - If the \a archive deep, the BControl object will also unarchive each + If the \a data deep, the BControl object will also undata each of its child views recursively. - \param archive The \a archive message to restore from. + \param data The \a data message to restore from. + + \since BeOS R3 */ /*! - \fn BArchivable* BControl::Instantiate(BMessage* archive) - \brief Creates a new object from an \a archive. + \fn BArchivable* BControl::Instantiate(BMessage* data) + \brief Creates a new object from an \a data. If the message is a valid object then the instance created from the - passed in \a archive will be returned. Otherwise this method will + passed in \a data will be returned. Otherwise this method will return \c NULL. - \param archive The \a archive message. + \param data The \a data message. - \returns An instance of the object if \a archive is valid or \c NULL. + \returns An instance of the object if \a data is valid or \c NULL. \sa BArchivable::Instantiate() + + \since BeOS R3 */ /*! - \fn status_t BControl::Archive(BMessage* archive, bool deep) const - \brief Archives the control into \a archive. + \fn status_t BControl::Archive(BMessage* data, bool deep) const + \brief Archives the control into \a data. - \param archive The target \a archive that the data will go into. - \param deep Whether or not to recursively archive child views. + \param data The target \a data that the data will go into. + \param deep Whether or not to recursively data child views. - \retval B_OK The archive operation was successful. - \retval B_BAD_VALUE \c NULL \a archive message. + \retval B_OK The data operation was successful. + \retval B_BAD_VALUE \c NULL \a data message. \retval B_ERROR The archive operation failed. \sa BArchivable::Archive() + + \since BeOS R3 */ +//! @} + + /*! \fn void BControl::WindowActivated(bool active) \brief Hook method called when the attached window is activated or deactivated. - Redraws the focus ring around the menu field when the window is activated + Redraws the focus ring around the control when the window is activated or deactivated if it is the window's current focus view. \param active \c true if the window becomes activated, \c false if the window becomes deactivated. \sa BView::WindowActivated() + + \since BeOS R3 */ @@ -172,27 +201,25 @@ \sa BView::AttachedToWindow() \sa Invoke() \sa BInvoker::SetTarget() + + \since BeOS R3 */ /*! \fn void BControl::DetachedFromWindow() - \brief Hook method called when the object is detached from a window. + \brief Hook method called when the control is detached from a window. - The default implementation does nothing. - - \sa BView::DetachedFromWindow() + \copydetails BView::DetachedFromWindow() */ /*! \fn void BControl::AllAttached() \brief Similar to AttachedToWindow() but this method is triggered after - all child views have already been attached to a window. + all child views have already been detached from a window. - The default implementation does nothing. - - \sa BView::AllAttached() + \copydetails BView::AllAttached() */ @@ -201,14 +228,12 @@ \brief Similar to AttachedToWindow() but this method is triggered after all child views have already been detached from a window. - The default implementation does nothing. - - \sa BView::AllDetached() + \copydetails BView::AllDetached() */ /*! - \fn void BControl::MakeFocus(bool focused) + \fn void BControl::MakeFocus(bool focus) \brief Gives or removes focus from the control. BControl::MakeFocus() overrides BView::MakeFocus() to call Draw() when @@ -217,10 +242,12 @@ IsFocusChanging() returns \c true when Draw() is called from this method. - \param focused \a true to set focus, \a false to remove it. + \param focus \a true to set focus, \a false to remove it. \sa BView::MakeFocus() \sa IsFocusChanging() + + \since BeOS R3 */ @@ -241,6 +268,8 @@ \sa BView::KeyDown() \sa MakeFocus() + + \since BeOS R3 */ @@ -248,9 +277,7 @@ \fn void BControl::MessageReceived(BMessage* message) \brief Handle \a message received by the associated looper. - \param message The \a message received by the associated looper. - - \see BView::MessageReceived() + \copydetails BView::MessageReceived() */ @@ -258,21 +285,7 @@ \fn void BControl::MouseDown(BPoint where) \brief Hook method called when a mouse button is pressed. - \param where The point on the screen where the mouse pointer is when - the mouse button is pressed in the view's coordinate system. - - \sa BView::MouseDown() -*/ - - -/*! - \fn void BControl::MouseUp(BPoint where) - \brief Hook method called when a mouse button is released. - - \param where The point on the screen where the mouse pointer is located - when the mouse button is released in the view's coordinate system. - - \sa BView::MouseUp() + \copydetails BView::MouseDown() */ @@ -281,24 +294,19 @@ const BMessage* dragMessage) \brief Hook method called when the mouse is moved. - \param where The new location of the mouse in the control's coordinate system. - \param code One of the following: - - \c B_ENTERED_VIEW The cursor has just entered the control. - - \c B_INSIDE_VIEW The cursor is inside the control. - - \c B_EXITED_VIEW The cursor has left the control's bounds. This only gets - sent if the scope of the mouse events that the control can receive has - been expanded by BView::SetEventMask() or BView::SetMouseEventMask(). - - \c B_OUTSIDE_VIEW The cursor is outside the view. This only gets sent if the - scope of the mouse events that the control can receive has been expanded - by SetEventMask() or SetMouseEventMask(). - \param dragMessage If a drag-and-drop operation is taking place this is a - pointer to a BMessage that holds the drag information, otherwise the - pointer is \c NULL. - - \sa BView::MouseMoved() + \copydetails BView::MouseMoved() */ +/*! + \fn void BControl::MouseUp(BPoint where) + \brief Hook method called when a mouse button is released. + + \copydetails BView::MouseUp() +*/ + + + /*! \fn void BControl::SetLabel(const char *label) \brief Sets the \a label of the control. @@ -306,6 +314,8 @@ If the \a label changes the control is redrawn. \param label The \a label to set, can be \c NULL. + + \since BeOS R3 */ @@ -314,6 +324,8 @@ \brief Gets the label of the control. \return The control's label. + + \since BeOS R3 */ @@ -326,6 +338,8 @@ \param value The \a value to set. \sa SetValueNoUpdate() + + \since BeOS R3 */ @@ -333,11 +347,11 @@ \fn void BControl::SetValueNoUpdate(int32 value) \brief Sets the value of the control without redrawing. - \note This method was not available in BeOS R5. - \param value The \a value to set. \sa SetValue() + + \since Haiku R1 */ @@ -346,6 +360,8 @@ \brief Gets the value of the control. \return The control's value. + + \since BeOS R3 */ @@ -364,6 +380,8 @@ keyboard or mouse events. \param enabled If \c true enables the control, if \c false, disables it. + + \since BeOS R3 */ @@ -372,6 +390,8 @@ \brief Gets whether or not the control is currently enabled. \return \c true if the control is enabled, \c false if it is disabled. + + \since BeOS R3 */ @@ -387,6 +407,8 @@ \param[out] _height Pointer to a \c float to hold the height of the control. \sa BView::GetPreferredSize() + + \since BeOS R3 */ @@ -395,6 +417,8 @@ \brief Resize the control to its preferred size. \sa BView::ResizeToPreferred() + + \since BeOS R3 */ @@ -418,15 +442,15 @@ \sa BInvoker::Invoke() \sa IsEnabled() + + \since BeOS R3 */ /*! \fn BHandler* BControl::ResolveSpecifier(BMessage* message, int32 index, BMessage* specifier, int32 what, const char* property) - \brief Determine the proper specifier for scripting messages. - - \sa BHandler::ResolveSpecifier() + \copydoc BHandler::ResolveSpecifier() */ @@ -436,36 +460,13 @@ Adds the string "suite/vnd.Be-control" to the message. - \param message Allows you to add the names of the suites the control - implements to the suites array. - - \return \c B_OK if all went well or an error code otherwise. - - \sa BHandler::GetSupportedSuites(); + \copydetails BHandler::GetSupportedSuites(); */ /*! \fn status_t BControl::Perform(perform_code code, void* _data) - \brief Perform some action. (Internal Method) - - The following perform codes are recognized: - - \c PERFORM_CODE_MIN_SIZE - - \c PERFORM_CODE_MAX_SIZE - - \c PERFORM_CODE_PREFERRED_SIZE - - \c PERFORM_CODE_LAYOUT_ALIGNMENT - - \c PERFORM_CODE_HAS_HEIGHT_FOR_WIDTH - - \c PERFORM_CODE_GET_HEIGHT_FOR_WIDTH - - \c PERFORM_CODE_SET_LAYOUT - - \c PERFORM_CODE_INVALIDATE_LAYOUT - - \c PERFORM_CODE_DO_LAYOUT - - \param code The perform code. - \param _data A pointer to store some data. - - \returns A status code. - - \sa BHandler::Perform() + \copydoc BView::Perform() */ @@ -477,8 +478,6 @@ It also supports cropping the icon to its non-transparent area. The icon is meant as an addition to or replacement of the label. - \note This method was not available in BeOS R5. - \param icon The \a icon to set. \param flags Modify how the icon is set. - \c B_TRIM_ICON_BITMAP Crop the bitmap to the not fully transparent @@ -490,6 +489,8 @@ - \c B_CREATE_DISABLED_ICON_BITMAPS \return \c B_OK if the icon was set or an error code otherwise. + + \since Haiku R1 */ @@ -500,12 +501,12 @@ partially on, each enabled or disabled, plus up to 125 custom states) can be set individually. - \note This method was not available in BeOS R5. - \param bitmap The \a bitmap icon to set. \param which The state to set the icon for. \param flags Modify how the icon is set. - \c B_KEEP_ICON_BITMAP Transfer ownership of the bitmap to the control. \return \c B_OK if the icon was set or an error code otherwise. -*/ \ No newline at end of file + + \since Haiku R1 +*/ diff --git a/docs/user/interface/Dragger.dox b/docs/user/interface/Dragger.dox index cb22821463..24e1c7b335 100644 --- a/docs/user/interface/Dragger.dox +++ b/docs/user/interface/Dragger.dox @@ -46,6 +46,8 @@ The Show Replicants/Hide Replicants menu item in Deskbar shows and hides the BDragger handles. + + \since BeOS R3 */ @@ -78,6 +80,8 @@ resized. See BView for more information on resizing options. \param flags The flags mask sets what notifications the BDragger can receive. See BView for more information on \a flags. + + \since BeOS R3 */ @@ -86,6 +90,8 @@ \brief Constructs a BDragger object from message \a data. \param data The message \a data to restore from. + + \since BeOS R3 */ @@ -93,6 +99,8 @@ \fn BDragger::~BDragger() \brief Destroys the BDragger object and frees the memory it uses, primarily from the bitmap handle. + + \since BeOS R3 */ @@ -102,6 +110,8 @@ \returns A newly created BDragger or \c NULL if the message doesn't contain an archived BDragger object. + + \since BeOS R3 */ @@ -115,6 +125,8 @@ \returns A status code, typically \c B_OK or \c B_ERROR on error. \see BView::Archive() + + \since BeOS R3 */ @@ -122,6 +134,8 @@ \fn void BDragger::AttachedToWindow() \brief Puts the BDragger under the control of HideAllDraggers() and ShowAllDraggers(). + + \since BeOS R3 */ @@ -129,6 +143,8 @@ \fn void BDragger::DetachedFromWindow() \brief Removes the BDragger from the control of HideAllDraggers() and ShowAllDraggers(). + + \since BeOS R3 */ @@ -137,6 +153,8 @@ \brief Draws the dragger handle. \param updateRect The rectangular area to draw the handle in. + + \since BeOS R3 */ @@ -150,6 +168,8 @@ \param point The point on the screen where to mouse pointer is when the mouse is clicked. + + \since BeOS R3 */ @@ -160,6 +180,8 @@ \param msg The message received \see BView::MessageReceived() + + \since BeOS R3 */ @@ -171,6 +193,8 @@ method. \returns A status code, \c B_OK on success or an error code on failure. + + \since BeOS R3 */ @@ -182,6 +206,8 @@ method. \returns A status code, \c B_OK on success or an error code on failure. + + \since BeOS R3 */ @@ -190,4 +216,6 @@ \brief Returns whether or not draggers are currently drawn. \returns \c true if draggers are drawn, \c false otherwise. + + \since BeOS R3 */ diff --git a/docs/user/interface/Font.dox b/docs/user/interface/Font.dox index b1276e49f3..c7e6975e9d 100644 --- a/docs/user/interface/Font.dox +++ b/docs/user/interface/Font.dox @@ -16,7 +16,7 @@ \ingroup interface \ingroup libbe \brief BFont class definition, unicode_block class definition, and - font-related struct and enum definitions. + font-related struct and enum definitions. */ @@ -24,6 +24,8 @@ \var B_CHAR_SPACING Position each character without adjustment. Best mode for printing. + + \since BeOS R3 */ @@ -33,6 +35,8 @@ Optimizes the position of each character within it's space. Collisions are unlikely but characters may touch each other. Best mode to use when the screen needs to match what appears on the printed page. + + \since BeOS R3 */ @@ -41,6 +45,8 @@ The widths of the characters are chosen so that they never collide and rarely touch. Best mode for drawing small amounts of text. + + \since BeOS R3 */ @@ -48,6 +54,8 @@ \var B_FIXED_SPACING Positions characters at a constant width. Best mode for fixed-width fonts. + + \since BeOS R3 */ @@ -57,6 +65,8 @@ Determines the direction of the text rendered by the font, left-to-right or right-to-left. + + \since BeOS R3 */ @@ -64,12 +74,17 @@ \var font_direction B_FONT_LEFT_TO_RIGHT Left to right. + + \since BeOS R3 */ + /*! \var font_direction B_FONT_RIGHT_TO_LEFT Right to left. + + \since BeOS R3 */ @@ -77,6 +92,8 @@ \var B_DISABLE_ANTIALIASING Disable antialiasing. Used by BFont::Flags() and BFont::SetFlags(). + + \since BeOS R3 */ @@ -84,6 +101,8 @@ \var B_FORCE_ANTIALIASING Force antialiasing. Used by BFont::Flags() and BFont::SetFlags(). + + \since BeOS R3 */ @@ -91,6 +110,8 @@ \var B_TRUNCATE_END Truncate from the end of the string. + + \since BeOS R3 */ @@ -98,6 +119,8 @@ \var B_TRUNCATE_BEGINNING Truncate from the beginning of the string. + + \since BeOS R3 */ @@ -105,6 +128,8 @@ \var B_TRUNCATE_MIDDLE Truncate from the middle of the string. + + \since BeOS R3 */ @@ -112,6 +137,8 @@ \var B_TRUNCATE_SMART Truncate while keeping each string unique. + + \since BeOS R3 */ @@ -119,6 +146,8 @@ \var B_UNICODE_UTF8 UTF-8 font encoding. + + \since BeOS R3 */ @@ -126,6 +155,8 @@ \var B_ISO_8859_1 ISO 8859-1 aka Latin 1 "Western European" font encoding. + + \since BeOS R3 */ @@ -133,6 +164,8 @@ \var B_ISO_8859_2 ISO 8859-2 aka Latin 2 "Eastern European" font encoding. + + \since BeOS R3 */ @@ -140,6 +173,8 @@ \var B_ISO_8859_3 ISO 8859-3 aka Latin 3 "South European" font encoding. + + \since BeOS R3 */ @@ -147,6 +182,8 @@ \var B_ISO_8859_4 ISO 8859-4 aka Latin 4 "Northern European" font encoding. + + \since BeOS R3 */ @@ -154,6 +191,8 @@ \var B_ISO_8859_5 ISO 8859-5 "Latin/Cyrillic" font encoding. + + \since BeOS R3 */ @@ -161,6 +200,8 @@ \var B_ISO_8859_6 ISO 8859-6 "Latin/Arabic" font encoding. + + \since BeOS R3 */ @@ -168,6 +209,8 @@ \var B_ISO_8859_7 ISO 8859-7 "Latin/Greek" font encoding. + + \since BeOS R3 */ @@ -175,6 +218,8 @@ \var B_ISO_8859_8 ISO 8859-8 "Latin/Hebrew" font encoding. + + \since BeOS R3 */ @@ -182,6 +227,8 @@ \var B_ISO_8859_9 ISO 8859-9 aka Latin 5 "Latin/Turkish" font encoding. + + \since BeOS R3 */ @@ -189,6 +236,8 @@ \var B_ISO_8859_10 ISO 8859-10 aka Latin 6 "Nordic" font encoding. + + \since BeOS R3 */ @@ -196,20 +245,26 @@ \var B_MACINTOSH_ROMAN Macintosh Roman font encoding. + + \since BeOS R3 */ /*! \var B_HAS_TUNED_FONT - Flags for get_font_family() and get_font_style() + Indicates that the font has been adjusted to look good on the screen. + + \since BeOS R4 */ /*! \var B_IS_FIXED - flags for get_font_family() and get_font_style() + Indicates that the font is non-proportional. + + \since BeOS R4 */ @@ -217,6 +272,8 @@ \var B_ITALIC_FACE Italic font face flag. + + \since BeOS R4 */ @@ -224,6 +281,8 @@ \var B_UNDERSCORE_FACE Underscore font face flag. + + \since BeOS R4 */ @@ -231,6 +290,8 @@ \var B_NEGATIVE_FACE Negative font face flag. + + \since BeOS R4 */ @@ -238,6 +299,8 @@ \var B_OUTLINED_FACE Outline font face flag. + + \since BeOS R4 */ @@ -245,6 +308,8 @@ \var B_STRIKEOUT_FACE Strikeout font face flag. + + \since BeOS R4 */ @@ -252,6 +317,8 @@ \var B_BOLD_FACE Bold font face flag. + + \since BeOS R4 */ @@ -259,27 +326,35 @@ \var B_REGULAR_FACE Regular font face flag. + + \since BeOS R4 */ /*! \var B_CONDENSED_FACE - Condensed font face flag. Not in BeOS 5. + Condensed font face flag. + + \since Haiku R1 */ /*! \var B_LIGHT_FACE - Light font face flag. Not in BeOS 5. + Light font face flag. + + \since Haiku R1 */ /*! \var B_HEAVY_FACE - Heavy font face flag. Not in BeOS 5. + Heavy font face flag. + + \since Haiku R1 */ @@ -287,18 +362,26 @@ \enum font_metric_mode Font metric mode, screen or printing. + + \since BeOS R4 */ + /*! \var font_metric_mode B_SCREEN_METRIC Screen font metric mode. + + \since BeOS R4 */ + /*! \var font_metric_mode B_PRINTING_METRIC Printing font metric mode. + + \since BeOS R4 */ @@ -309,18 +392,26 @@ Font file format, TrueType™ or PostScript™ Type1. \see BFont::FileFormat() + + \since BeOS R4 */ + /*! \var font_file_format B_TRUETYPE_WINDOWS TrueType™ font file format. + + \since BeOS R4 */ + /*! \var font_file_format B_POSTSCRIPT_TYPE1_WINDOWS PostScript™ Type1 font file format. + + \since BeOS R4 */ @@ -331,6 +422,8 @@ \brief Describes the blocks of Unicode characters supported by a font. \see BFont::Blocks() + + \since BeOS R4 */ @@ -339,16 +432,20 @@ \brief Construct a \c unicode_block and set block data to 0. You must initialize the block data before before using this object. + + \since BeOS R4 */ /*! \fn unicode_block::unicode_block(uint64 block2, uint64 block1) \brief Construct a \c unicode_block object and initialize it with the - supplied Unicode block range. + supplied Unicode block range. \param block2 End block. \param block1 Begin block. + + \since BeOS R4 */ @@ -359,14 +456,16 @@ \param block The Unicode block to check. \returns Whether or not \a block is a subset of the \c unicode_block - object. + object. \retval true \a block is a subset of the current \c unicode_block. \retval false \a block is NOT a subset of the current \c unicode_block. + + \since BeOS R4 */ /*! - \name Assignment operators + \name Operators */ @@ -381,6 +480,8 @@ \param block The Unicode block to intersect with. \returns The intersection of \a block and the \c unicode_block object. + + \since BeOS R4 */ @@ -392,6 +493,8 @@ \param block The Unicode block to form a union with. \returns The union of \a block and the \c unicode_block object. + + \since BeOS R4 */ @@ -402,20 +505,11 @@ \param block The unicode block to copy from. \returns A copy of \a block. + + \since BeOS R4 */ -//! @} - - -/*! - \name Comparison operators -*/ - - -//! @{ - - /*! \fn bool unicode_block::operator==(const unicode_block& block) const \brief Determines if the block object are exactly equal. @@ -424,6 +518,8 @@ \returns \c true if the block object are exactly equal, \c false otherwise. + + \since BeOS R4 */ @@ -435,6 +531,8 @@ \returns \c true if the block object are NOT equal, \c false if the block objects are exactly equal. + + \since BeOS R4 */ @@ -452,6 +550,8 @@ get the correct value for the font. \see BFont::GetEdges() + + \since BeOS R3 */ @@ -460,6 +560,8 @@ The distance that the character outline is inset from the left escapement boundary. + + \since BeOS R3 */ @@ -468,6 +570,8 @@ The distance that the character outline is inset from the right escapement boundary. + + \since BeOS R3 */ @@ -478,6 +582,8 @@ \brief The amount of vertical space surrounding a character. \see BFont::GetHeight() + + \since BeOS R3 */ @@ -485,6 +591,8 @@ \var font_height::ascent The distance characters can ascend above the baseline. + + \since BeOS R3 */ @@ -492,6 +600,8 @@ \var font_height::descent The distance characters can descend below the baseline. + + \since BeOS R3 */ @@ -499,6 +609,8 @@ \var font_height::leading The distance between lines, descent above to ascent below. + + \since BeOS R3 */ @@ -513,6 +625,8 @@ value for the font. \see BFont::GetEscapements() + + \since BeOS R3 */ @@ -520,6 +634,8 @@ \var escapement_delta::nonspace The amount of horizontal space to surround a visible glyph character with. + + \since BeOS R3 */ @@ -528,6 +644,8 @@ The amount of horizontal space to surround a whitespace character with, for example \c B_TAB or \c B_SPACE. + + \since BeOS R3 */ @@ -536,6 +654,8 @@ \ingroup interface \ingroup libbe \brief Font cache parameters. + + \since BeOS R3 */ @@ -543,6 +663,8 @@ \var font_cache_info::sheared_font_penalty Sheared font penalty. + + \since BeOS R3 */ @@ -550,6 +672,8 @@ \var font_cache_info::rotated_font_penalty Rotated font penalty. + + \since BeOS R3 */ @@ -557,6 +681,8 @@ \var font_cache_info::oversize_threshold Oversize threshold. + + \since BeOS R3 */ @@ -564,12 +690,17 @@ \var font_cache_info::oversize_penalty Oversize penalty. + + \since BeOS R3 */ + /*! \var font_cache_info::cache_size Cache size. + + \since BeOS R3 */ @@ -577,6 +708,8 @@ \var font_cache_info::spacing_size_threshold Spacing size threshold. + + \since BeOS R3 */ @@ -589,6 +722,8 @@ \see BFont::GetTunedInfo() \see BFont::CountTuned() + + \since BeOS R3 */ @@ -596,6 +731,8 @@ \var tuned_font_info::size Font size. + + \since BeOS R3 */ @@ -603,6 +740,8 @@ \var tuned_font_info::shear Font shear. + + \since BeOS R3 */ @@ -610,6 +749,8 @@ \var tuned_font_info::rotation Font rotation. + + \since BeOS R3 */ @@ -617,12 +758,17 @@ \var tuned_font_info::flags Font flags. + + \since BeOS R3 */ + /*! \var tuned_font_info::face Font face. + + \since BeOS R3 */ @@ -631,6 +777,8 @@ \brief Gets the number of installed font families \return The number of installed font families + + \since BeOS R3 */ @@ -639,6 +787,8 @@ \brief Gets the number of styles available for a font family. \return The number of styles available for a font family. + + \since BeOS R3 */ @@ -655,6 +805,8 @@ \return A status code, \c B_OK on success or an error code. \retval B_BAD_VALUE \a _name is \c NULL. \retval B_ERROR \a index does not correspond to a font family. + + \since BeOS R3 */ @@ -671,6 +823,8 @@ \return A status code, \c B_OK on success or an error code. \retval B_ERROR \a index does not correspond to a font style. + + \since BeOS R3 */ @@ -692,6 +846,8 @@ \return A status code, \c B_OK on success or an error code. \retval B_ERROR \a index does not correspond to a font style. + + \since BeOS R3 */ @@ -702,6 +858,8 @@ \param checkOnly Parameter is ignored. \return \c true if the font list has changed, \c false if not. + + \since BeOS R3 */ @@ -752,6 +910,8 @@ You can also perform intelligent string truncation with the TruncateString() and GetTruncatedStrings() methods. + + \since BeOS R3 */ @@ -760,32 +920,40 @@ \brief Creates a BFont object initialized to \c be_plain_font. \see BView::GetFont() + + \since BeOS R3 */ /*! - \fn BFont::BFont(const BFont &font) + \fn BFont::BFont(const BFont& font) \brief Creates and initializes a BFont object from another BFont object. \param font The BFont object to initialize from. + + \since BeOS R3 */ /*! - \fn BFont::BFont(const BFont *font) + \fn BFont::BFont(const BFont* font) \brief Creates and initializes a BFont object from a pointer to a BFont - object. + object. \param font The pointer to a BFont object to initialize from. + + \since BeOS R3 */ /*! - \fn BFont::BFont(const BFont *font) + \fn BFont::BFont(const BFont* font) \brief Creates and initializes a BFont object from a pointer to a BFont - object. + object. \param font The pointer to a BFont object to initialize from. + + \since BeOS R3 */ @@ -800,6 +968,8 @@ \returns A status code, \c B_OK on success or an error code. \retval B_BAD_VALUE \a family is \c NULL and \a style is \c NULL. \retval B_NAME_NOT_FOUND Family or style do not exist. + + \since BeOS R3 */ @@ -808,6 +978,8 @@ \brief Sets the font's family and style from a font identifier. \param code Unique font identifier obtained from the server. + + \since BeOS R3 */ @@ -825,6 +997,8 @@ \returns A status code, \c B_OK on success or an error code. \retval B_ERROR Family does not exists or face has an invalid value. + + \since BeOS R4 */ @@ -833,6 +1007,8 @@ \brief Sets the font size. \param size The point size to set the font to. + + \since BeOS R3 */ @@ -844,6 +1020,8 @@ range is from 45.0° to 135.0°. \param shear The shear in degrees to set the font to. + + \since BeOS R3 */ @@ -855,6 +1033,8 @@ supported by BTextView. \param rotation The rotation in degrees to set the font to. + + \since BeOS R3 */ @@ -863,6 +1043,8 @@ \brief Sets the false bold width. \param width The false bold width to set. + + \since Haiku R1 */ @@ -894,6 +1076,8 @@ \see BView::DrawString() \see GetEscapements() + + \since BeOS R3 */ @@ -939,6 +1123,8 @@ the values representing the keys that the user presses. \param encoding The character encoding to set the font to. + + \since BeOS R3 */ @@ -960,6 +1146,8 @@ - \c B_HEAVY_FACE Characters are drawn heavier than normal. Not in BeOS 5. \param face The bitmap of font face flags to set. + + \since BeOS R3 */ @@ -972,11 +1160,13 @@ - \c B_FORCE_ANTIALIASING Force antialiasing. \param flags The bitmap of flags to set. + + \since Haiku R1 */ /*! - \fn void BFont::GetFamilyAndStyle(font_family *family, + \fn void BFont::GetFamilyAndStyle(font_family* family, font_style *style) const \brief Writes out the name of the font family and/or font style. @@ -985,6 +1175,8 @@ \param family A font_family pointer to be filled out. \param style A font_style pointer to be filled out. + + \since BeOS R3 */ @@ -995,6 +1187,8 @@ \returns The family and style combination encoded as a unique integer. \see SetFamilyAndStyle(uint32 code) + + \since BeOS R3 */ @@ -1005,6 +1199,8 @@ \returns The font size in points. \see SetSize() + + \since BeOS R3 */ @@ -1015,6 +1211,8 @@ \returns The font shear as an angle from 45.0° to 135.0°. \see SetShear() + + \since BeOS R3 */ @@ -1025,6 +1223,8 @@ \returns The font rotation as an angle in degrees. \see SetRotation() + + \since BeOS R3 */ @@ -1035,6 +1235,8 @@ \returns The font width of the bold font variety. \see SetFalseBoldWidth() + + \since Haiku R1 */ @@ -1045,6 +1247,8 @@ \returns The spacing constant. \see SetSpacing() + + \since BeOS R3 */ @@ -1055,6 +1259,8 @@ \returns The character encoding constant. \see SetEncoding() + + \since BeOS R3 */ @@ -1065,6 +1271,8 @@ \returns The font face flags bitmap. \see SetFace() + + \since BeOS R3 */ @@ -1075,6 +1283,8 @@ \returns The antialiasing flags. \see SetFlags() + + \since BeOS R3 */ @@ -1083,6 +1293,8 @@ \brief Gets the font direction, left-to-right or right-to left. \returns The font direction. + + \since BeOS R3 */ @@ -1091,6 +1303,8 @@ \brief Gets whether or not the font is fixed width. \returns \c true if the font is fixed width, \c false otherwise. + + \since BeOS R4 */ @@ -1100,7 +1314,9 @@ full and half-width characters. \note This was left unimplemented as of R5. It is a way to work with both - Kanji and Roman characters in the same fixed-width font. + Kanji and Roman characters in the same fixed-width font. + + \since BeOS R4 */ @@ -1109,18 +1325,22 @@ \brief Gets a BRect that encloses the font text. \returns A BRect that encloses the font text. + + \since BeOS R4 */ /*! \fn unicode_block BFont::Blocks() const \brief Gets a \c unicode_block object that identifies the Unicode blocks - supported by this font face and family. + supported by this font face and family. \attention Currently unimplemented, returns an empty \a unicode_block - object. + object. \returns A \c unicode_block object containing supported Unicode blocks. + + \since BeOS R4 */ @@ -1129,6 +1349,8 @@ \brief Gets whether the font is a TrueType™ or PostScript™ Type1 font. \returns A \c font_file_format struct containing the font file format. + + \since BeOS R4 */ @@ -1137,6 +1359,8 @@ \brief Gets the number of tuned fonts for the font family and style. \returns The number of tuned fonts. + + \since BeOS R3 */ @@ -1149,6 +1373,8 @@ \param index The index of desired tuned font. \param info The \a turned_font_info struct to be filled out. + + \since BeOS R3 */ @@ -1156,7 +1382,7 @@ \fn void BFont::TruncateString(BString *inOut, uint32 mode, float width) const \brief Truncates \a inOut to be no longer than \a width using the - supplied truncation \a mode. + supplied truncation \a mode. The following truncation modes are supported: - \c B_TRUNCATE_BEGINNING Truncate from the beginning of the string. @@ -1168,6 +1394,8 @@ \param inOut The BString to truncate. \param mode Truncation mode to use. \param width The maximum width to truncate to. + + \since BeOS R5 */ @@ -1176,20 +1404,22 @@ int32 numStrings, uint32 mode, float width, BString resultArray[]) const \brief Write truncated BString objects to \a resultArray given source - BString objects in \a stringArray. + BString objects in \a stringArray. The following truncation modes are supported: - \c B_TRUNCATE_BEGINNING Truncate from the beginning of the string. - \c B_TRUNCATE_MIDDLE Truncate from the middle of the string. - \c B_TRUNCATE_END Truncate from the end of the string. - \c B_TRUNCATE_SMART Truncate from anywhere, but do so so that each - string is made unique after being truncated. + string is made unique after being truncated. \param stringArray The source string array. \param numStrings The number of strings in \a stringArray. \param mode Truncation mode to use. \param width The maximum width to truncate to. \param resultArray The destination string array. + + \since BeOS R5 */ @@ -1197,7 +1427,7 @@ \fn void BFont::GetTruncatedStrings(const char *stringArray[], int32 numStrings, uint32 mode, float width, char *resultArray[]) const \brief Write truncated strings to \a resultArray given source - BString objects in \a stringArray. + BString objects in \a stringArray. \a resultArray is an array of pointers to string buffers which should be allocated ahead of time and should be at least 3 bytes longer than the @@ -1212,36 +1442,42 @@ - \c B_TRUNCATE_MIDDLE Truncate from the middle of the string. - \c B_TRUNCATE_END Truncate from the end of the string. - \c B_TRUNCATE_SMART Truncate from anywhere, but do so so that each - string is made unique after being truncated. + string is made unique after being truncated. \param stringArray The source string array. \param numStrings The number of strings in \a stringArray. \param mode Truncation mode to use. \param width The maximum width to truncate to. \param resultArray The destination string array. + + \since BeOS R5 */ /*! \fn float BFont::StringWidth(const char *string) const \brief Determines the amount of space required to draw \a string in the - current font. + current font. \param string The source string. \returns The width required to draw the string. + + \since BeOS R3 */ /*! \fn float BFont::StringWidth(const char *string, int32 length) const \brief Determines the amount of space required to draw \a string in the - current font up to \a length characters. + current font up to \a length characters. \param string The source string. \param length The number of characters in \a string to consider. \returns The width required to draw the string. + + \since BeOS R3 */ @@ -1249,7 +1485,7 @@ \fn void BFont::GetStringWidths(const char *stringArray[], const int32 lengthArray[], int32 numStrings, float widthArray[]) const \brief Determines the amount of space required to draw each string in - \a stringArray and writes the result in \a widthArray. + \a stringArray and writes the result in \a widthArray. \param stringArray The source string array. \param lengthArray The number of characters to consider for each string in @@ -1257,6 +1493,8 @@ \param numStrings The number of strings in \a stringArray. \param widthArray The destination array to put the widths required to draw each string. + + \since BeOS R3 */ @@ -1269,12 +1507,14 @@ \param charArray The source character array. \param numChars The number of characters to consider in \a charArray. \param escapementArray The destination array to put the escapements. + + \since BeOS R3 */ /*! \fn void BFont::GetEscapements(const char charArray[], int32 numChars, - escapement_delta *delta, float escapementArray[]) const + escapement_delta* delta, float escapementArray[]) const \brief Determines the escapements for each char in \a charArray and writes the result in \a escapementArray with consideration to the horizontal space provided by the escapement \a delta. @@ -1289,6 +1529,8 @@ \param numChars The number of characters to consider in \a charArray. \param delta The escapement_delta structure to use. \param escapementArray The destination array to put the escapements. + + \since BeOS R3 */ @@ -1311,6 +1553,8 @@ \param delta The escapement_delta structure to use. \param escapementArray The destination array of escapements as BPoint objects. + + \since BeOS R4 */ @@ -1335,6 +1579,8 @@ \param escapementArray The destination array of escapements as BPoint objects. \param offsetArray The destination array of offsets as BPoint objects. + + \since BeOS R4 */ @@ -1353,6 +1599,8 @@ \param charArray The source character array. \param numChars The number of characters to consider in \a charArray. \param edgeArray The destination array of \c edge_info structs. + + \since BeOS R3 */ @@ -1367,6 +1615,8 @@ - \c leading The distance between lines, descent above to ascent below. \param _height The \c font_height struct to fill out. + + \since BeOS R3 */ @@ -1387,6 +1637,8 @@ \param numChars The number of characters to consider in \a charArray. \param mode The \c font_metric_mode to use, screen or printing. \param boundingBoxArray The destination array of BRect bounding boxes. + + \since BeOS R4 */ @@ -1420,6 +1672,8 @@ \param mode The \c font_metric_mode to use, screen or printing. \param delta The escapement_delta structure to use. \param boundingBoxArray The destination array of BRect bounding boxes. + + \since BeOS R4 */ @@ -1453,6 +1707,8 @@ \param mode The \c font_metric_mode to use, screen or printing. \param deltas The array of escapement_delta structures to use. \param boundingBoxArray The destination array of BRect bounding boxes. + + \since BeOS R4 */ @@ -1468,6 +1724,8 @@ \param charArray The source character array. \param numChars The number of characters to consider in \a charArray. \param glyphShapeArray The destination array of BShape glyphs. + + \since BeOS R4 */ @@ -1484,6 +1742,8 @@ \param charArray The source character array. \param numChars The number of characters to consider in \a charArray. \param hasArray The destination array of booleans. + + \since BeOS R4 */ @@ -1492,6 +1752,8 @@ \brief Assignment overload method. \param font The BFont object to assign from. + + \since BeOS R3 */ @@ -1502,6 +1764,8 @@ \param font The BFont object to compare the current font to. \returns \c true if the fonts objects are identical, \c false otherwise. + + \since BeOS R3 */ @@ -1513,6 +1777,8 @@ \returns \c true if the fonts objects are NOT identical, \c true otherwise. + + \since BeOS R3 */ @@ -1523,4 +1789,6 @@ printf("BFont { %s (%d), %s (%d) 0x%x %f/%f %fpt (%f %f %f), %d }\n", family, fFamilyID, style, fStyleID, fFace, fShear, fRotation, fSize, fHeight.ascent, fHeight.descent, fHeight.leading, fEncoding); + + \since BeOS R3 */ diff --git a/docs/user/interface/GraphicsDefs.dox b/docs/user/interface/GraphicsDefs.dox index b169423d44..0be7535363 100644 --- a/docs/user/interface/GraphicsDefs.dox +++ b/docs/user/interface/GraphicsDefs.dox @@ -24,6 +24,8 @@ \ingroup interface \ingroup libbe \brief A pattern to use when drawing. + + \since BeOS R3 */ @@ -31,6 +33,8 @@ \var B_SOLID_HIGH Draw using the view's high color. + + \since BeOS R3 */ @@ -38,6 +42,8 @@ \var B_MIXED_COLORS Draw a pattern of the view's high and low colors. + + \since BeOS R3 */ @@ -45,6 +51,8 @@ \var B_SOLID_LOW Draw using the view's low color. + + \since BeOS R3 */ @@ -53,6 +61,8 @@ \ingroup interface Blending alpha mode constants. + + \since BeOS R3 */ @@ -60,6 +70,8 @@ \var source_alpha B_PIXEL_ALPHA Use the alpha value of each pixel when drawing a bitmap. + + \since BeOS R3 */ @@ -67,6 +79,8 @@ \var source_alpha B_CONSTANT_ALPHA Use the alpha channel of the view's high color. + + \since BeOS R3 */ @@ -75,6 +89,8 @@ \ingroup interface Blending alpha function constants. + + \since BeOS R3 */ @@ -82,6 +98,8 @@ \var alpha_function B_ALPHA_OVERLAY Used for drawing a image with transparency over an opaque background. + + \since BeOS R3 */ @@ -90,4 +108,6 @@ Used to composite two or more transparent images together offscreen to produce a new image drawn using \c B_ALPHA_OVERLAY mode. + + \since BeOS R3 */ diff --git a/docs/user/interface/GridLayout.dox b/docs/user/interface/GridLayout.dox index bbce8ac8da..db1474cc90 100644 --- a/docs/user/interface/GridLayout.dox +++ b/docs/user/interface/GridLayout.dox @@ -33,14 +33,18 @@ starting in the top-left. \warning This class is not yet finalized, if you use it in your software - assume that it will break some time in the future. + assume that it will break some time in the future. + + \since Haiku R1 */ /*! \fn BGridLayout::BGridLayout(float horizontal = 0.0f, float vertical = 0.0f) \brief Create a BGridLayout with \a horizontal space between columns and - \a vertical space between rows. + \a vertical space between rows. + + \since Haiku R1 */ @@ -49,6 +53,8 @@ \brief Archive constructor. \param from The message to build the BGridLayout from. + + \since Haiku R1 */ @@ -57,6 +63,8 @@ \brief Destructor method. Standard Destructor. + + \since Haiku R1 */ @@ -65,6 +73,8 @@ \brief Returns the number of active columns in this layout. \returns The number of active columns in the layout. + + \since Haiku R1 */ @@ -73,6 +83,8 @@ \brief Returns the number of active rows in this layout. \returns the number of active rows in the layout. + + \since Haiku R1 */ @@ -81,6 +93,8 @@ \brief Returns the spacing between columns for this layout. \returns The spacing between columns for the layout. + + \since Haiku R1 */ @@ -89,6 +103,8 @@ \brief Returns the spacing between rows for this layout. \returns The spacing between rows for the layout. + + \since Haiku R1 */ @@ -97,6 +113,8 @@ \brief Set the spacing between columns for this layout. \param spacing The number of pixels of spacing to set. + + \since Haiku R1 */ @@ -105,6 +123,8 @@ \brief Set the spacing between rows for this layout. \param spacing The number of pixels of spacing to set. + + \since Haiku R1 */ @@ -114,6 +134,8 @@ \param horizontal The number of \a horizontal pixels of spacing to set. \param vertical The number of \a vertical pixels of spacing to set. + + \since Haiku R1 */ @@ -122,6 +144,8 @@ \brief Returns the weight for the specified \a column. \returns The \a column weight as a float. + + \since Haiku R1 */ @@ -131,6 +155,8 @@ \param column The column to set. \param weight The weight to set. + + \since Haiku R1 */ @@ -141,6 +167,8 @@ \param column The column to get the minimum width of. \returns The minimum width for \a column as a float. + + \since Haiku R1 */ @@ -150,6 +178,8 @@ \param column The \a column to set the minimum width of. \param width The \a width to set. + + \since Haiku R1 */ @@ -160,6 +190,8 @@ \param column The column to get the maximum width of. \returns The maximum width for \a column as a float. + + \since Haiku R1 */ @@ -169,6 +201,8 @@ \param column The column to set the maximum width of. \param width The \a width to set. + + \since Haiku R1 */ @@ -177,39 +211,51 @@ \brief Returns the weight of the specified \a row. \returns The weight of the \a row. + + \since Haiku R1 */ /*! \fn void BGridLayout::SetRowWeight(int32 row, float weight) - \brief Set the weight for \a row to \a weight. + \brief Set the weight of \a row to \a weight. \param row The \a row number. - \param weight The \a + \param weight The \a weight to set. + + \since Haiku R1 */ /*! \fn float BGridLayout::MinRowHeight(int row) const \brief Returns the minimum height for \a row. + + \since Haiku R1 */ /*! \fn void BGridLayout::SetMinRowHeight(int32 row, float height) \brief Sets the minimum height for \a row to \a width. + + \since Haiku R1 */ /*! \fn float BGridLayout::MaxRowHeight(int32 row) const \brief Returns the maximum height for \a row. + + \since Haiku R1 */ /*! \fn void BGridLayout::SetMaxRowHeight(int32 row, float height) \brief Sets the maximum height for \a row to \a width. + + \since Haiku R1 */ @@ -217,12 +263,16 @@ \fn BLayoutItem* BGridLayout::AddView(BView* child) \brief Adds \a child to this layout in the first empty cell available, or in a new column in the first row if there are no emtpy cells. + + \since Haiku R1 */ /*! \fn BLayoutItem* BGridLayout::AddView(int32 index, BView* child); \brief BGridLayout::AddView(BView*) + + \since Haiku R1 */ @@ -230,18 +280,22 @@ \fn BLayoutItem* BGridLayout::AddView(BView* child, int32 column, int32 row, int32 columnCount = 1, int32 rowCount = 1); \brief Adds \a child to this layout at \a column and \a row. \a child may - also occupy additional cells if \a columnCount or \a rowCount are - greater than \c 1. + also occupy additional cells if \a columnCount or \a rowCount are + greater than \c 1. Fails and returns NULL if the requested area is occupied, or if internal memory allocations fail. + + \since Haiku R1 */ /*! \fn BLayoutItem* BGridLayout::AddItem(BLayoutItem* item) \brief Adds \a item to this layout in the first empty cell available, or - in a new column in the first row if there are no emtpy cells. + in a new column in the first row if there are no emtpy cells. + + \since Haiku R1 */ @@ -255,9 +309,11 @@ \fn BLayoutItem* BGridLayout::AddItem(BLayoutItem* item, int32 column, int32 row, int32 columnCount = 1, int32 rowCount = 1); \brief Adds \a item to this layout at \a column and \a row. \a item may - also occupy additional cells if \a columnCount or \a rowCount are - greater than 1. + also occupy additional cells if \a columnCount or \a rowCount are + greater than 1. Fails and returns \c NULL if the requested area is occupied, or if internal memory allocations fail. + + \since Haiku R1 */ diff --git a/docs/user/interface/GroupLayout.dox b/docs/user/interface/GroupLayout.dox index 70e20950a7..6753dcc322 100644 --- a/docs/user/interface/GroupLayout.dox +++ b/docs/user/interface/GroupLayout.dox @@ -20,7 +20,8 @@ */ -/*! \class BGroupLayout +/*! + \class BGroupLayout \ingroup interface \ingroup layout \ingroup libbe @@ -47,7 +48,9 @@ will be distributed to other items. \warning This class is not yet finalized, if you use it in your software - assume that it will break some time in the future. + assume that it will break some time in the future. + + \since Haiku R1 */ @@ -57,6 +60,8 @@ \param orientation The orientation of this BGroupLayout. \param spacing The spacing between BLayoutItems in this BGroupLayout. + + \since Haiku R1 */ @@ -65,6 +70,8 @@ \brief Destructor method. Standard Destructor. + + \since Haiku R1 */ @@ -73,53 +80,70 @@ \brief Archive constructor. \param from The message to construct the BGroupLayout from. + + \since Haiku R1 */ /*! \fn float BGroupLayout::Spacing() const \brief Get the amount of spacing (in pixels) between each item. + + \since Haiku R1 */ /*! \fn void BGroupLayout::SetSpacing(float spacing) \brief Set the amount of spacing (in pixels) between each item. + + \since Haiku R1 */ /*! \fn orientation BGroupLayout::Orientation() const \brief Get the #orientation of this BGroupLayout. + + \since Haiku R1 */ /*! \fn void BGroupLayout::SetOrientation(orientation orientation) \brief Set the #orientation of this BGroupLayout. + \param orientation The new #orientation of this BGroupLayout. + + \since Haiku R1 */ /*! \fn float BGroupLayout::ItemWeight(int32 index) const \brief Get the weight of the item at \a index. + + \since Haiku R1 */ /*! \fn void BGroupLayout::SetItemWeight(int32 index, float weight) \brief Set the weight of the item at \a index. + + \since Haiku R1 */ /*! \fn BLayoutItem* BGroupLayout::AddView(BView* child) \brief Adds \a child to this layout as the last item. In a vertical - BGroupLayout, \a child will be on the right, in a horizontal - BGroupLayout, \a child will be at the bottom. + BGroupLayout, \a child will be on the right, in a horizontal + BGroupLayout, \a child will be at the bottom. \a child will have a weight of \c 1.0f. + + \since Haiku R1 */ @@ -128,6 +152,8 @@ \brief Adds \a child to this layout at \a index. \a child will have a weight of \c 1.0f. + + \since Haiku R1 */ @@ -135,24 +161,30 @@ \fn BLayoutItem* BGroupLayout::AddView(BView* child, float weight) \brief Adds \a child to the end of this layout with a weight of \a weight. + + \since Haiku R1 */ /*! - \fn BLayoutItem* BGroupLayout::AddView(int32 index, BView* child, + \fn BLayoutItem* BGroupLayout::AddView(int32 index, BView* child, float weight) \brief Adds \a child this layout at \a index with a weight of - \a weight. + \a weight. + + \since Haiku R1 */ /*! \fn bool BGroupLayout::AddItem(BLayoutItem* item) \brief Adds \a item to this layout as the last item. In a vertical - BGroupLayout, \a item will be on the right, in a horizontal - BGroupLayout, \a item will be at the bottom. + BGroupLayout, \a item will be on the right, in a horizontal + BGroupLayout, \a item will be at the bottom. \a item will have a weight of \c 1.0f. + + \since Haiku R1 */ @@ -161,18 +193,25 @@ \brief Adds \a item to this layout at \a index. \a item will have a weight of \c 1.0f. + + \since Haiku R1 */ /*! \fn bool BGroupLayout::AddItem(BLayoutItem* item, float weight) \brief Adds \a item to the end of this layout with a weight of - \a weight. + \a weight. + + \since Haiku R1 */ /*! - \fn bool BGroupLayout::AddItem(int32 index, BLayoutItem* item, float weight) + \fn bool BGroupLayout::AddItem(int32 index, BLayoutItem* item, + float weight) \brief Adds \a item this layout at \a index with a weight of - \a weight. + \a weight. + + \since Haiku R1 */ diff --git a/docs/user/interface/IconUtils.dox b/docs/user/interface/IconUtils.dox index a4330a3381..fef6ac3c46 100644 --- a/docs/user/interface/IconUtils.dox +++ b/docs/user/interface/IconUtils.dox @@ -36,6 +36,8 @@ older icons in bitmap format. These may still be useful at very small sizes. Note you can't create an instance of BIconUtils, just call the static methods. + + \since Haiku R1 */ @@ -52,6 +54,8 @@ \note If the colorspace is B_CMAP8, B_CMAP8 icons are preferred. In that case, the bitmap size must also match the provided icon_size "size"! + + \since Haiku R1 */ @@ -70,6 +74,8 @@ \note The scale is derived from the bitmap width, the bitmap should have square dimension, or the icon will be cut off at the bottom (or have room left). + + \since Haiku R1 */ @@ -88,6 +94,8 @@ \note The scale is derived from the bitmap width, the bitmap should have square dimension, or the icon will be cut off at the bottom (or have room left). + + \since Haiku R1 */ @@ -101,6 +109,8 @@ either the small icon attribute or the large icon attribute as given in \a smallIconAttrName and \a largeIconAttrName. Which icon is loaded depends on the given \a size. + + \since Haiku R1 */ @@ -113,6 +123,8 @@ BBitmap \a result \note result should be in B_RGBA32 colorspace, and source in B_CMAP8. + + \since Haiku R1 */ @@ -126,6 +138,8 @@ old-style icon. \note result should be in B_CMAP8 colorspace, and source in B_RGBA32. + + \since Haiku R1 */ @@ -133,6 +147,8 @@ \fn static status_t BIconUtils::ConvertFromCMAP8(const uint8* data, uint32 width, uint32 height, uint32 bytesPerRow, BBitmap* result); \brief Convert raw data in B_CMAP8 colorspace to a B_RGBA32 BBitmap. + + \since Haiku R1 */ @@ -140,4 +156,6 @@ \fn static status_t BIconUtils::ConvertToCMAP8(const uint8* data, uint32 width, uint32 height, uint32 bytesPerRow, BBitmap* result); \brief Convert B_RGBA32 raw data into a B_CMAP8 BBitmap. + + \since Haiku R1 */ diff --git a/docs/user/interface/InterfaceDefs.dox b/docs/user/interface/InterfaceDefs.dox index 99f9d456f8..05c10c6e21 100644 --- a/docs/user/interface/InterfaceDefs.dox +++ b/docs/user/interface/InterfaceDefs.dox @@ -16,6 +16,8 @@ \ingroup interface \ingroup libbe \brief Defines standard interface definitions for controls. + + \since BeOS R3 */ @@ -24,6 +26,8 @@ \ingroup interface Collection of flags that determine the border style drawn around a BBox. + + \since BeOS R3 */ @@ -35,6 +39,8 @@ The right and bottom sides of the box are darker than the top and left sides to produce a shadow effect and make the box look like it is raised slightly above the surrounding surface. + + \since BeOS R3 */ @@ -45,6 +51,8 @@ The border is a bevelled to give it a 3D effect. The border is uniform in appearance on all four sides. This is the default appearance. + + \since BeOS R3 */ @@ -52,6 +60,8 @@ \var border_style B_NO_BORDER No border. + + \since BeOS R3 */ @@ -60,6 +70,8 @@ Orientation flag sets the layout to either horizontal or vertical alignment. + + \since BeOS R3 */ @@ -69,11 +81,15 @@ Horizontal alignment */ + \since BeOS R3 + /*! \var orientation B_VERTICAL Vertical alignment + + \since BeOS R3 */ @@ -82,6 +98,8 @@ Collection of flags that determine how wide to draw the buttons in a BAlert dialog. + + \since BeOS R3 */ @@ -89,6 +107,8 @@ \var button_width B_WIDTH_AS_USUAL Set the width of each button based on the standard width. + + \since BeOS R3 */ @@ -96,6 +116,8 @@ \var button_width B_WIDTH_FROM_WIDEST Set the width of each button based on the width of the widest button. + + \since BeOS R3 */ @@ -104,6 +126,8 @@ Set the width of each button to accomidate the width of the button's label. + + \since BeOS R3 */ @@ -114,6 +138,8 @@ \enum join_mode PostScript-style line join modes used by BView::SetLineMode() + + \since BeOS R3 */ @@ -121,6 +147,8 @@ \var join_mode B_ROUND_JOIN Round join mode. + + \since BeOS R3 */ @@ -128,6 +156,8 @@ \var join_mode B_MITER_JOIN Miter join mode. + + \since BeOS R3 */ @@ -135,6 +165,8 @@ \var join_mode B_BEVEL_JOIN Bevel join mode. + + \since BeOS R3 */ @@ -142,12 +174,16 @@ \var join_mode B_BUTT_JOIN Butt join mode. + + \since BeOS R3 */ /*! \var join_mode B_SQUARE_JOIN Square join mode. + + \since BeOS R3 */ @@ -155,6 +191,8 @@ \enum cap_mode PostScript-style line cap modes used by BView::SetLineMode() + + \since BeOS R3 */ @@ -162,6 +200,8 @@ \var cap_mode B_ROUND_CAP Round cap mode. + + \since BeOS R3 */ @@ -169,6 +209,8 @@ \var cap_mode B_BUTT_CAP Butt cap mode. + + \since BeOS R3 */ @@ -176,6 +218,8 @@ \var cap_mode B_SQUARE_CAP Square cap mode. + + \since BeOS R3 */ @@ -183,6 +227,8 @@ \var B_DEFAULT_MITER_LIMIT Default miter limit used to calculate the angle cut off for miter joins. + + \since BeOS R3 */ @@ -218,6 +264,8 @@ - \c B_RIGHT_COMMAND_KEY \returns A bitmap containing each active modifier keys and locks. + + \since BeOS R3 */ @@ -230,6 +278,8 @@ \retval B_OK Everything went fine. \retval B_ERROR There was an error retrieving the key_info struct. + + \since BeOS R3 */ @@ -242,6 +292,8 @@ \param _map A pointer to the system keymap structure. \param _keyBuffer A pointer containing the UTF-8 character encodings. + + \since BeOS R3 */ @@ -251,6 +303,8 @@ \retval B_OK Everything went fine. \retval B_ERROR There was an error retrieving the keyboard id. + + \since BeOS R3 */ @@ -264,6 +318,8 @@ \retval B_OK Everything went fine. \retval B_ERROR There was an error retrieving the modifier key. + + \since BeOS R3 */ @@ -274,6 +330,8 @@ \param modifier The modifier key to set in the system keymap. \param key The key code to set the modifier key to. + + \since BeOS R3 */ @@ -290,4 +348,6 @@ absent will turn the lock off. Pass 0 in to turn off all locks. \param modifiers A bitmap of lock keys to set. + + \since BeOS R3 */ diff --git a/docs/user/interface/Layout.dox b/docs/user/interface/Layout.dox index 53ba0ff4b6..cd118dfcf3 100644 --- a/docs/user/interface/Layout.dox +++ b/docs/user/interface/Layout.dox @@ -28,8 +28,8 @@ \brief The BLayout class provides an interface, and some basic implementation to manage the positioning and sizing of BLayoutItem s. - BLayouts can be attached to a BView, managing the BLayoutItem's and - BView's that reside in that view, or can be nested within another + BLayouts can be attached to a BView, managing the BLayoutItem's and + BView's that reside in that view, or can be nested within another BLayout as a BLayoutItem. Before adding a BLayoutItem to a BLayout, that layout must have a target @@ -39,7 +39,7 @@ target of the layout it's nested in, if it does not have a target already. You can retrieve the target view for a layout with the TargetView() method. When adding a BLayoutItem to a BLayout, the item's view (as returned by - BLayoutItem::View()) is added to the BLayout's target view. + BLayoutItem::View()) is added to the BLayout's target view. \code BView* topView = new BGroupView(); @@ -67,6 +67,8 @@ topLayout->AddItem(nestedLayoutWithView); \warning This class is not yet finalized, if you use it in your software assume that it will break some time in the future. + + \since Haiku R1 */ @@ -75,10 +77,12 @@ topLayout->AddItem(nestedLayoutWithView); \brief Default constructor. After this constructor has finished, this BLayout holds no - BLayoutItem's and does not have a target BView. + BLayoutItem's and does not have a target BView. \warning Because a new BLayout does not have a target BView, calls to the AddItem() and AddView() will fail methods will fail. + + \since Haiku R1 */ @@ -87,24 +91,28 @@ topLayout->AddItem(nestedLayoutWithView); \brief Archive constructor. \param archive The archive message. + + \since Haiku R1 */ /*! \fn BLayout::~BLayout() - \brief Destructor, deletes all BLayoutItem's that this layout manages, - and detaches from this BLayout's owner view if there is one. + \brief Destructor, deletes all BLayoutItem's that this layout manages, + and detaches from this BLayout's owner view if there is one. - Each BLayoutItem's BView (as returned by BLayoutItem::View()) is also + Each BLayoutItem's BView (as returned by BLayoutItem::View()) is also removed from their parent. - \note Because nested BLayout's are treated as BLayoutItem's, + \note Because nested BLayout's are treated as BLayoutItem's, any layouts nested in this BLayout will be deleted. + + \since Haiku R1 */ /*! - \name BView targeting and attachment information. + \name BView Targeting and Attachment Information */ @@ -114,6 +122,8 @@ topLayout->AddItem(nestedLayoutWithView); /*! \fn BView* BLayout::Owner() const \brief Returns the Owner of this layout, i.e. the view this layout manages. + + \since Haiku R1 */ @@ -121,9 +131,11 @@ topLayout->AddItem(nestedLayoutWithView); \fn BView* BLayout::TargetView() const \brief Returns the target view of this layout. - The target view of a layout becomes the parent of any BView's in this - layout, as well as the BView's returned by BLayoutItem::View() for + The target view of a layout becomes the parent of any BView's in this + layout, as well as the BView's returned by BLayoutItem::View() for each BLayoutItem in this layout. + + \since Haiku R1 */ @@ -131,6 +143,8 @@ topLayout->AddItem(nestedLayoutWithView); \fn BView* BLayout::View() \brief Returns the same BView* as BLayout::Owner(), this method is inherited from BLayoutItem. + + \since Haiku R1 */ @@ -138,7 +152,7 @@ topLayout->AddItem(nestedLayoutWithView); /*! - \name Adding, removing, counting and accessing BLayout children + \name Adding, Removing, Counting and Accessing Children */ @@ -149,38 +163,44 @@ topLayout->AddItem(nestedLayoutWithView); \fn BLayoutItem* BLayout::AddView(BView* child) \brief Creates a BLayoutItem to represent a BView, and adds that item to this layout. - - \a child is added to this BLayout's target view. + + \a child is added to this BLayout's target view. \returns The BLayoutItem created to represent \a child is, or \c NULL if there was an error. \param child The BView to be added to this BLayout. + + \since Haiku R1 */ /*! - \fn BLayoutItem* BLayout::AddView(int32 index, BView* child) + \fn BLayoutItem* BLayout::AddView(int32 index, BView* child) \brief Creates a BLayoutItem to represent \a child, and adds that item at - \a index to this layout. \a child is added to this BLayout's target view. + \a index to this layout. \a child is added to this BLayout's target view. + + \since Haiku R1 */ /*! \fn bool BLayout::AddItem(BLayoutItem* item) \brief Adds a BLayoutItem to this layout, and adds the BView it represents - to this BLayout's target view. + to this BLayout's target view. \param item The BLayoutItem to be added. - \retval true success - \retval false failure + + \return \c true if the item was added, \c false otherwise. + + \since Haiku R1 */ /*! \fn bool BLayout::AddItem(int32 index, BLayoutItem* item) \brief Adds \a item to this layout, and adds the BView \a item represents - to this BLayout's target view. + to this BLayout's target view. \param item The BLayoutItem to be added. \param index The index at which to add \c item. @@ -189,27 +209,29 @@ topLayout->AddItem(nestedLayoutWithView); is somewhere between the first and last indices, then items from \a index to the end will be shuffled over by one. - \retval true success - \retval false failure + \return \c true if the item was added, \c false otherwise. + + \since Haiku R1 */ /*! \fn bool BLayout::RemoveView(BView* child) \brief Removes and deletes all BLayoutItem representing a BView from - this layout. + this layout. \param child The BView to be removed. - \retval true success - \retval false failure + \return \c true if the item was removed, \c false otherwise. + + \since Haiku R1 */ /*! \fn bool BLayout::RemoveItem(BLayoutItem* item) - \brief Removes a BLayoutItem from this layout, and also removes the view - it represents from this BLayout's target view. + \brief Removes a BLayoutItem from this layout, and also removes the view + it represents from this BLayout's target view. \param item The BLayoutItem to be removed @@ -218,8 +240,9 @@ topLayout->AddItem(nestedLayoutWithView); \warning \a item->View(), even when it is removed from the target view, is not deleted. If you want it deleted, you must delete it yourself! - \retval true success - \retval false failure + \return \c true if the item was removed, \c false otherwise. + + \since Haiku R1 */ @@ -230,19 +253,25 @@ topLayout->AddItem(nestedLayoutWithView); \see RemoveItem(BLayoutItem*) \returns The BLayoutItem that was removed. + + \since Haiku R1 */ /*! \fn BLayoutItem* BLayout::ItemAt(int32 index) const \brief Get the BLayoutItem at \a index. Returns \c NULL if \a index is - out of bounds. + out of bounds. + + \since Haiku R1 */ /*! \fn int32 BLayout::CountItems() const \brief Get the number of BLayoutItem s in this layout. + + \since Haiku R1 */ @@ -253,6 +282,8 @@ topLayout->AddItem(nestedLayoutWithView); \param item The BLayoutItem whose index you want. \retval -1 \a item was not found in this BLayout. + + \since Haiku R1 */ @@ -263,6 +294,8 @@ topLayout->AddItem(nestedLayoutWithView); \note This finds the index of views added through BLayout::AddView(), not the index of an item which represents \a child that was added through BLayout::AddItem(). + + \since Haiku R1 */ @@ -270,9 +303,10 @@ topLayout->AddItem(nestedLayoutWithView); /*! - \name Subclass helpers. - \brief These methods are meant to ease the development of BLayout - subclasses. + \name Subclass Helpers + + These methods are meant to ease the development of BLayout + subclasses. */ @@ -285,9 +319,11 @@ topLayout->AddItem(nestedLayoutWithView); If a BLayout is connected to a BView, this will always return \c true. If a BLayout is nested in another layout (it was passed to AddItem()), then - this will reflect the visibility of this BLayout's parent layout. If + this will reflect the visibility of this BLayout's parent layout. If any layout is hidden (by BLayout::SetVisible()) between this layout and its - target BView's layout, then this method will return \c false. + target BView's layout, then this method will return \c false. + + \since Haiku R1 */ @@ -296,9 +332,11 @@ topLayout->AddItem(nestedLayoutWithView); \brief Returns the on-screen area this layout has received to lay out its items in. - The return value is in the coordinate space of this BLayout's target + The return value is in the coordinate space of this BLayout's target view. If this BLayout is attached directly to a BView, then LayoutArea().LeftTop() == B_ORIGIN . + + \since Haiku R1 */ @@ -309,6 +347,8 @@ topLayout->AddItem(nestedLayoutWithView); BLayout. \param show \c true to show, \c false to hide. + + \since Haiku R1 */ @@ -316,7 +356,7 @@ topLayout->AddItem(nestedLayoutWithView); /*! - \name Methods triggering or related to laying out this BLayout. + \name Methods Triggering or Related to Laying Out the BLayout */ @@ -330,24 +370,28 @@ topLayout->AddItem(nestedLayoutWithView); If \a immediate is \c false, and there is already a request to have the window this layout resides in re-laid-out, then the layout will happen at that time. If \a immediate is \c true, and there is no such pending - request, nor is this BLayout's parent layout in the process of laying + request, nor is this BLayout's parent layout in the process of laying out its items, then this BLayout will now layout its items. \param immediate Whether or not to Relayout immediately or wait for pending - requests first. + requests first. + + \since Haiku R1 */ /*! \fn void BLayout::LayoutItems(bool force = false) \brief If there is no layout currently ongoing, and \a force is \c false, - creates a new BLayoutContext and calls the DoLayout() method - of this BLayout and any BLayout s nested in this BLayout. + creates a new BLayoutContext and calls the DoLayout() method + of this BLayout and any BLayout's nested in this BLayout. This method also guarantees that the owner view of this layout (as returned by BLayout::Owner()) performs a layout as well (if it is suitable to do so). \param force Force the LayoutItems. + + \since Haiku R1 */ @@ -355,6 +399,8 @@ topLayout->AddItem(nestedLayoutWithView); \fn BLayoutContext* BLayout::LayoutContext() const \brief Returns the BLayoutContext this BLayout is currently operating in, or \c NULL. + + \since Haiku R1 */ @@ -362,7 +408,7 @@ topLayout->AddItem(nestedLayoutWithView); /*! - \name Invalidation and state mutators and accessors. + \name Invalidation and State Mutators and Accessors */ @@ -373,6 +419,8 @@ topLayout->AddItem(nestedLayoutWithView); \fn void BLayout::RequireLayout() \brief Flag this layout as stale, i.e. any cached data may still be valid, but the items need to be repositioned or resized. + + \since Haiku R1 */ @@ -382,7 +430,7 @@ topLayout->AddItem(nestedLayoutWithView); to positioning and sizing of its items. Invalidating a BLayout also invalidates the view it is connected to - (if there is one) and the BLayout this layout (or this BLayout's view) + (if there is one) and the BLayout this layout (or this BLayout's view) resides in. Although this method is virtual, you should not override it, override the @@ -395,13 +443,18 @@ topLayout->AddItem(nestedLayoutWithView); \sa BView::InvalidateLayout(), BLayoutItem::InvalidateLayout(), BLayout::LayoutInvalidated() + + \since Haiku R1 */ + /*! \fn bool BLayout::IsValid() \brief Returns whether this layout has been invalidated (via - BLayout::InvalidateLayout()) and has not yet been validated (by doing a - layout, or by its ResetLayoutInvalidation() method. + BLayout::InvalidateLayout()) and has not yet been validated + (by doing a layout, or by its ResetLayoutInvalidation() method. + + \since Haiku R1 */ @@ -409,21 +462,27 @@ topLayout->AddItem(nestedLayoutWithView); \fn void BLayout::EnableLayoutInvalidation() \brief Re-enable layout invalidation after a call to DisableLayoutInvalidation(). + + \since Haiku R1 */ /*! \fn void BLayout::DisableLayoutInvalidation() \brief Disable layout invalidation notifications, i.e. calls to - this object's InvalidateLayout() method. + this object's InvalidateLayout() method. + + \since Haiku R1 */ /*! \fn void BLayout::ResetLayoutInvalidation() \brief Reset layout invalidation, causing InvalidateLayout calls to proceed - again. This method should be called once any cached data has been - validated, or updated to valid values. + again. This method should be called once any cached data has been + validated, or updated to valid values. + + \since Haiku R1 */ @@ -431,9 +490,12 @@ topLayout->AddItem(nestedLayoutWithView); /*! - \name Archiving methods - \brief These methods relate to the archiving or unarchiving of this object - and the BLayoutItem's it contains + \name Archiving + + These methods relate to the archiving or unarchiving of this object + and the BLayoutItem's it contains + + \since Haiku R1 */ @@ -443,14 +505,18 @@ topLayout->AddItem(nestedLayoutWithView); /*! \fn status_t BLayout::Archive(BMessage* archive, bool deep = true) const \brief Archives this layout into \a archive. If deep is true, also archives - the items in this layout, calling ItemArchived() for each one. + the items in this layout, calling ItemArchived() for each one. + + \since Haiku R1 */ /*! \fn status_t BLayout::AllUnarchived(const BMessage* from) - \brief Unarchives the BLayoutItem's for this layout, calling - ItemUnarchived() for each one. + \brief Unarchives the BLayoutItem's for this layout, calling + ItemUnarchived() for each one. + + \since Haiku R1 */ @@ -458,10 +524,12 @@ topLayout->AddItem(nestedLayoutWithView); \fn status_t BLayout::ItemArchived(BMessage* into, BLayoutItem* item, int32 index) const \brief Hook for derived classes to add data specific to \a item to the - \a into BMessage. \a item resides at \a index. + \a into BMessage. \a item resides at \a index. \note The same archive is passed to BLayout::ItemArchived() for all items, so any data added for each item will be stored in an array. + + \since Haiku R1 */ @@ -472,8 +540,11 @@ topLayout->AddItem(nestedLayoutWithView); the \a from BMessage. \a item resides at \a index. \note The same archive is passed to BLayout::ItemArchived() for all items, - so any data added for each item will be stored in an array. You should pass - \a index to the BMessage methods you will be using in this method. + so any data added for each item will be stored in an array. You + should pass \a index to the BMessage methods you will be using in + this method. + + \since Haiku R1 */ @@ -481,7 +552,7 @@ topLayout->AddItem(nestedLayoutWithView); /*! - \name BLayout Hook methods + \name Hook Methods */ @@ -495,11 +566,12 @@ topLayout->AddItem(nestedLayoutWithView); \param item The BLayoutItem that is being added. \param atIndex The index of the BLayoutItem. - \retval true success - \retval false failure, \a item will not be added. + \return \c true on succcess, false if \a item will not be added. \note This is a good time to allocate data for a BLayoutItem and attach it to \a item via BLayoutItem::SetLayoutData(). + + \since Haiku R1 */ @@ -517,6 +589,8 @@ topLayout->AddItem(nestedLayoutWithView); \note This is a good time to delete the data you've attached to \a item via BLayoutItem::SetLayoutData(). + + \since Haiku R1 */ @@ -524,6 +598,8 @@ topLayout->AddItem(nestedLayoutWithView); \fn void BLayout::DoLayout() = 0 \brief Implemented by derived classes to position and resize the items in this layout. + + \since Haiku R1 */ @@ -534,6 +610,8 @@ topLayout->AddItem(nestedLayoutWithView); to clear any caches your object might hold. \param children Whether or not child layouts have also been invalidated. + + \since Haiku R1 */ @@ -542,33 +620,41 @@ topLayout->AddItem(nestedLayoutWithView); \brief Hook method called when this layout is attached to a BView. \param was The previous owner of this BLayout, for new BLayout s, this - will be \c NULL. + will be \c NULL. + + \since Haiku R1 */ /*! \fn void BLayout::AttachedToLayout() \brief Hook method inherited from BLayoutItem, classes derived from - BLayout must include the BLayout version of this method in their - implementation. + BLayout must include the BLayout version of this method in their + implementation. + + \since Haiku R1 */ /*! \fn void BLayout::DetachedFromLayout(BLayout* layout) \brief Hook method inherited from BLayoutItem, classes derived from - BLayout must include the BLayout version of this method in their - implementation. + BLayout must include the BLayout version of this method in their + implementation. \param layout The BLayout that this BLayout was detached from. + + \since Haiku R1 */ /*! \fn void BLayout::AncestorVisibilityChanged(bool shown) \brief Hook method inherited from BLayoutItem, classes derived from - BLayout must include the BLayout version of this method in their - implementation. + BLayout must include the BLayout version of this method in their + implementation. + + \since Haiku R1 */ diff --git a/docs/user/interface/LayoutBuilder.Group.dox b/docs/user/interface/LayoutBuilder.Group.dox index 810fa0dbb5..1876bdea02 100644 --- a/docs/user/interface/LayoutBuilder.Group.dox +++ b/docs/user/interface/LayoutBuilder.Group.dox @@ -18,6 +18,8 @@ \ingroup layout \ingroup libbe \brief Provides the BLayoutBuilder::Group<> class. + + \since Haiku R1 */ @@ -27,30 +29,40 @@ \ingroup layout \ingroup libbe \brief BLayoutBuilder::Base subclass for building BGroupLayouts. + + \since Haiku R1 */ /*! \typedef BLayoutBuilder::Group::GroupBuilder \brief Shorthand for builders returned by this builder's AddGroup() methods. + + \since Haiku R1 */ /*! \typedef BLayoutBuilder::Group::GridBuilder \brief Shorthand for builders returned by this builder's AddGrid() methods. + + \since Haiku R1 */ /*! \typedef BLayoutBuilder::Group::SplitBuilder \brief Shorthand for builders returned by this builder's AddSplit() methods. + + \since Haiku R1 */ /*! \typedef BLayoutBuilder::Group::ThisBuilder \brief Shorthand representing the type of \c this. + + \since Haiku R1 */ @@ -68,10 +80,12 @@ \brief Creates a new BGroupLayout, and attaches it to a BWindow. \note The top BView* in \a window has its ViewColor set to - B_PANEL_BACKGROUND_COLOR. + \c B_PANEL_BACKGROUND_COLOR. \param window Thew BWindow* to attach the newly created BGroupLayout to. \param orientation The orientation for the new BGroupLayout. \param spacing The spacing for the new BGroupLayout. + + \since Haiku R1 */ @@ -80,7 +94,10 @@ \brief Creates a builder targeting a BGroupLayout. Methods called on this builder will be directed to \a layout. + \param layout The BGroupLayout to target with this builder. + + \since Haiku R1 */ @@ -92,6 +109,8 @@ \c view->GroupLayout(). \param view The BGroupView this builder will target. + + \since Haiku R1 */ @@ -105,6 +124,8 @@ \param orientation The orientation for the new BGroupView. \param spacing The spacing for the new BGroupView. + + \since Haiku R1 */ @@ -124,6 +145,8 @@ \param view The BView to be added. \see BGroupLayout::AddView(BView*) + + \since Haiku R1 */ @@ -134,7 +157,10 @@ \param view The BView to be added. \param weight The weight to give \a view. + \see BGroupLayout::AddView(BView* view, float weight) + + \since Haiku R1 */ @@ -144,7 +170,10 @@ \brief Add a BLayoutItem to the BGroupLayout this builder represents. \param item The BLayoutItem to be added. + \see BGroupLayout::AddItem(BLayoutItem*) + + \since Haiku R1 */ @@ -156,6 +185,8 @@ \param item The BLayoutItem to be added. \param weight The weight to give \a item. \see BGroupLayout::AddItem(BLayoutItem* item, float weight) + + \since Haiku R1 */ @@ -163,8 +194,9 @@ /*! - \name Adding BLayouts and their BView pairs - \brief A set of methods that add a BLayout or BView subclass and return a + \name Adding BLayouts and their BView Pairs + + A set of methods that add a BLayout or BView subclass and return a BLayoutBuilder::Base subclass representing the newly added object. These methods push a new builder on top of the stack, you will not be using \c this builder again until you call End(). @@ -178,14 +210,16 @@ \fn GroupBuilder BLayoutBuilder::Group::AddGroup( orientation orientation, float spacing, float weight) \brief Construct and add a viewless BGroupLayout, then return a GroupBuilder - representing the newly added layout. + representing the newly added layout. \param orientation The orientation to use for the new BGroupLayout. \param spacing The spacing to use for the new BGroupLayout. \param weight The weight for the new BGroupLayout in the BGroupLayout this - builder represents. + builder represents. \returns A GroupBuilder representing the newly created BGroupLayout. + + \since Haiku R1 */ @@ -193,25 +227,31 @@ \fn GroupBuilder BLayoutBuilder::Group::AddGroup(BGroupView* groupView, float weight) \brief Add BGroupView and return a builder representing the newly added - BGroupView. + BGroupView. \param groupView The BGroupView to be added. \param weight The weight for \a groupView in the BGroupLayout this builder - represents. + represents. + \returns A GroupBuilder representing \a groupView. + + \since Haiku R1 */ /*! \fn GroupBuilder BLayoutBuilder::Group::AddGroup( BGroupLayout* groupLayout, float weight) - \brief Add a BGroupLayout and return a builder representing - the newly added BGroupLayout. + \brief Add a BGroupLayout and return a builder representing the newly added + BGroupLayout. \param groupLayout The BGroupLayout to be added. \param weight The weight for \a groupLayout in the BGroupLayout this builder represents. + \returns A GroupBuilder representing \a groupLayout. + + \since Haiku R1 */ @@ -220,35 +260,39 @@ float horizontalSpacing = 0.0f, float verticalSpacing = 0.0f, float weight = 1.0f) \brief Create and add a viewless BGridLayout, then return a builder - representing the newly created BGridLayout. + representing the newly created BGridLayout. \param horizontalSpacing The horizontal spacing for the new BGridLayout. \param verticalSpacing The vertical spacing for the new BGridLayout. \param weight The weight for the new BGroupLayout in the BGroupLayout this builder represents. + \returns A GridBuilder representing the newly created BGridLayout. + + \since Haiku R1 */ /*! \fn GridBuilder BLayoutBuilder::Group::AddGrid( BGridLayout* gridLayout, float weight = 1.0f) - \brief Add a BGridLayout, then return a builder the newly added - BGridLayout. + \brief Add a BGridLayout, then return a builder the newly added BGridLayout. \param gridLayout The BGridLayout to be added and used to construct the returned GridBuilder. \param weight The weight for \a groupLayout in the BGroupLayout this builder represents. + \returns a GridBuilder representing \a gridLayout. + + \since Haiku R1 */ /*! \fn GridBuilder BLayoutBuilder::Group::AddGrid( BGridView* gridView, float weight = 1.0f) - \brief Add a BGridView, then return a builder the newly added - BGridView. + \brief Add a BGridView, then return a builder the newly added BGridView. \param gridView The BGridView to be added and used to construct the returned GridBuilder. @@ -256,13 +300,14 @@ represents. \returns a GridBuilder representing \a gridView. + + \since Haiku R1 */ /*! \fn SplitBuilder BLayoutBuilder::Group::AddSplit( orientation orientation, float spacing, float weight) - \brief Create and add a new BSplitView with a weight of \c weight, then return a SplitBuilder representing the new BSplitView. @@ -271,6 +316,8 @@ \param weight The weight, in this BGroupLayout for the new BSplitView. \returns a SplitBuilder representing the new BSplitView. + + \since Haiku R1 */ @@ -283,6 +330,8 @@ \param splitView The BSplitView to be added. \param weight The weight of the BSplitView in the BGroupLayout this builder represents. + + \since Haiku R1 */ @@ -291,6 +340,7 @@ /*! \name Adding BSpaceLayoutItems + Some convenience methods for adding special BSpaceLayoutItems. */ @@ -306,18 +356,22 @@ \param weight The weight of the BSpaceLayoutItem in the BGroupLayout this builder represents + + \since Haiku R1 */ /*! \fn ThisBuilder& BLayoutBuilder::Group::AddStrut(float size) \brief Add a BSpaceLayoutItem created by - BSpaceLayoutItem::CreateHorizontalStrut() or - BSpaceLayoutItem::CreateVerticalStrut() to the BGroupLayout this builder - represents. + BSpaceLayoutItem::CreateHorizontalStrut() or + BSpaceLayoutItem::CreateVerticalStrut() to the BGroupLayout + this builder represents. \param size The width or height of the strut to be created (depending on the orientation of the BGroupLayout this builder represents). + + \since Haiku R1 */ @@ -329,6 +383,8 @@ float top, float right, float bottom) \brief Call the BTwoDimensionalLayout::SetInsets() method on the BGroupLayout this builder represents. + + \since Haiku R1 */ @@ -343,12 +399,16 @@ /*! \fn BGroupLayout* BLayoutBuilder::Group::Layout() const \brief Get the BGroupLayout this builder represents. + + \since Haiku R1 */ /*! \fn BView* BLayoutBuilder::Group::View() const \brief Get the BView this builder's BGroupLayout is attached to. + + \since Haiku R1 */ @@ -356,21 +416,30 @@ \fn ThisBuilder& BLayoutBuilder::Group::GetLayout( BGroupLayout** _layout) \brief Get the BGroupLayout this builder represents. + \param[out] _layout The BGroupLayout this builder represents. + + \since Haiku R1 */ /*! \fn ThisBuilder& BLayoutBuilder::Group::GetView( - BView** _view) + BView** _view) \brief Get the BView this builder's BGroupLayout is attached to. + \param[out] _view The BView this builder's BGroupLayout is attached to. + + \since Haiku R1 */ /*! \fn BLayoutBuilder::Group::operator BGroupLayout*() \brief Cast this builder into the BGroupLayout it represents. + + \since Haiku R1 */ + //!@} diff --git a/docs/user/interface/LayoutBuilder.dox b/docs/user/interface/LayoutBuilder.dox index 8e56989416..265b7c7429 100644 --- a/docs/user/interface/LayoutBuilder.dox +++ b/docs/user/interface/LayoutBuilder.dox @@ -89,20 +89,26 @@ BLayoutBuilder::Group<>(B_HORIZONTAL) .End() // back to the Group<>::GridBuilder \endcode + + \since Haiku R1 */ /*! \fn void BLayoutBuilder::Base::SetParent(ParentBuilder* parent) - Internal method for use by BLayoutBuilder::Base subclasses, this is - essential to the builder stack semantics + \brief Internal method for use by BLayoutBuilder::Base subclasses, + this is essential to the builder stack semantics. + + \since Haiku R1 */ /*! \fn ParentBuilder& BLayoutBuilder::Base::End() \brief Returns this builder's parent. + + \since Haiku R1 */ diff --git a/docs/user/interface/LayoutItem.dox b/docs/user/interface/LayoutItem.dox index 5d56d7c2b4..6c85de1727 100644 --- a/docs/user/interface/LayoutItem.dox +++ b/docs/user/interface/LayoutItem.dox @@ -34,6 +34,8 @@ \warning This class is not yet finalized, if you use it in your software assume that it will break some time in the future. + + \since Haiku R1 */ @@ -42,12 +44,16 @@ \brief Archive constructor. Creates a BLayoutItem from the \a archive message. + + \since Haiku R1 */ /*! \fn BLayout* BLayoutItem::Layout() const \brief Returns the BLayout this BLayoutItem resides in. + + \since Haiku R1 */ @@ -56,11 +62,13 @@ \brief Destructor method. Standard Destructor. + + \since Haiku R1 */ /*! - \name Reporting size and alignment constraints to a BLayout + \name Reporting Size and Alignment Constraints to a BLayout */ @@ -70,18 +78,24 @@ /*! \fn BSize BLayoutItem::MinSize() = 0 \brief Returns the minimum desirable size for this item. + + \since Haiku R1 */ /*! \fn BSize BLayoutItem::MaxSize() = 0 \brief Returns the maximum desirable size for this item. + + \since Haiku R1 */ /*! \fn BSize BLayoutItem::PreferredSize() = 0 \brief Returns the preferred size for this item. + + \since Haiku R1 */ @@ -94,6 +108,8 @@ for example, although each item recieves the same horizontal area, each item can use that area differently, aligning to the left, right or center for example. + + \since Haiku R1 */ @@ -103,6 +119,8 @@ dependent on its width. \note By default, this method returns \c false. + + \since Haiku R1 */ @@ -117,6 +135,8 @@ \note It is prudent to compare \a min, \a max, \a preferred to \c NULL before dereferencing them. + + \since Haiku R1 */ @@ -124,7 +144,7 @@ /*! - \name Overriding size constraints and alignment. + \name Overriding Size and Alignment Constraints Although the explicit constraints placed on an item are not enforced by the BLayoutItem class, all Haiku BLayoutItem subclasses will use the @@ -132,6 +152,8 @@ 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. + + \since Haiku R1 */ @@ -141,12 +163,16 @@ /*! \fn void BLayoutItem::SetExplicitMinSize(BSize size) = 0 \brief Set this item's explicit min size, to be used in MinSize(). + + \since Haiku R1 */ /*! \fn void BLayoutItem::SetExplicitMaxSize(BSize size) = 0 \brief Set this item's explicit max size, to be used in MaxSize(). + + \since Haiku R1 */ @@ -154,12 +180,16 @@ \fn void BLayoutItem::SetExplicitPreferredSize(BSize size) = 0 \brief Set this item's explicit preferred size, to be used in PreferredSize(). + + \since Haiku R1 */ /*! \fn void BLayoutItem::SetExplicitAlignment(BAlignment alignment) = 0 \brief Set this item's explicit alignment, to be used in Alignment(). + + \since Haiku R1 */ @@ -167,7 +197,7 @@ /*! - \name Getting and setting the visiblity of a BLayoutItem. + \name Getting/Setting the Visibility of a BLayoutItem These methods take into account only the local visibility of this item, not the visibility of its ancestors. \n @@ -185,12 +215,16 @@ A simple implementation would return the last thing passed to SetVisible(). A more complex implementation may deal with a BView that could be hidden in any number of ways. + + \since Haiku R1 */ /*! \fn void BLayoutItem::SetVisible(bool visible) = 0 \brief Set the local visibility of this item. + + \since Haiku R1 */ @@ -198,7 +232,7 @@ /*! - \name Getting and setting the current on-screen positioning of a BLayoutItem. + \name Getting/Setting Current On-Screen Positioning of a BLayoutItem */ @@ -208,7 +242,9 @@ /*! \fn void BLayoutItem::AlignInFrame(BRect frame) \brief Position this BLayoutItem within \a frame, given the value returned - by Alignment(), and the size constraints for this item. + by Alignment(), and the size constraints for this item. + + \since Haiku R1 */ @@ -218,6 +254,8 @@ The returned BRect is in the coordinate system of the target view of the BLayout this item belongs to. + + \since Haiku R1 */ @@ -226,7 +264,9 @@ \brief Set the bounding frame of this item. \a frame is in the coordinate system of the target view of the BLayout - that this item belongs to. + that this item belongs to. + + \since Haiku R1 */ @@ -236,17 +276,19 @@ /*! \fn BView* BLayoutItem::View() \brief Return the BView this item is representing, or \c NULL if it does not - represent any view. + 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. + + \since Haiku R1 */ /*! - \name Layout events and requests. + \name Layout Events and Requests - \brief These methods represent events or requests originating from a + These methods represent events or requests originating from a BLayout. In some implementations they may be handled directly by this BLayoutItem, but many implementations will forward these events to another object. @@ -259,7 +301,6 @@ /*! \fn void BLayoutItem::InvalidateLayout(bool children = false) \brief Invalidate the layout of this item, or the object it represents. - \param children Whether or not to invalidate children of this object. Although this method is virtual, you should not override it in your classes, override LayoutInvalidated() instead. This method will take care of calling @@ -267,6 +308,10 @@ there is an object that is somehow connected to this one by means other than the standard mechanisms provided by the Haiku API, you should use the LayoutInvalidated() hook to do this. + + \param children Whether or not to invalidate children of this object. + + \since Haiku R1 */ @@ -279,6 +324,8 @@ most cases. Assuming \c this->View() doesn't return \c NULL, the default implementation calls Relayout() or Layout() on the value returned by View(). + + \since Haiku R1 */ @@ -286,9 +333,10 @@ /*! - \name Utility methods for BLayout subclasses - \brief Utility methods for the BLayout class to attach and retrieve - arbitrary data for a BLayoutItem. + \name Utility Methods for BLayout Subclasses + + Utility methods for the BLayout class to attach and retrieve + arbitrary data for a BLayoutItem. */ @@ -300,6 +348,8 @@ \brief Retrieve arbitrary data attached to this BLayoutItem. \note This method should only be called by a BLayout subclass. + + \since Haiku R1 */ @@ -308,6 +358,8 @@ \brief Attach arbitrary data to this BLayoutItem. \note This method should only be called by a BLayout subclass. + + \since Haiku R1 */ @@ -332,35 +384,41 @@ If \a children is \c true, then you should invalidate any information on child objects as well, and propagate the invalidation to them. + + \since Haiku R1 */ /*! \fn void BLayoutItem::AttachedToLayout() \brief Hook called when this object is attached to a BLayout (via - BLayout::AddItem()) + BLayout::AddItem()) \note You can find the BLayout you've been attached to with the Layout() - method. + method. + + \since Haiku R1 */ /*! \fn void BLayoutItem::DetachedFromLayout(BLayout* layout) \brief Hook called when this object is attached to a BLayout (via - BLayout::RemoveItem()) + BLayout::RemoveItem()) \warning You should not use this hook to reattach \c this to \a BLayout, - doing so will cause undefined behaviour (probably a crash). + doing so will cause undefined behaviour (probably a crash). \param layout The BLayout you were previously attached to. + + \since Haiku R1 */ /*! \fn void BLayoutItem::AncestorVisibilityChanged(bool shown) \brief Hook called when this BLayoutItem's ancestors change visibility, - effectively hiding or showing this item. + effectively hiding or showing this item. Implementations of this method should alter the onscreen visibility of this item. I.E. if \a shown is \c false, nothing should be drawn to represent @@ -370,6 +428,8 @@ IsVisible() method. \param shown \c true to show, \c false to hide. + + \since Haiku R1 */ diff --git a/docs/user/interface/ListItem.dox b/docs/user/interface/ListItem.dox index 4f0a9ba9ed..23f280bf55 100644 --- a/docs/user/interface/ListItem.dox +++ b/docs/user/interface/ListItem.dox @@ -24,6 +24,8 @@ \ingroup interface \ingroup libbe \brief A list item, a member of a BListView or BOutlineListView. + + \since BeOS R3 */ @@ -38,6 +40,8 @@ \param expanded Whether or not the item is expanded. \see BOutlineListView::AddItem() + + \since BeOS R3 */ @@ -46,6 +50,8 @@ \brief Create a new list item from archived message. \param data The message to create the list item from. + + \since BeOS R3 */ @@ -54,15 +60,27 @@ \brief Destroy the list item freeing any memory used. The default destructor is empty. + + \since BeOS R3 */ +/*! + \name Archiving +*/ + + +//! @{ + + /*! \fn status_t BListItem::Archive(BMessage* archive, bool deep) const \brief Archive the list item to a message. \param archive The message to archive the list item to. \param deep If \c true also archive child views. + + \since BeOS R3 */ @@ -74,14 +92,21 @@ \param frame The frame of the item. \param complete Whether or not to draw the background in addition to the item's contents. + + \since BeOS R3 */ +//! @} + + /*! \fn float BListItem::Height() const \brief Return the height of the list item. \return The height of the list item as a float. + + \since BeOS R3 */ @@ -90,6 +115,8 @@ \brief Return the width of the list item. \return The width of the list item as a float. + + \since BeOS R3 */ @@ -98,18 +125,24 @@ \brief Return whether or not the list item is currently selected. \return \c true if the list item is selected, \c false otherwise. + + \since BeOS R3 */ /*! \fn void BListItem::Select() \brief Select the list item. + + \since BeOS R3 */ /*! \fn void BListItem::Deselect() \brief Unselect the list item. + + \since BeOS R3 */ @@ -118,6 +151,8 @@ \brief Enable or disable the list item. \param on Set \c true to enable, \c false to disable the list item. + + \since BeOS R3 */ @@ -126,6 +161,8 @@ \brief Returns whether or not the list item is currently enabled. \return \c true if the list item is enabled, \c false if it is disabled. + + \since BeOS R3 */ @@ -134,6 +171,8 @@ \brief Set the height of the list item to \a height. \param height The height to set the list item to. + + \since BeOS R3 */ @@ -142,6 +181,8 @@ \brief Set the width of the list item to \a width. \param width The width to set the list item to. + + \since BeOS R3 */ @@ -156,6 +197,8 @@ \param owner The list item's new \a owner. \param font The font set to the list item's current \a owner. + + \since BeOS R3 */ @@ -167,6 +210,8 @@ \param arg A pointer to some data to perform on. \return A status code. + + \since Haiku R1 */ @@ -177,6 +222,8 @@ \param expanded \c true to expand the list item, \c false to un-expand the list item. + + \since BeOS R3 */ @@ -185,6 +232,8 @@ \brief Returns whether or not the list item is currently expanded. \return \c true if the list item is expanded, \c false if it is not expanded. + + \since BeOS R3 */ @@ -194,6 +243,8 @@ sense if the list item is part of a BOutlineListView. \return The current outline level of the list item. + + \since BeOS R3 */ @@ -202,4 +253,6 @@ \brief Set the outline level of the list item. \param level The outline level to set the list item to. + + \since BeOS R3 */ diff --git a/docs/user/interface/ListView.dox b/docs/user/interface/ListView.dox index 626347db20..6d9090a52f 100644 --- a/docs/user/interface/ListView.dox +++ b/docs/user/interface/ListView.dox @@ -1,5 +1,5 @@ /* - * Copyright 2013 Haiku, Inc. All rights reserved. + * Copyright 2014 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: @@ -65,6 +65,8 @@ \see BList in the Support Kit. \see BOutlineListView \see BListItem + + \since BeOS R3 */ @@ -79,6 +81,8 @@ selections. \param resizingMode The resizing mode flags. See BView for details. \param flags The view flags. See BView for details. + + \since BeOS R3 */ @@ -92,6 +96,8 @@ \param type Whether the list view supports a single selection or multiple selections. \param flags The view flags. See BView for details. + + \since Haiku R1 */ @@ -101,6 +107,8 @@ \param type Whether the list view supports a single selection or multiple selections. + + \since Haiku R1 */ @@ -109,6 +117,8 @@ \brief Creates a BListView object from the \a archive message. \param archive The message to create the object from. + + \since BeOS R3 */ @@ -117,6 +127,8 @@ \brief Delete the BListView object and free the memory used by it. This method does not free the attached list items. + + \since BeOS R3 */ @@ -132,16 +144,15 @@ \fn BArchivable* BListView::Instantiate(BMessage* archive) \brief Create a new BListView object from the message \a archive. - \param archive The message to create the object from. + \copydetails BView::Instantiate() */ /*! - \fn status_t BListView::Archive(BMessage* archive, bool deep) const + \fn status_t BListView::Archive(BMessage* data, bool deep) const \brief Archive the BListView object to a message. - \param archive The message to archive the object to. - \param deep \c true to archive child views. + \copydetails BView::Archive() */ @@ -149,7 +160,7 @@ /*! - \name Hook methods + \name Hook Methods */ @@ -165,6 +176,8 @@ \param updateRect The rectangular area to draw. \see BView::Draw() + + \since BeOS R3 */ @@ -172,7 +185,7 @@ \fn void BListView::AttachedToWindow() \brief Hook method called when the list view is added to the view hierarchy. - \see BView::AttachedToWindow() + \copydetails BView::AttachedToWindow() */ @@ -181,7 +194,7 @@ \brief Hook method that is called when the list view is removed from the view hierarchy. - \see BView::DetachedFromWindow() + \copydetails BView::DetachedFromWindow() */ @@ -189,7 +202,7 @@ \fn void BListView::AllAttached() \brief Hook method called once all views are attached to the view. - \see BView::AllAttached() + \copydetails BView::AllAttached() */ @@ -197,46 +210,42 @@ \fn void BListView::AllDetached() \brief Hook method called once all views are detached from the view. - \see BView::AllDetached() + \copydetails BView::AllDetached() */ /*! - \fn void BListView::FrameResized(float width, float height) + \fn void BListView::FrameResized(float newWidth, float newHeight) \brief Hook method called when the list view is resized. - \param width The new \a width of the list view. - \param height The new \a height of the list view. - - \see BView::FrameResized() + \copydetails BView::FrameResized() */ /*! - \fn void BListView::FrameMoved(BPoint new_position) + \fn void BListView::FrameMoved(BPoint newPosition) \brief Hook method called when the list view is moved. - \param new_position The list view's new position. + \copydetails BView::FrameMoved() */ /*! - \fn void BListView::TargetedByScrollView(BScrollView *view) + \fn void BListView::TargetedByScrollView(BScrollView* view) \brief Hook method called when the list view is attached to a BScrollView. \param view The BScrollView the list view is attached to. + + \since BeOS R3 */ /*! - \fn void BListView::WindowActivated(bool state) + \fn void BListView::WindowActivated(bool active) \brief Hook method that is called when the window becomes the active window or gives up that status. - \param state If \c true, window has just been activated. If \c false the - window has just been deactivated. - - \see BView::WindowActivated() + \copydetails BView::WindowActivated() */ @@ -244,9 +253,7 @@ \fn void BListView::MessageReceived(BMessage* message) \brief Hook method called when a message is received by the list view. - \param message The message received by the list view. - - \see BView::MessageReceived() + \copydetails BView::MessageReceived() */ @@ -270,6 +277,8 @@ \param numBytes The size of \a bytes. \see BView::KeyDown() + + \since BeOS R3 */ @@ -285,6 +294,8 @@ \param point The \a point where the mouse button was pushed down. \see BView::MouseDown() + + \since BeOS R3 */ @@ -296,6 +307,8 @@ \param where The location that the mouse button was released. \see BView::MouseUp() + + \since BeOS R3 */ @@ -310,6 +323,8 @@ \param dragMessage A message containing drag and drop information. \see BView::MouseMoved() + + \since BeOS R3 */ @@ -329,6 +344,8 @@ \returns \c true if a drag & drop operation was initiated, \c false otherwise. + + \since BeOS R3 */ @@ -338,6 +355,8 @@ This method should be implemented by derived classes, the default implementation does nothing. + + \since BeOS R3 */ @@ -345,7 +364,7 @@ /*! - \name Resize methods + \name Resizing */ @@ -357,6 +376,8 @@ \brief Resize the view to it's preferred size. \see BView::ResizeToPreferred() + + \since BeOS R3 */ @@ -369,6 +390,8 @@ \param _height The list view's preferred height is written to \a _height. \see BView::GetPreferredSize() + + \since BeOS R3 */ @@ -379,6 +402,8 @@ \return The minimum size of the list view as a BSize. \see BView::MinSize() + + \since Haiku R1 */ @@ -389,6 +414,8 @@ \return The maximum size of the list view as a BSize. \see BView::MaxSize() + + \since Haiku R1 */ @@ -399,6 +426,8 @@ \return The preferred size of the list view as a BSize. \see BView::PreferredSize() + + \since Haiku R1 */ @@ -413,6 +442,8 @@ \param focused \c true to receive focus or \c false to lose it. \see BView::MakeFocus() + + \since BeOS R3 */ @@ -425,6 +456,8 @@ \param mask A \a mask indicating which properties of \a font to set. \see BView::SetFont() + + \since BeOS R3 */ @@ -435,11 +468,13 @@ \param point The location to scroll the list view to. \see BView::ScrollTo() + + \since BeOS R3 */ /*! - \name Add and remove item methods + \name Adding/Removing Items */ @@ -455,6 +490,8 @@ specified the item is added to the end. \return \c true if the list item was added, \c false otherwise. + + \since BeOS R3 */ @@ -468,6 +505,8 @@ \a list is added to the end. \return \c true if the \a list was added, \c false otherwise. + + \since BeOS R3 */ @@ -478,6 +517,8 @@ \param list The \a list of list items to add. \return \c true if the \a list was added, \c false otherwise. + + \since BeOS R3 */ @@ -488,6 +529,8 @@ \param index The \a index of the item to remove. \return \c true if the item was removed, \c false otherwise. + + \since BeOS R3 */ @@ -498,6 +541,8 @@ \param item The list item to remove. \return \c true if the \a item was removed, \c false otherwise. + + \since BeOS R3 */ @@ -509,6 +554,8 @@ \param count The number of items past \a index to remove. return \c true if the \a items were removed, \c false otherwise. + + \since BeOS R3 */ @@ -516,7 +563,7 @@ /*! - \name Selection and Invocation message methods + \name Selection and Invocation Message Methods */ @@ -529,6 +576,8 @@ is selected. \param message The selection \a message to set. + + \since BeOS R3 */ @@ -539,6 +588,8 @@ \param message The invocation \a message to set. \see BInvoker::SetMessage() + + \since BeOS R3 */ @@ -549,6 +600,8 @@ \return The current invocation method as a BMessage. \see BInvoker::Message() + + \since BeOS R3 */ @@ -559,6 +612,8 @@ \returns The what parameter of the currently set invocation method. \see BInvoker::Command() + + \since BeOS R3 */ @@ -567,6 +622,8 @@ \brief Returns the message that is send when an item is selected. \return The current selection message as a BMessage. + + \since BeOS R3 */ @@ -576,6 +633,8 @@ selected. \return The what parameter of the current selection message. + + \since BeOS R3 */ @@ -583,7 +642,7 @@ /*! - \name List type methods + \name List Type Methods */ @@ -594,6 +653,8 @@ \fn void BListView::SetListType(list_view_type type) \brief Sets the list view \a type. + + \since BeOS R3 \param type The list view \a type to set. */ @@ -603,6 +664,8 @@ \brief Returns the current list view type. \return The list view type. + + \since BeOS R3 */ @@ -610,7 +673,7 @@ /*! - \name List methods + \name List Methods */ @@ -624,6 +687,8 @@ \param index \return The list item at the specified \a index. + + \since BeOS R3 */ @@ -634,6 +699,8 @@ \param item The list item to get the index of. \return The index of the specified \a item. + + \since BeOS R3 */ @@ -644,6 +711,8 @@ \param point The location of the list item to get the index of. \return The index of the list item at the specified \a point. + + \since BeOS R3 */ @@ -652,6 +721,8 @@ \brief Returns a pointer to the first list item. \return A pointer to the first item in the list or \c NULL there are no items. + + \since BeOS R3 */ @@ -660,6 +731,8 @@ \brief Returns a pointer to the last list item. \return A pointer to the last item in the list or \c NULL there are no items. + + \since BeOS R3 */ @@ -670,6 +743,8 @@ \param item The list item to check. \return \c true if \a item is in the list, \c false otherwise. + + \since BeOS R3 */ @@ -678,12 +753,16 @@ \brief Returns the number of items contained in the list view. \return The number of items. + + \since BeOS R3 */ /*! \fn void BListView::MakeEmpty() \brief Empties the list view of all items. + + \since BeOS R3 */ @@ -692,6 +771,8 @@ \brief Returns whether or not the list view is empty. \return \c true if the list view is empty, \c false otherwise. + + \since BeOS R3 */ @@ -707,6 +788,8 @@ The first argument of \a func is a pointer to the list item. \param func The function to call on each item. + + \since BeOS R3 */ @@ -725,6 +808,8 @@ \param func The function to call on each item. \param arg The second argument of the function. + + \since BeOS R3 */ @@ -733,6 +818,8 @@ \brief Returns a pointer to the list of list items. \returns a pointer to the list of list items. + + \since BeOS R3 */ @@ -744,11 +831,13 @@ \brief Draws the list item at the specified \a index. \param index The \a index of the list item to draw. + + \since Haiku R1 */ /*! - \name Selection methods + \name Selection */ @@ -758,6 +847,8 @@ /*! \fn void BListView::ScrollToSelection() \brief Scrolls to selected list item. + + \since BeOS R3 */ @@ -767,6 +858,8 @@ \param index The \a index of the item to select. \param extend Whether or not to also select child items. + + \since BeOS R3 */ @@ -777,6 +870,8 @@ \param start The index of the item to start the selection. \param finish The index of the item to end the selection. \param extend Whether or not to also select child items. + + \since BeOS R3 */ @@ -785,6 +880,8 @@ \brief Returns whether or not the item at \a index is selected. \return \c true if the item was selected, \c false otherwise. + + \since BeOS R3 */ @@ -800,6 +897,8 @@ \param index The \a index of the item to get relative to the selected item's index. + + \since BeOS R3 */ @@ -815,11 +914,13 @@ message. \see BControl::Invoke() + + \since BeOS R3 */ /*! - \name Deselection methods + \name Deselection */ @@ -829,6 +930,8 @@ /*! \fn void BListView::DeselectAll() \brief Deselect all items. + + \since BeOS R3 */ @@ -839,6 +942,8 @@ \param exceptFrom The index of the start of the exception list. \param exceptTo The index of the end of the exception list. + + \since BeOS R3 */ @@ -847,6 +952,8 @@ \brief Deselect the item at \a index. \param index The \a index of the item to deselect. + + \since BeOS R3 */ @@ -858,6 +965,8 @@ \brief Sort the items according the the passed in \a cmp function. \param cmp The compare function to use to sort the items. + + \since BeOS R3 */ @@ -869,6 +978,8 @@ \param b The index of the second item to swap. \return \c true if the items were swapped, \c false otherwise. + + \since BeOS R3 */ @@ -880,6 +991,8 @@ \param to The index to move the item to. \return \c true if the item was moved, \c false otherwise. + + \since BeOS R3 */ @@ -891,6 +1004,8 @@ \param item The \a item to replace the item at \a index with. \return \c true if the item was replaced, \c false otherwise. + + \since BeOS R3 */ @@ -901,23 +1016,17 @@ \param index The \a index of the item to get the frame of. \returns The frame of the item at \a index. + + \since BeOS R3 */ /*! \fn BHandler* BListView::ResolveSpecifier(BMessage* message, int32 index, - BMessage* specifier, int32 form, const char* property); - \brief Returns the proper handler for the passed in scripting \a message. + BMessage* specifier, int32 what, const char* property); + \brief Determines the proper handler for the passed in scripting \a message. - \param message The scripting message to determine the handler. - \param index The index of the specifier. - \param specifier The message which contains the specifier. - \param form The 'what' field of the specifier message. - \param property The name of the target property. - - \return The proper BHandler for the passed in scripting \a message. - - \see BView::ResolveSpecifier() + \copydetails BView::ResolveSpecifier() */ @@ -926,9 +1035,7 @@ \brief Reports the suites of messages and specifiers that derived classes understand. - \param data The message to report the suite of messages and specifiers. - - \see BView::GetSupportedSuites() + \copydetails BView::GetSupportedSuites() */ @@ -936,10 +1043,20 @@ \fn status_t BListView::Perform(perform_code code, void* _data) \brief Performs an action give a perform_code and data. (Internal Method) - \param code The perform code - \param _data A pointer to some data to perform on - - \return A status code. - - \see BView::Perform() + \copydetails BHandler::Perform() +*/ + + +/*! + \fn bool BListView::DoMiscellaneous(MiscCode code, MiscData* data) + \brief Do a miscellaneous action. + + \param code The action \a code to use. + - \c B_NO_OP: Do nothing + - \c B_REPLACE_OP: Replace the item in \a data + - \c B_MOVE_OP: Move the item in \a data. + - \c B_SWAP_OP: Swap the items in \a data. + \param data The \a data to act on. + + \since Haiku R1 */ diff --git a/docs/user/interface/Menu.dox b/docs/user/interface/Menu.dox index 68d7bbfb0f..942e704ffa 100644 --- a/docs/user/interface/Menu.dox +++ b/docs/user/interface/Menu.dox @@ -24,6 +24,8 @@ \ingroup interface Constants to define the layout of the menu items in a menu. + + \since BeOS R3 */ @@ -31,6 +33,8 @@ \var menu_layout B_ITEMS_IN_ROW Items are arranged in a row, one next to the other. + + \since BeOS R3 */ @@ -38,6 +42,8 @@ \var menu_layout B_ITEMS_IN_COLUMN Items are arranged in a column, one on top of the other. + + \since BeOS R3 */ @@ -45,6 +51,8 @@ \var menu_layout B_ITEMS_IN_MATRIX Items are arranged in a matrix, a free-form arrangement that you create. + + \since BeOS R3 */ @@ -54,6 +62,8 @@ \ingroup libbe \brief Information about a menu such as font size and family, background color, and flags. + + \since BeOS R3 */ @@ -61,6 +71,8 @@ \var menu_info::font_size The font size to draw menu items with. + + \since BeOS R3 */ @@ -68,6 +80,8 @@ \var menu_info::f_family The font family used to draw menu items. + + \since BeOS R3 */ @@ -75,6 +89,8 @@ \var menu_info::f_style The font style used to draw menu items. + + \since BeOS R3 */ @@ -82,6 +98,8 @@ \var menu_info::background_color The menu's background color. + + \since BeOS R3 */ @@ -89,6 +107,8 @@ \var menu_info::separator The style of horizontal line to use to separates groups of items in a menu. + + \since BeOS R3 */ @@ -96,6 +116,8 @@ \var menu_info::click_to_open Whether or not the menu opens on click. The default value is \c true. + + \since BeOS R3 */ @@ -104,12 +126,16 @@ Whether or not trigger underlines should always be shown. The default value is \c false. + + \since BeOS R3 */ /*! \fn status_t get_menu_info(menu_info* info) \brief Fill out the menu_info struct into \a info. + + \since BeOS R3 */ @@ -117,12 +143,16 @@ \fn status_t set_menu_info(menu_info* info) \brief Set the menu's menu_info struct to \a info adjusting how the menu will look and work. + + \since BeOS R3 */ /*! \typedef bool (*menu_tracking_hook)(BMenu* menu, void* state) \brief Defines the function passed into BMenu::SetTrackingHook(). + + \since BeOS R3 */ @@ -180,6 +210,8 @@ Several methods will only work in some layouts as noted in the method description below. + + \since BeOS R3 */ @@ -194,6 +226,8 @@ \param layout The menu layout, possibilities include: - \c B_ITEMS_IN_ROW items are displayed in a single row, - \c B_ITEMS_IN_COLUMN items are displayed in a single column. + + \since BeOS R3 */ @@ -205,6 +239,8 @@ \param name The menu's \a name, serves as a label for submenus. \param width The menu \a width. \param height The menu \a height. + + \since BeOS R3 */ @@ -213,6 +249,8 @@ \brief Archive constructor. \param archive The message data to construct the menu from. + + \since BeOS R3 */ @@ -221,15 +259,27 @@ \brief Destructor. Also frees the memory used by any attached menu items and submenus. + + \since BeOS R3 */ +/*! + \name Archiving +*/ + + +//! @{ + + /*! \fn BArchivable* BMenu::Instantiate(BMessage* archive) \brief Creates a new BMenu object from an \a archive message. \returns A newly created BMenu object or \c NULL if the message doesn't contain an archived BMenu. + + \since BeOS R3 */ @@ -244,12 +294,27 @@ otherwise. \retval B_OK The object was archived successfully. \retval B_NO_MEMORY Ran out of memory while archiving the object. + + \since BeOS R3 */ +//! @} + + +/*! + \name Hook Methods +*/ + + +//! @{ + + /*! \fn void BMenu::AttachedToWindow() \brief Lays out the menu items and resizes the menu to fit. + + \since BeOS R3 */ @@ -258,6 +323,8 @@ \brief Draws the menu. \param updateRect The area to draw in. + + \since BeOS R3 */ @@ -270,6 +337,8 @@ to scroll faster. \param message The \a message received by the associated looper. + + \since BeOS R3 */ @@ -281,9 +350,14 @@ \param bytes The bytes of the key combination pressed. \param numBytes The number of bytes in \a bytes. + + \since BeOS R3 */ +//! @} + + /*! \fn bool BMenu::AddItem(BMenuItem* item) \brief Adds a menu \a item to the end of the list. @@ -295,6 +369,8 @@ \param item The menu \a item to add. \return Whether or not the \a item was added to the menu. + + \since BeOS R3 */ @@ -310,6 +386,8 @@ \param index The \a index where to add the \a item to the menu. \return Whether or not the \a item was added to the menu. + + \since BeOS R3 */ @@ -325,6 +403,8 @@ \param frame The \a frame rectangle where to add the \a item to the menu. \return Whether or not the \a item was added to the menu. + + \since BeOS R3 */ @@ -339,6 +419,8 @@ \param submenu The submenu to add. \return Whether or not the \a submenu was added to the menu. + + \since BeOS R3 */ @@ -354,6 +436,8 @@ \param index The \a index where to add the \a submenu to the menu. \return Whether or not the \a submenu was added to the menu. + + \since BeOS R3 */ @@ -370,6 +454,8 @@ \param frame The \a frame rectangle where to add the submenu to the menu. \return Whether or not the \a submenu was added to the menu. + + \since BeOS R3 */ @@ -385,6 +471,8 @@ \param index The \a index where to add the \a list to the menu. \return Whether or not the \a list of menu items was added to the menu. + + \since BeOS R3 */ @@ -397,6 +485,8 @@ \c B_ITEMS_IN_ROW or \c B_ITEMS_IN_MATRIX layout. \return Whether or not the separator item was added to the menu. + + \since BeOS R3 */ @@ -405,6 +495,8 @@ \brief Remove and delete the specified \a item from the menu. \return Whether or not the \a item was removed from the menu. + + \since BeOS R3 */ @@ -421,6 +513,8 @@ \param index The \a index of where to remove the menu item. \return The menu item object or \c NULL if not found. + + \since BeOS R3 */ @@ -438,6 +532,8 @@ \param deleteItems Whether or not to delete the items after removing them. \return Whether or not the items were removed from the menu. + + \since BeOS R3 */ @@ -448,6 +544,8 @@ \param submenu The submenu to remove. \return Whether or not the \a submenu was removed from the menu. + + \since BeOS R3 */ @@ -456,6 +554,8 @@ \brief Returns the number of items added to the menu. \return The number of items added to the menu. + + \since BeOS R3 */ @@ -468,6 +568,8 @@ a menu in \c B_ITEMS_IN_MATRIX layout. \return A pointer to a menu item or \c NULL if not found. + + \since BeOS R3 */ @@ -480,6 +582,8 @@ menu in \c B_ITEMS_IN_MATRIX layout. \return A pointer to a submenu or \c NULL if not found. + + \since BeOS R3 */ @@ -495,6 +599,8 @@ a menu in \c B_ITEMS_IN_MATRIX layout. \return The index of the menu \a item or \c B_ERROR of not found. + + \since BeOS R3 */ @@ -510,6 +616,8 @@ a menu in \c B_ITEMS_IN_MATRIX layout. \return The index of the \a submenu or \c B_ERROR of not found. + + \since BeOS R3 */ @@ -520,6 +628,8 @@ \param label The \a label of the menu item to find. \return A pointer to a menu item or \c NULL if not found. + + \since BeOS R3 */ @@ -532,6 +642,8 @@ find. \return A pointer to a menu item or \c NULL if not found. + + \since BeOS R3 */ @@ -547,6 +659,8 @@ that have already been added to the menu. \return \c B_OK on success or an error code on error. + + \since BeOS R3 */ @@ -563,6 +677,8 @@ to. \return \c B_OK on success or an error code on error. + + \since BeOS R3 */ @@ -571,6 +687,8 @@ \brief Enables or disables the menu. \param enable \c true to enable, \c false to disable. + + \since BeOS R3 */ @@ -592,6 +710,8 @@ the items yourself. \param on \c true to turn radio mode on, \c false to turn it off. + + \since BeOS R3 */ @@ -600,6 +720,8 @@ \brief Enables or disables triggers. \param enable \c true to enable triggers, \c false to disable triggers. + + \since BeOS R3 */ @@ -612,6 +734,8 @@ included as part of the maximum content width. \param width The maximum width for the menu item contents to draw in. + + \since BeOS R3 */ @@ -624,6 +748,8 @@ \param on \c true to turn label-from-marked mode on, \c false to turn it off. + + \since BeOS R3 */ @@ -632,6 +758,8 @@ \brief Returns whether or not the menu is in label-from-marked mode. \return \c true if menu is in label-from-marked mode, \c false if not. + + \since BeOS R3 */ @@ -640,6 +768,8 @@ \brief Returns whether or not the menu is enabled. \return \c true if menu is enabled, \c false if it is disabled. + + \since BeOS R3 */ @@ -648,6 +778,8 @@ \brief Returns whether or not the menu is in radio mode. \return \c true if menu is in radio mode, \c false if not. + + \since BeOS R3 */ @@ -656,6 +788,8 @@ \brief Returns whether or not triggers are enabled. \return \c true if triggers are enabled, \c false if triggers are disabled. + + \since BeOS R3 */ @@ -664,6 +798,8 @@ \brief Returns whether or not the menu is in redraw-after-sticky mode. \return \c true if menu is in redraw-after-sticky mode, \c false if not. + + \since Haiku R1 */ @@ -672,6 +808,10 @@ \brief Return the maximum width of the menu items' content area. \return The maximum width of the menu items' content area as a float. + + \sa SetMaxContentWidth() + + \since BeOS R3 */ @@ -687,6 +827,8 @@ a menu in \c B_ITEMS_IN_MATRIX layout. \return A pointer to the first marked menu item or \c NULL if not found. + + \since BeOS R3 */ @@ -702,6 +844,8 @@ a menu in \c B_ITEMS_IN_MATRIX layout. \return The index of the first marked menu item or -1 if not found. + + \since Haiku R1 */ @@ -710,6 +854,8 @@ \brief Returns the pointer to the menu that this menu it attached to. \return A pointer to a BMenu object or \c NULL if not found. + + \since BeOS R3 */ @@ -718,6 +864,8 @@ \brief Returns the pointer to the menu item that this menu it attached to. \return A pointer to a BMenuItem object or \c NULL if not found. + + \since BeOS R3 */ @@ -744,6 +892,8 @@ \param resizeToFit Whether or not the menu should automatically resize itself to fit its contents, this will not work in \c B_ITEMS_IN_MATRIX layout. + + \since BeOS R3 */ @@ -756,6 +906,8 @@ \param top The top margin to set. \param right The right margin to set. \param bottom The bottom margin to set. + + \since BeOS R3 */ @@ -768,12 +920,16 @@ \param _top The top margin to fill out, can be \c NULL. \param _right The right margin to fill out, can be \c NULL. \param _bottom The bottom margin to fill out, can be \c NULL. + + \since BeOS R3 */ /*! \fn menu_layout BMenu::Layout() const \brief Returns the current menu_layout constant. + + \since BeOS R3 */ @@ -795,6 +951,8 @@ \return A BMenuItem object if the user ends tracking by invoking an item or \c NULL if the user didn't invoke an item. + + \since BeOS R3 */ @@ -808,6 +966,8 @@ - \c B_ABORT \return \c true if the dynamic item was added, \c false otherwise. + + \since Haiku R1 */ @@ -816,6 +976,8 @@ \brief Draw the menu background within the bounds of \a updateRect. \param updateRect The area to draw the background in. + + \since Haiku R1 */ @@ -825,12 +987,6 @@ \param func The hook function to call. \param state A variable passed to the hook function. -*/ - - -/*! - \fn void BMenu::_DrawItems(BRect updateRect) - \brief Draw the menu items within \a updateRect. - - \param updateRect The area to draw the menu items in. + + \since Haiku R1 */ diff --git a/docs/user/interface/MenuBar.dox b/docs/user/interface/MenuBar.dox index 4e199f33eb..803384f612 100644 --- a/docs/user/interface/MenuBar.dox +++ b/docs/user/interface/MenuBar.dox @@ -26,6 +26,8 @@ Menu bar border style constants. \see BMenuBar::SetBorder() + + \since BeOS R3 */ @@ -33,6 +35,8 @@ \var menu_bar_border B_BORDER_FRAME The border is drawn around the entire menu bar. + + \since BeOS R3 */ @@ -40,14 +44,17 @@ \var menu_bar_border B_BORDER_CONTENTS The border is drawn around the list of items. -*/ + \since BeOS R3 +*/ /*! \var menu_bar_border B_BORDER_EACH_ITEM The border is drawn around each individual item. + + \since BeOS R3 */ @@ -76,6 +83,8 @@ you'll need to call AddItem() or AddList() to add some. The top-level items in a menu bar are typically menus which have menu items and menus added to them in turn. + + \since BeOS R3 */ @@ -120,6 +129,8 @@ \param resizeToFit Whether or not the menu bar should automatically resize itself to fit its contents, this will not work in \c B_ITEMS_IN_MATRIX layout. + + \since BeOS R3 */ @@ -133,6 +144,8 @@ - \c B_ITEMS_IN_ROW items are displayed in a single row, - \c B_ITEMS_IN_COLUMN items are displayed in a single column, - \c B_ITEMS_IN_MATRIX items are displayed in a custom matrix. + + \since Haiku R1 */ @@ -141,6 +154,8 @@ \brief Archive constructor. \param archive The message data to construct the menu from. + + \since BeOS R3 */ @@ -149,15 +164,27 @@ \brief Destructor. Also frees the memory used by any attached menus and menu items. + + \since BeOS R3 */ +/*! + \name Archiving +*/ + + +//! @{ + + /*! \fn BArchivable* BMenuBar::Instantiate(BMessage* data) \brief Creates a new BMenuBar object from an \a archive message. \returns A newly created BMenuBar object or \c NULL if the message doesn't contain an archived BMenuBar. + + \since BeOS R3 */ @@ -172,15 +199,30 @@ otherwise. \retval B_OK The object was archived successfully. \retval B_NO_MEMORY Ran out of memory while archiving the object. + + \since BeOS R3 */ +//! @} + + +/*! + \name Hook Methods +*/ + + +//! @{ + + /*! \fn void BMenuBar::AttachedToWindow() \brief Sets this as the key menubar for the window, lays out the menu items and resizes the menu to fit. \see BWindow::SetKeyMenuBar() + + \since BeOS R3 */ @@ -190,8 +232,7 @@ Redraws the affected borders. - \param newWidth The new \a width of the menu bar. - \param newHeight The new \a height of the menu bar. + \copydetails BView::FrameResized() */ @@ -200,6 +241,8 @@ \brief Draws the menu bar. \param updateRect The area to draw in. + + \since BeOS R3 */ @@ -209,14 +252,16 @@ Right clicking on a menu bar sends the window to back or brings it to front. - \param where The point on the screen where to mouse pointer is when - the mouse button is pressed. + \copydetails BView::MouseDown() */ +//! @} + + /*! \fn void BMenuBar::SetBorder(menu_bar_border border) - \brief Sets how the menu bar border is drawn. + \brief Specifies how the menu bar border is drawn. The default is \c B_BORDER_FRAME. @@ -225,6 +270,8 @@ - \c B_BORDER_CONTENTS The border is drawn around the list of items. - \c B_BORDER_EACH_ITEM The border is drawn around each individual item. + + \since BeOS R3 */ @@ -233,4 +280,6 @@ \brief Returns the currently set border style. \see BMenuBar::SetBorder() for details. + + \since BeOS R3 */ diff --git a/docs/user/interface/MenuField.dox b/docs/user/interface/MenuField.dox index 04ed80c891..3bbc484ad8 100644 --- a/docs/user/interface/MenuField.dox +++ b/docs/user/interface/MenuField.dox @@ -61,6 +61,8 @@ typically used instead of a regular BMenu because it opens directly underneath the mouse pointer and is set to radio mode and label-from-marked mode by default, but, this is entirely up to you. + + \since BeOS R3 */ @@ -76,6 +78,8 @@ \param resizingMode Defines the menu field's behavior when its parent is resized, see BView for details. \param flags The view flags, see BView for details. + + \since BeOS R3 */ @@ -93,6 +97,8 @@ \param resizingMode Defines the menu field's behavior when its parent is resized, see BView for details. \param flags The view flags, see BView for details. + + \since BeOS R3 */ @@ -101,12 +107,12 @@ uint32 flags) \brief Creates a new BMenuField object suitable as part of a BLayout. - \note This method was not available in BeOS R5. - \param name The \a name of the menu field, internal only, can be \c NULL. \param label The \a label shown to the user, can be blank. \param menu The \a menu of choices shown to the user, typically a BPopUpMenu. \param flags The view flags, see BView for details. + + \since Haiku R1 */ @@ -115,11 +121,11 @@ \brief Creates a new BMenuField object suitable as part of a BLayout. This constructor omits the internal name parameter. - \note This method was not available in BeOS R5. - \param label The \a label shown to the user, can be blank. \param menu The \a menu of choices shown to the user, typically a BPopUpMenu. \param flags The view flags, see BView for details. + + \since Haiku R1 */ @@ -128,6 +134,8 @@ \brief Archive constructor. \param data The message \a data to construct the menu field from. + + \since BeOS R3 */ @@ -136,15 +144,27 @@ \brief Destructor. Also frees the memory used by the label and menu. + + \since BeOS R3 */ +/*! + \name Archiving +*/ + + +//! @{ + + /*! \fn BArchivable* BMenuField::Instantiate(BMessage* data) \brief Creates a new BMenuField object from an \a data message. \returns A newly created BMenuField object or \c NULL if the message doesn't contain an archived BMenuField. + + \since BeOS R3 */ @@ -161,9 +181,22 @@ otherwise. \retval B_OK The object was archived successfully. \retval B_NO_MEMORY Ran out of memory while archiving the object. + + \since BeOS R3 */ +//! @} + + +/*! + \name Hook Methods +*/ + + +//! @{ + + /*! \fn status_t BMenuField::AllArchived(BMessage* into) const \brief Hook method called when all views have been archived. @@ -171,6 +204,8 @@ Also archives the label and menu bar. \param into Archived data message. + + \since BeOS R3 */ @@ -181,6 +216,8 @@ Also unarchives the label and menu bar. \param from Unarchived data message. + + \since BeOS R3 */ @@ -191,6 +228,8 @@ Adjusts the background color to match the background color of the parent view and adjusts the height to be the attached menu bar which depends on the user's current menu font setting. + + \since BeOS R3 */ @@ -201,6 +240,8 @@ If the attached menu bar is too narrow it is resized it to fit the menu items. + + \since BeOS R3 */ @@ -212,6 +253,8 @@ current focus view and whether or not it is enabled. \param updateRect The rectangular area to be drawn. + + \since BeOS R3 */ @@ -221,8 +264,7 @@ Adjusts the menu bar size and location. - \param newWidth The new \a width of the menu field. - \param newHeight The new \a height of the menu field. + \copydetails BView::FrameResized() */ @@ -233,8 +275,7 @@ Provides for keyboard navigation allowing users to open the menu by pressing the space bar, right arrow, or down arrow. - \param bytes The bytes of the key combination pressed. - \param numBytes The number of bytes in \a bytes. + \copydetails BView::KeyDown() */ @@ -245,24 +286,25 @@ Provides the ability to open the menu field menu using the mouse, even if the user clicks on the menu field label. - \param where The point on the screen where to mouse pointer is when - the mouse button is pressed. + \copydetails BView::MouseDown() */ /*! - \fn void BMenuField::WindowActivated(bool state) + \fn void BMenuField::WindowActivated(bool active) \brief Hook method called when the attached window is activated or deactivated. Redraws the focus ring around the menu field when the window is activated and deactivated if it is the window's current focus view. - \param state \c true if the window becomes activated, \c false if the - window becomes deactivated. + \copydetails BView::WindowActivated() */ +//! @} + + /*! \fn void BMenuField::MakeFocus(bool focused) \brief Makes the view the current focus view of the window or gives up @@ -271,6 +313,8 @@ Enables or disables keyboard navigation and invalidates the menu field. \param focused \a true to set focus, \a false to remove it. + + \since BeOS R3 */ @@ -278,6 +322,8 @@ \fn BMenu* BMenuField::Menu() const \brief Returns a pointer to the menu attached to the menu bar that opens when the user clicks on the menu field. + + \since BeOS R3 */ @@ -285,6 +331,8 @@ \fn BMenuBar* BMenuField::MenuBar() const \brief Returns a pointer to the attached menu bar that contains the pop-up menu. + + \since BeOS R3 */ @@ -292,6 +340,8 @@ \fn BMenuItem* BMenuField::MenuItem() const \brief Returns the first menu item attached to the menu bar containing the pop-up menu. + + \since BeOS R3 */ @@ -300,6 +350,8 @@ \brief Sets the menu field label to \a label. \param label The \a label to set to the menu field. + + \since BeOS R3 */ @@ -308,6 +360,8 @@ \brief Returns the menu field label. \return The menu field label or \c NULL if not assigned. + + \since BeOS R3 */ @@ -316,6 +370,8 @@ \brief Enables or disables the menu field. \param on \c true to enable the menu field, \c false to disable it. + + \since BeOS R3 */ @@ -324,6 +380,8 @@ \brief Returns whether or not the menu is enabled. \return \c true if the menu is enabled, \c false if disabled. + + \since BeOS R3 */ @@ -339,6 +397,8 @@ - \c B_ALIGN_LEFT - \c B_ALIGN_CENTER - \c B_ALIGN_RIGHT + + \since BeOS R3 */ @@ -349,6 +409,8 @@ \return The label's current alignment constant. \see SetAlignment() for more details. + + \since BeOS R3 */ @@ -365,6 +427,8 @@ menu fields. \param position The divider \a position to set, should be an integral value. + + \since BeOS R3 */ @@ -375,6 +439,8 @@ \return The current divider position as a float. \see SetDivider() for more details. + + \since BeOS R3 */ @@ -382,9 +448,9 @@ \fn void BMenuField::ShowPopUpMarker() \brief Shows the pop-up marker located on the right edge of the menu bar. - \note This method was not available in BeOS R5. - \sa HidePopUpMarker() + + \since Haiku R1 */ @@ -392,9 +458,9 @@ \fn void BMenuField::HidePopUpMarker() \brief Hides to pop-up marker. - \note This method was not available in BeOS R5. - \sa ShowPopUpMarker() + + \since Haiku R1 */ @@ -403,9 +469,9 @@ \brief Returns a pointer to the label layout item. (Layout constructor only) - \note This method was not available in BeOS R5. - \sa CreateMenuBarLayoutItem() + + \since Haiku R1 */ @@ -414,7 +480,7 @@ \brief Returns a pointer to the menu bar layout item. (Layout constructor only) - \note This method was not available in BeOS R5. - \sa CreateLabelLayoutItem() + + \since Haiku R1 */ diff --git a/docs/user/interface/MenuItem.dox b/docs/user/interface/MenuItem.dox index f852885b98..147a506296 100644 --- a/docs/user/interface/MenuItem.dox +++ b/docs/user/interface/MenuItem.dox @@ -65,6 +65,8 @@ submenu may still be opened but each of the items will be disabled. \sa SetEnabled() + + \since BeOS R3 */ @@ -79,6 +81,8 @@ \param shortcut The \a shortcut characters to activate the menu item. \param modifiers The modifier keys to active the menu item, \c B_COMMAND_KEY is assumed. + + \since BeOS R3 */ @@ -92,6 +96,8 @@ \param menu The \a menu to assign to the item. \param message The BMessage that is sent when the item is selected. + + \since BeOS R3 */ @@ -100,15 +106,37 @@ \brief Archive constructor. \param data The message \a data to construct the menu item from. + + \since BeOS R3 */ +/*! + \fn BMenuItem::~BMenuItem() + \brief Destructor. + + Also frees the memory used by the label or submenu. + + \since BeOS R3 +*/ + + +/*! + \name Archiving +*/ + + +//! @{ + + /*! \fn BArchivable* BMenuItem::Instantiate(BMessage* data) \brief Creates a new BMenuItem object from an \a data message. \return A newly created BMenuItem object or \c NULL if the message doesn't contain an archived BMenuItem. + + \since BeOS R3 */ @@ -125,15 +153,12 @@ otherwise. \retval B_OK The object was archived successfully. \retval B_NO_MEMORY Ran out of memory while archiving the object. + + \since BeOS R3 */ -/*! - \fn BMenuItem::~BMenuItem() - \brief Destructor. - - Also frees the memory used by the label or submenu. -*/ +//! @} /*! @@ -144,6 +169,8 @@ Setting the label invalidates the attached menu. \param string The \a string to set the label to. + + \since BeOS R3 */ @@ -154,6 +181,8 @@ Enabling or disabling the menu item invalidates the attached menu. \param enable \c true to enable the menu item, \c false to disable it. + + \since BeOS R3 */ @@ -169,6 +198,8 @@ \param mark \c true to mark the menu item, \c false to unmark it. \sa BMenu::SetRadioMode() + + \since BeOS R3 */ @@ -180,6 +211,8 @@ \attention Triggers are currently disabled. \param trigger The trigger character to set on this menu item. + + \since BeOS R3 */ @@ -194,6 +227,8 @@ \param shortcut The ASCII shortcut character to set. \param modifiers A bitmap mask of modifier keys used to activate the shortcut. + + \since BeOS R3 */ @@ -202,6 +237,8 @@ \brief Returns the item's label. \return The item's label as a const char array. + + \since BeOS R3 */ @@ -210,6 +247,8 @@ \brief Returns whether or not the item is enabled. \return \c true if the item is enabled, \c false if disabled. + + \since BeOS R3 */ @@ -218,6 +257,8 @@ \brief Returns whether or not the item is marked. \return \c true if the item is marked, \c false if unmarked. + + \since BeOS R3 */ @@ -226,6 +267,8 @@ \brief Returns the item's trigger character. \return The current trigger character as a char or 0 if unset. + + \since BeOS R3 */ @@ -237,6 +280,8 @@ \param modifiers A pointer to a uint32 to fill out. \return The shortcut character assigned to the menu item as a char. + + \since BeOS R3 */ @@ -245,6 +290,8 @@ \brief Returns a pointer to the attached menu. \return A pointer to the attached menu. + + \since BeOS R3 */ @@ -253,6 +300,8 @@ \brief Returns a pointer to the menu that the item is attached to. \return A pointer to the menu that the item is attached to. + + \since BeOS R3 */ @@ -262,6 +311,8 @@ \return The bounds rectangle of the menu item in the coordinate system of the menu that the item is attached to. + + \since BeOS R3 */ @@ -285,6 +336,8 @@ \sa ContentLocation() \sa DrawContent() + + \since BeOS R3 */ @@ -298,6 +351,8 @@ \param maxWidth The maximum number of bytes to truncate the label to. \param newLabel The buffer to store the truncated label in. + + \since BeOS R3 */ @@ -308,6 +363,8 @@ This method is called automatically by BMenu::Draw(), you need not call it yourself. You may want to override this method in derived classes to do something different than drawing a text label. + + \since BeOS R3 */ @@ -321,6 +378,8 @@ and possibly a right arrow to indicate there is submenu and then calls DrawContent() to fill in the label. Lastly Highlight() is called if the item is selected. + + \since BeOS R3 */ @@ -335,6 +394,8 @@ \param highlight Highlights if \a highlight is \c true, unhighlights if \c false. + + \since BeOS R3 */ @@ -343,6 +404,8 @@ \brief Returns whether or not the item is selected. \return \c true if selected, \c false if not selected. + + \since BeOS R3 */ @@ -362,6 +425,8 @@ \sa GetContentSize() \sa DrawContent() + + \since BeOS R3 */ @@ -385,4 +450,6 @@ \retval B_BAD_VALUE The message was \c NULL. \sa BInvoker::Invoke() + + \since BeOS R3 */ diff --git a/docs/user/interface/OutlineListView.dox b/docs/user/interface/OutlineListView.dox index 54befa3e09..0fbaef30b6 100644 --- a/docs/user/interface/OutlineListView.dox +++ b/docs/user/interface/OutlineListView.dox @@ -35,6 +35,8 @@ \see BListView for more info on how to use a list view, most of which also applies to an outline list view. + + \since BeOS R3 */ @@ -49,6 +51,8 @@ selections. \param resizingMode The resizing mode flags. See BView for details. \param flags The view flags. See BView for details. + + \since BeOS R3 */ @@ -61,6 +65,8 @@ \param type Whether the list view supports a single selection or multiple selections. \param flags The view flags. See BView for details. + + \since Haiku R1 */ @@ -69,6 +75,8 @@ \brief Creates a BOutlineListView object from the \a archive message. \param archive The message to create the object from. + + \since BeOS R3 */ @@ -78,6 +86,8 @@ by it. This method does not free the attached list items. + + \since BeOS R3 */ @@ -94,6 +104,8 @@ \brief Create a new BOutlineListView object from the message \a archive. \param archive The message to create the object from. + + \since BeOS R3 */ @@ -103,6 +115,8 @@ \param archive The message to archive the object to. \param deep \c true to archive child views. + + \since BeOS R3 */ @@ -110,7 +124,7 @@ /*! - \name Hook methods + \name Hook Methods */ @@ -119,19 +133,13 @@ /*! \fn void BOutlineListView::AllAttached() - \brief Hook method called once all views are attached to the outline list - view. - - \see BView::AllAttached() + \copydoc BView::AllAttached() */ /*! \fn void BOutlineListView::AllDetached() - \brief Hook method called once all views are detached from the outline list - view. - - \see BView::AllDetached() + \copydoc BView::AllDetached() */ @@ -140,28 +148,23 @@ \brief Hook method that is called when the outline list view is removed from the view hierarchy. - \see BView::DetachedFromWindow() + \copydetails BView::DetachedFromWindow() */ /*! - \fn void BOutlineListView::FrameMoved(BPoint new_position) + \fn void BOutlineListView::FrameMoved(BPoint newPosition) \brief Hook method called when the outline list view is moved. - \param new_position The list view's new position. - - \see BView::FrameMoved() + \copydetails BView::FrameMoved() */ /*! - \fn void BOutlineListView::FrameResized(float width, float height) + \fn void BOutlineListView::FrameResized(float newWidth, float newHeight) \brief Hook method called when the outline list view is resized. - \param width The new \a width of the view. - \param height The new \a height of the view. - - \see BView::FrameResized() + \copydetails BView::FrameResized() */ @@ -182,6 +185,8 @@ \param numBytes The number of bytes in \a bytes. \see BListView::KeyDown() + + \since BeOS R3 */ @@ -190,9 +195,7 @@ \brief Hook method called when a message is received by the outline list view. - \param message The message received by the view. - - \see BView::MessageReceived() + \copydetails BView::MessageReceived() */ @@ -208,6 +211,8 @@ the mouse button is pressed. \see BListView::MouseDown() + + \since BeOS R3 */ @@ -216,9 +221,7 @@ \brief Hook method that is called when a mouse button is released while the cursor is contained in the frame of the outline list view. - \param where The location that the mouse button was released. - - \see BView::MouseUp() + \copydetails BView::MouseUp() */ @@ -226,7 +229,7 @@ /*! - \name Add and remove item methods + \name Adding/Removing Items */ @@ -241,6 +244,8 @@ \param superItem The item to add under, if \c NULL adds to end. \return \c true if the \a item was added, \c false otherwise. + + \since BeOS R3 */ @@ -251,6 +256,8 @@ \param item The \a item to add. \return \c true if the \a item was added, \c false otherwise. + + \since BeOS R3 */ @@ -262,6 +269,8 @@ \param fullListIndex The index to add \a item at. \return \c true if the \a item was added, \c false otherwise. + + \since BeOS R3 */ @@ -272,6 +281,8 @@ \param newItems The list of items to add. \return \c true if the items was added, \c false otherwise. + + \since BeOS R3 */ @@ -283,6 +294,8 @@ \param fullListIndex The index to add \a item at. \return \c true if the items was added, \c false otherwise. + + \since BeOS R3 */ @@ -293,6 +306,8 @@ \param item The \a item to remove. \return \c true if the \a item was removed, \c false otherwise. + + \since BeOS R3 */ @@ -301,6 +316,8 @@ \brief Removes the \a item located at \a fullListIndex from the list. \return A pointer to the BListItem removed. + + \since BeOS R3 */ @@ -309,6 +326,8 @@ \brief Removes \a count items starting at \a fullListIndex from the list. \return \c true if the items were removed, \c false otherwise. + + \since BeOS R3 */ @@ -316,7 +335,7 @@ /*! - \name Full list methods + \name Full List These methods replicate similar methods in BListView except work on the full list. @@ -334,6 +353,8 @@ found. \see BListView::ItemAt(int32 index) + + \since BeOS R3 */ @@ -344,6 +365,8 @@ \return The index of the item at \a where or -1 if not found. \see BListView::IndexOf(BListItem* item) + + \since BeOS R3 */ @@ -354,6 +377,8 @@ \return The index of the item at \a where or -1 if not found. \see BListView::IndexOf(BPoint point) + + \since BeOS R3 */ @@ -365,6 +390,8 @@ items. \see BListView::FirstItem() + + \since BeOS R3 */ @@ -376,6 +403,8 @@ items. \see BListView::LastItem() + + \since BeOS R3 */ @@ -388,6 +417,8 @@ \return \c true if \a item is in the list, \c false otherwise. \see BListView::HasItem(BListItem* item) + + \since BeOS R3 */ @@ -398,6 +429,8 @@ \return The number of items. \see BListView::CountItems() + + \since BeOS R3 */ @@ -410,12 +443,16 @@ index. \see BListView::CurrentSelection(int32 index) + + \since BeOS R3 */ /*! \fn void BOutlineListView::MakeEmpty() \brief Empties the outline list view of all items. + + \since BeOS R3 */ @@ -426,6 +463,8 @@ \return \c true if the outline list view is empty, \c false otherwise. \see BListView::IsEmpty() + + \since BeOS R3 */ @@ -436,6 +475,8 @@ \param func The function to call on each item. \see BListView::DoForEach(bool (*func)(BListItem* item)) + + \since BeOS R3 */ @@ -449,6 +490,8 @@ \sa BListView::DoForEach(bool (*func)(BListItem* item, void* arg), void* arg) + + \since BeOS R3 */ @@ -461,18 +504,24 @@ \return A pointer to the superitem of \a item or \c NULL if the \a item is at the outermost level or not found. + + \since BeOS R3 */ /*! \fn void BOutlineListView::Expand(BListItem* item) \brief Expands the section referenced by \a item. + + \since BeOS R3 */ /*! \fn void BOutlineListView::Collapse(BListItem* item) \brief Collapses the section referenced by \a item. + + \since BeOS R3 */ @@ -482,11 +531,13 @@ is expanded or not. \return \c true if the section is expanded, \c false if it is collapsed. + + \since BeOS R3 */ /*! - \name Sort methods + \name Sorting */ @@ -501,6 +552,8 @@ \param compareFunc The compare function to use to sort the items. \see BListView::SortItems(int (*cmp)(const void *, const void *)) + + \since BeOS R3 */ @@ -514,6 +567,8 @@ \param oneLevelOnly if \c true, only items located one level under superItem are considered. \param compareFunc The compare function to use to sort the items. + + \since BeOS R3 */ @@ -530,6 +585,8 @@ superItem are considered. \return The number of items under \a superItem. + + \since BeOS R3 */ @@ -544,6 +601,8 @@ superItem are considered. \param eachFunc The function to call on each item. \param arg The second argument of \a eachFunc. + + \since BeOS R3 */ @@ -563,6 +622,8 @@ \return A pointer to the item at \a index under \a superItem or \c NULL if not found. + + \since BeOS R3 */ @@ -575,6 +636,8 @@ \param data The \a data to act on. \see BListView::DoMiscellaneous() + + \since Haiku R1 */ @@ -585,6 +648,8 @@ \param item The \a item to toggle. \param expand If \c true, expand the \a item, if \c false, collapse the \a item. + + \since Haiku R1 */ @@ -594,6 +659,8 @@ \param itemRect The area of the item to get the latch area of. \param level The \a level of the item to get the latch area of. + + \since Haiku R1 */ @@ -612,16 +679,20 @@ \c false to draw the latch in an unselected state. Unused by the base class. \param misTracked Unused by the base class. + + \since Haiku R1 */ /*! \fn void BOutlineListView::DrawItem(BListItem* item, BRect itemRect, bool complete) - \brief Used by derived classes to draw the \a item. + \brief Used by derived classes to override how an \a item is drawn. \param item The \a item to draw. \param itemRect The area of the \a item to draw. \param complete Whether or not to draw the background in addition to the contents. + + \since Haiku R1 */ diff --git a/docs/user/interface/Picture.dox b/docs/user/interface/Picture.dox index e7d5c76c16..9162bc545c 100644 --- a/docs/user/interface/Picture.dox +++ b/docs/user/interface/Picture.dox @@ -59,18 +59,24 @@ \sa BView::AppendToPicture() \sa BView::BeginPicture() \sa BView::EndPicture() + + \since BeOS R3 */ /*! \fn BPicture::BPicture() \brief Initializes an empty BPicture object. + + \since BeOS R3 */ /*! \fn BPicture::BPicture(const BPicture& otherPicture) \brief Initializes an BPicture object copying the data from \a otherPicture. + + \since BeOS R3 */ @@ -78,15 +84,27 @@ \fn BPicture::BPicture(BMessage* data) \brief Initializes an BPicture object copying the data from from the passed in \a data archive. + + \since BeOS R3 */ /*! \fn BPicture::~BPicture() \brief Destroys the BPicture object and deletes all associated data. + + \since BeOS R3 */ +/*! + \name Archiving +*/ + + +//! @{ + + /*! \fn BArchivable* BPicture::Instantiate(BMessage* data) \brief Returns a pointer to a new BPicture object created from the BPicture @@ -96,6 +114,8 @@ contain an archived BPicture. \see BArchivable::Instantiate() + + \since BeOS R3 */ @@ -113,13 +133,20 @@ \sa BArchivable::Archive() \sa BPicture::Instantiate() + + \since BeOS R3 */ +//! @} + + /*! \fn status_t BPicture::Perform(perform_code code, void* arg) \brief Perform some action (internal method defined for binary compatibility purposes). + + \since Haiku R1 */ @@ -139,6 +166,8 @@ \returns A status code. \retval B_OK The BPicture object was played back successfully. \retval B_ERROR BPicture data is \c NULL. + + \since BeOS R3 */ @@ -153,6 +182,8 @@ \retval B_BAD_VALUE The \a stream pointer was \c NULL or the data was invalid. \retval B_IO_ERROR The number of bytes written does not equal the size of the contents of the BPicture object. + + \since Haiku R1 */ @@ -167,4 +198,6 @@ \retval B_BAD_VALUE The \a stream pointer was \c NULL or the data was invalid. \retval B_IO_ERROR The number of bytes read does not equal the size of the contents of the BPicture object. + + \since Haiku R1 */ diff --git a/docs/user/interface/PictureButton.dox b/docs/user/interface/PictureButton.dox index 6c9d1a94f5..a1688f770f 100644 --- a/docs/user/interface/PictureButton.dox +++ b/docs/user/interface/PictureButton.dox @@ -24,6 +24,8 @@ Acts like a normal BButton, the value is set to \c B_CONTROL_ON when the button is being pressed and is set to \c B_CONTROL_OFF otherwise. + + \since BeOS R3 */ @@ -32,6 +34,8 @@ Acts like a checkbox, the value alternates between \c B_CONTROL_ON and \c B_CONTROL_OFF each time the user presses and releases the button. + + \since BeOS R3 */ @@ -40,6 +44,16 @@ \ingroup interface \ingroup libbe \brief A button draw with a BPicture image instead of a text label. + + There are two types: + - \c B_ONE_STATE_BUTTON Acts like a normal BButton, the value is set to + \c B_CONTROL_ON when the button is being pressed and is set to + \c B_CONTROL_OFF otherwise. + - \c B_TWO_STATE_BUTTON Acts like a checkbox, the value alternates between + \c B_CONTROL_ON and \c B_CONTROL_OFF each time the user presses and + releases the button. + + \since BeOS R3 */ @@ -64,6 +78,8 @@ \sa BPictureButton::SetEnabledOff() \sa BPictureButton::SetDisabledOn() \sa BPictureButton::SetDisabledOff() + + \since BeOS R3 */ @@ -71,15 +87,27 @@ \fn BPictureButton::BPictureButton(BMessage* data) \brief Initializes an BPictureButton object copying the data from from the passed in \a data archive. + + \since BeOS R3 */ /*! \fn BPictureButton::~BPictureButton() \brief Destroys the BPictureButton along with the associated BPicture objects. + + \since BeOS R3 */ +/*! + \name Archiving +*/ + + +//! @{ + + /*! \fn BArchivable* BPictureButton::Instantiate(BMessage* data) \brief Returns a pointer to a new BPictureButton object created from the @@ -89,6 +117,8 @@ doesn't contain an archived BPictureButton. \see BArchivable::Instantiate() + + \since BeOS R3 */ @@ -106,78 +136,63 @@ \sa BArchivable::Archive() \sa BPictureButton::Instantiate() + + \since BeOS R3 */ +//! @} + + +/*! + \name Hook Methods +*/ + + +//! @{ + + /*! \fn void BPictureButton::AttachedToWindow() - \see BControl::AttachedToWindow() + \copydoc BControl::AttachedToWindow() */ /*! \fn void BPictureButton::DetachedFromWindow() - \see BControl::DetachedFromWindow() + \copydoc BControl::DetachedFromWindow() */ /*! \fn void BPictureButton::AllAttached() - \see BControl::AllAttached() + \copydoc BControl::AllAttached() */ /*! \fn void BPictureButton::AllDetached() - \see BControl::AllDetached() -*/ - - -/*! - \fn void BPictureButton::ResizeToPreferred() - \see BControl::ResizeToPreferred() -*/ - - -/*! - \fn void BPictureButton::GetPreferredSize(float* _width, float* _height) - \see BControl::GetPreferredSize() -*/ - - -/*! - \fn void BPictureButton::FrameMoved(BPoint newPosition) - \see BControl::FrameMoved() -*/ - - -/*! - \fn BPictureButton::FrameResized(float newWidth, float newHeight) - \see BControl::FrameResized() -*/ - - -/*! - \fn void BPictureButton::WindowActivated(bool state) - \see BControl::WindowActivated() -*/ - - -/*! - \fn void BPictureButton::MakeFocus(bool state) - \see BControl::MakeFocus() + \copydoc BControl::AllDetached() */ /*! \fn void BPictureButton::Draw(BRect updateRect) \brief Draws the BPictureButton from its associated BPicture objects. + + \copydetails BControl::Draw() */ /*! - \fn void BPictureButton::MessageReceived(BMessage* message) - \see BControl::MessageReceived() + \fn void BPictureButton::FrameMoved(BPoint newPosition) + \copydoc BControl::FrameMoved() +*/ + + +/*! + \fn BPictureButton::FrameResized(float newWidth, float newHeight) + \copydoc BControl::FrameResized() */ @@ -185,7 +200,13 @@ \fn void BPictureButton::KeyDown(const char* bytes, int32 numBytes) \brief Invokes the button on either \c B_ENTER \c B_SPACE. - \sa BControl::KeyDown() + \copydetails BControl::KeyDown() +*/ + + +/*! + \fn void BPictureButton::MessageReceived(BMessage* message) + \copydoc BControl::MessageReceived() */ @@ -193,25 +214,52 @@ \fn void BPictureButton::MouseDown(BPoint where) \brief Sets the button value based on the buttons Behavior(). - \sa BControl::MouseDown() + \copydetails BControl::MouseDown() + \sa Behavior() */ +/*! + \fn void BPictureButton::MouseMoved(BPoint where, uint32 code, + const BMessage* dragMessage) + + \copydetails BControl::MouseMoved() +*/ + + /*! \fn void BPictureButton::MouseUp(BPoint where) \brief Invokes the button. - \sa BControl::MouseUp() + \copydetails BControl::MouseUp() */ /*! - \fn void BPictureButton::MouseMoved(BPoint where, uint32 transit, - const BMessage* message) - \brief + \fn void BPictureButton::WindowActivated(bool active) + \copydoc BControl::WindowActivated() +*/ - \sa BControl::MouseMoved() + +//! @} + + +/*! + \fn void BPictureButton::ResizeToPreferred() + \copydoc BControl::ResizeToPreferred() +*/ + + +/*! + \fn void BPictureButton::GetPreferredSize(float* _width, float* _height) + \copydoc BControl::GetPreferredSize() +*/ + + +/*! + \fn void BPictureButton::MakeFocus(bool focus) + \copydoc BControl::MakeFocus() */ @@ -220,6 +268,8 @@ \brief Sets the BPicture to draw when the button is enabled and on. \param picture A pointer to the BPicture object to set. + + \since BeOS R3 */ @@ -228,6 +278,8 @@ \brief Sets the BPicture to draw when the button is enabled and off. \param picture A pointer to the BPicture object to set. + + \since BeOS R3 */ @@ -239,6 +291,8 @@ set because a disabled one-state control can never be on. \param picture A pointer to the BPicture object to set. + + \since BeOS R3 */ @@ -247,6 +301,8 @@ \brief Sets the BPicture to draw when the button is disabled and off. \param picture A pointer to the BPicture object to set. + + \since BeOS R3 */ @@ -256,6 +312,8 @@ is enabled and on. \returns A pointer to a BPicture object or \c NULL if not set. + + \since BeOS R3 */ @@ -265,6 +323,8 @@ is enabled and off. \returns A pointer to a BPicture object or \c NULL if not set. + + \since BeOS R3 */ @@ -274,6 +334,8 @@ is disabled and on. \returns A pointer to a BPicture object or \c NULL if not set. + + \since BeOS R3 */ @@ -283,6 +345,8 @@ is disabled and off. \returns A pointer to a BPicture object or \c NULL if not set. + + \since BeOS R3 */ @@ -298,6 +362,8 @@ the user presses and releases the button. \param behavior Either \c B_ONE_STATE_BUTTON or \c B_TWO_STATE_BUTTON. + + \since BeOS R3 */ @@ -307,43 +373,46 @@ \returns Either \c B_ONE_STATE_BUTTON or B_TWO_STATE_BUTTON. - \see BPictureButton::SetBehavior() + \see SetBehavior() + + \since BeOS R3 */ /*! \fn void BPictureButton::SetValue(int32 value) - \see BControl::SetValue() + \copydoc BControl::SetValue() */ /*! \fn status_t BPictureButton::Invoke(BMessage* message) - \see BControl::Invoke() + \copydoc BControl::Invoke() */ /*! \fn BHandler* BPictureButton::ResolveSpecifier(BMessage* message, - int32 index, BMessage* specifier, int32 form, const char* property) - \see BControl::ResolveSpecifier() + int32 index, BMessage* specifier, int32 what, const char* property) + \copydoc BControl::ResolveSpecifier() */ /*! \fn status_t BPictureButton::GetSupportedSuites(BMessage* data) - \see BControl::GetSupportedSuites() + \copydoc BControl::GetSupportedSuites() */ /*! \fn status_t BPictureButton::Perform(perform_code code, void* _data) - \brief Perform some action (internal method defined for binary - compatibility purposes). + \copydoc BHandler::GetSupportedSuites() */ /*! \fn status_t BPictureButton::SetIcon(const BBitmap* icon, uint32 flags) \see BControl::SetIcon() + + \since Haiku R1 */ diff --git a/docs/user/interface/Point.dox b/docs/user/interface/Point.dox index 5f0bd722ec..6a698af48f 100644 --- a/docs/user/interface/Point.dox +++ b/docs/user/interface/Point.dox @@ -22,6 +22,8 @@ /*! \var B_ORIGIN \brief The origin point, equivalent to BPoint(0, 0). + + \since BeOS R5 */ @@ -30,18 +32,24 @@ \ingroup interface \ingroup libbe \brief A point on a two-dimensional Cartesian coordinate system. + + \since BeOS R3 */ /*! \var BPoint::x \brief The horizontal coordinate. + + \since BeOS R3 */ /*! \var BPoint::y \brief The vertical coordinate. + + \since BeOS R3 */ @@ -50,6 +58,8 @@ \brief Initializes a BPoint object at the origin, (0, 0). \see BPoint::Set() + + \since BeOS R3 */ @@ -60,6 +70,8 @@ \param x The \a x coordinate. \param y The \a y coordinate. + + \since BeOS R3 */ @@ -68,15 +80,8 @@ \brief Initializes a BPoint object from another BPoint. \param other The BPoint object to copy from. -*/ - -/*! - \fn inline BPoint& BPoint::operator=(const BPoint& other) - \brief Initializes a BPoint object from another BPoint by overloading - the = operator. - - \param other The BPoint object to copy from. + \since BeOS R3 */ @@ -86,6 +91,8 @@ \param x The \a x coordinate to set. \param y The \a y coordinate to set. + + \since BeOS R3 */ @@ -97,6 +104,8 @@ effect. \param rect The BRect to constrain the BPoint within. + + \since BeOS R3 */ @@ -109,6 +118,27 @@ \verbatim BPoint(x:%.0f, y:%.0f) \endverbatim + + \since BeOS R3 +*/ + + +/*! + \name Operators +*/ + + +//! @{ + + +/*! + \fn inline BPoint& BPoint::operator=(const BPoint& other) + \brief Initializes a BPoint object from another BPoint by overloading + the = operator. + + \param other The BPoint object to copy from. + + \since BeOS R3 */ @@ -117,6 +147,8 @@ BPoint(x:%.0f, y:%.0f) \brief Returns a BPoint object with the x and y coordinates negated. \return A new BPoint object. + + \since BeOS R3 */ @@ -128,6 +160,8 @@ BPoint(x:%.0f, y:%.0f) \param other The BPoint object to use in the addition. \return A new BPoint object. + + \since BeOS R3 */ @@ -139,6 +173,8 @@ BPoint(x:%.0f, y:%.0f) \param other The BPoint object to use in the subtraction. \return A new BPoint object. + + \since BeOS R3 */ @@ -150,6 +186,8 @@ BPoint(x:%.0f, y:%.0f) \param other The BPoint object to use in the addition. \return The address of the BPoint object. + + \since BeOS R3 */ @@ -161,6 +199,8 @@ BPoint(x:%.0f, y:%.0f) \param other The BPoint object to use in the subtraction. \return The address of the BPoint object. + + \since BeOS R3 */ @@ -170,6 +210,8 @@ BPoint(x:%.0f, y:%.0f) objects differ. \return \c true if the x or y coordinates differ, \c false otherwise. + + \since BeOS R3 */ @@ -179,4 +221,9 @@ BPoint(x:%.0f, y:%.0f) objects are equal. \return \c true if the x and y coordinates are equal, \c false otherwise. + + \since BeOS R3 */ + + +//! @} diff --git a/docs/user/interface/Polygon.dox b/docs/user/interface/Polygon.dox index c2ea48ceb8..01a0db3e41 100644 --- a/docs/user/interface/Polygon.dox +++ b/docs/user/interface/Polygon.dox @@ -36,6 +36,8 @@ \sa BView::StrokePolygon() \sa BView::FillPolygon() + + \since BeOS R3 */ @@ -45,6 +47,8 @@ \param points The array of BPoint objects to add. \param count The number of BPoint objects in the array. + + \since BeOS R3 */ @@ -53,9 +57,9 @@ \brief Initializes a new BPolygon object from another BPolygon and copies the list of BPoint objects from \a other. - \note This method was not available in BeOS R5. - \param other The BPolygon object to copy from. + + \since Haiku R1 */ @@ -65,6 +69,8 @@ BPolygon and copies the list of BPoint objects from \a other. \param other A pointer to a BPolygon object to copy from. + + \since BeOS R3 */ @@ -73,6 +79,8 @@ \brief Initializes an empty polygon without any points. \see BPolygon::AddPoints() to add points to the BPolygon. + + \since BeOS R3 */ @@ -80,6 +88,8 @@ \fn BPolygon::~BPolygon() \brief Destroys the object and frees the memory used by the associated BPoint objects. + + \since BeOS R3 */ @@ -89,12 +99,16 @@ objects from \a other. \param other The BPolygon object to copy from. + + \since BeOS R3 */ /*! \fn BRect BPolygon::Frame() const \brief Returns the frame rectangle that encloses the BPolygon object. + + \since BeOS R3 */ @@ -104,12 +118,16 @@ \param points The array of BPoint objects to add. \param count The number of BPoint objects in the array. + + \since BeOS R3 */ /*! \fn int32 BPolygon::CountPoints() const \brief Returns the number of points associated with the polygon. + + \since BeOS R3 */ @@ -122,6 +140,8 @@ proportionally. To modify a polygon so that it is inscribed in the \a destination rectangle exactly, pass the frame rectangle as the \a source. + + \since BeOS R3 */ @@ -130,4 +150,6 @@ \brief Prints each of the points of the BPolygon to standard output. \see BPoint::PrintToStream() + + \since BeOS R3 */ diff --git a/docs/user/interface/PopUpMenu.dox b/docs/user/interface/PopUpMenu.dox index 310cb72ff6..691fe2d191 100644 --- a/docs/user/interface/PopUpMenu.dox +++ b/docs/user/interface/PopUpMenu.dox @@ -48,6 +48,8 @@ If the pop-up menu is used as part of a BMenuField or BMenuBar it behaves almost exactly like a BMenu would, but, the menu pops up directly under the mouse pointer instead of underneath the BMenuBar or BMenuField. + + \since BeOS R3 */ @@ -72,6 +74,8 @@ \see BMenu::SetRadioMode() \see BMenu::SetLabelFromMarked() + + \since BeOS R3 */ @@ -80,6 +84,20 @@ \brief Archive constructor. \param archive The message data to construct the pop-up menu from. + + \since BeOS R3 +*/ + + +/*! + \fn BPopUpMenu& BPopUpMenu::operator=(const BPopUpMenu& other) + \brief Assignment overload method. + + \param other The BPopUpMenu object to assign from. + + \return The newly assigned BPopUpMenu object. + + \since BeOS R3 */ @@ -88,9 +106,19 @@ \brief Destructor method. Also frees the memory used by any attached menu items. + + \since BeOS R3 */ +/*! + \name Archiving +*/ + + +//! @{ + + /*! \fn status_t BPopUpMenu::Archive(BMessage* data, bool deep) const \brief Archives the the BMenuField object into the \a data message. @@ -102,6 +130,8 @@ otherwise. \retval B_OK The object was archived successfully. \retval B_NO_MEMORY Ran out of memory while archiving the object. + + \since BeOS R3 */ @@ -111,9 +141,14 @@ \returns A newly created BPopUpMenu object or \c NULL if the message doesn't contain an archived BPopUpMenu. + + \since BeOS R3 */ +//! @} + + /*! \fn BMenuItem* BPopUpMenu::Go(BPoint where, bool deliversMessage, bool openAnyway, bool async) @@ -132,6 +167,8 @@ \c false the menu will not return until a menu item is selected or it is dismissed by the user. If a menu item was selected a pointer to the menu item is returned, if not, \c NULL is returned. + + \since BeOS R3 */ @@ -161,6 +198,8 @@ \c false the menu will not return until a menu item is selected or it is dismissed by the user. If a menu item was selected a pointer to the menu item is returned, if not, \c NULL is returned. + + \since BeOS R3 */ @@ -171,6 +210,8 @@ \param on \c true to turn async-auto-destruct mode on, \c false to turn async-auto-destruct mode off. + + \since BeOS R5 */ @@ -182,6 +223,8 @@ async-auto-destruct mode is turned off. \see SetAsyncAutoDestruct() + + \since BeOS R5 */ @@ -195,14 +238,6 @@ \returns The location that the pop-up-menu will appear on screen in the screen's coordinate system. -*/ - - -/*! - \fn BPopUpMenu& BPopUpMenu::operator=(const BPopUpMenu& other) - \brief Assignment overload method. - - \param other The BPopUpMenu object to assign from. - - \return The newly assigned BPopUpMenu object. + + \since BeOS R3 */ diff --git a/docs/user/interface/RadioButton.dox b/docs/user/interface/RadioButton.dox index c58f329957..51a5e0d0ae 100644 --- a/docs/user/interface/RadioButton.dox +++ b/docs/user/interface/RadioButton.dox @@ -40,6 +40,8 @@ determine what action takes place when each radio button is selected, if any. The message is sent only when a radio button is turned on, not when it is turned off. + + \since BeOS R3 */ @@ -64,6 +66,8 @@ \param resizingMode Defines the behavior of the radio button as the parent view resizes. See BView for details. \param flags Behavior flags for the radio button. See BView for details. + + \since BeOS R3 */ @@ -81,6 +85,8 @@ \param message The \a message to send when the radio button is activated, can be \c NULL. \param flags Behavior flags for the checkbox. See BView for details. + + \since Haiku R1 */ @@ -96,6 +102,8 @@ can be \c NULL. \param message The \a message to send when the radio button is activated, can be \c NULL. + + \since Haiku R1 */ @@ -108,12 +116,16 @@ instead because it can handle errors properly. \param archive The message to construct the BRadioButton object from. + + \since BeOS R3 */ /*! \fn BRadioButton::~BRadioButton() \brief Destructor, does nothing. + + \since BeOS R3 */ @@ -131,6 +143,8 @@ \return A newly created radio button or \c NULL if the message doesn't contain an archived BRadioButton. + + \since BeOS R3 */ @@ -145,6 +159,8 @@ otherwise. \sa BControl::Archive() + + \since BeOS R3 */ @@ -159,13 +175,23 @@ //! @{ +/*! + \fn void BRadioButton::AllAttached() + \copydoc BView::AllAttached() +*/ + + +/*! + \fn void BRadioButton::AllDetached() + \copydoc BView::AllDetached() +*/ + + /*! \fn void BRadioButton::AttachedToWindow() \brief Hook method called when the control is attached to a window. - The default implementation does nothing. - - \sa BControl::AttachedToWindow() + \copydetails BControl::AttachedToWindow() */ @@ -173,31 +199,7 @@ \fn void BRadioButton::DetachedFromWindow() \brief Hook method called when the control is detached from a window. - The default implementation does nothing. - - \sa BControl::DetachedFromWindow() -*/ - - -/*! - \fn void BRadioButton::AllAttached() - \brief Similar to AttachedToWindow() but this method is triggered after - all child views have already been attached to a window. - - The default implementation does nothing. - - \sa BView::AllAttached() -*/ - - -/*! - \fn void BRadioButton::AllDetached() - \brief Similar to AttachedToWindow() but this method is triggered after - all child views have already been detached from a window. - - The default implementation does nothing. - - \sa BView::AllDetached() + \copydetails BControl::DetachedFromWindow() */ @@ -212,6 +214,8 @@ \param updateRect The rectangular area to be drawn. \sa BView::Draw() + + \since BeOS R3 */ @@ -219,24 +223,15 @@ \fn void BRadioButton::FrameMoved(BPoint newPosition) \brief Hook method called when the radio button is moved. - The default implementation does nothing. - - \param newPosition The point that the radio button has been moved to. - - \sa BView::FrameMoved() + \copydetails BView::FrameMoved() */ /*! - \fn void BRadioButton::FrameResized(float width, float height) + \fn void BRadioButton::FrameResized(float newWidth, float newHeight) \brief Hook method called when the radio button is resized. - The default implementation does nothing. - - \param width The new \a width of the radio button. - \param height The new \a height of the radio button. - - \sa BView::FrameResized() + \copydetails BView::FrameResized() */ @@ -247,8 +242,7 @@ Overrides \c B_RETURN and \c B_SPACE from BControl to toggle the value, but don't allow turning the control off, only on. - \param bytes The bytes of the key combination pressed. - \param numBytes The number of bytes in \a bytes. + \copydetails BControl::KeyDown() */ @@ -256,11 +250,7 @@ \fn void BRadioButton::MessageReceived(BMessage* message) \brief Handle \a message received by the associated looper. - The default implemenation does nothing. - - \param message The \a message received by the associated looper. - - \see BControl::MessageReceived() + \copydetails BControl::MessageReceived() */ @@ -270,8 +260,7 @@ Begins tracking the mouse cursor. - \param where The point on the screen where to mouse pointer is when - the mouse button is pressed. + \copydetails BControl::MouseDown() */ @@ -283,19 +272,7 @@ Once MouseDown() has been called on a radio button this method updates the outline when the cursor is inside the control redrawing as necessary. - \param where The new location of the mouse in the control's coordinate system. - \param code One of the following: - - \c B_ENTERED_VIEW The cursor has just entered the control. - - \c B_INSIDE_VIEW The cursor is inside the control. - - \c B_EXITED_VIEW The cursor has left the control's bounds. This only gets - sent if the scope of the mouse events that the control can receive has - been expanded by BView::SetEventMask() or BView::SetMouseEventMask(). - - \c B_OUTSIDE_VIEW The cursor is outside the button. This only gets sent if - the scope of the mouse events that the control can receive has been - expanded by SetEventMask() or SetMouseEventMask(). - \param dragMessage If a drag-and-drop operation is taking place this is a - pointer to a BMessage that holds the drag information, otherwise the - pointer is \c NULL. + \copydetails BControl::MouseMoved() */ @@ -307,10 +284,7 @@ Invoke() method. Unlike a BCheckBox, a BRadioButton only posts its message when it is turned on, not when it is turned off. - \param where The point on the screen where the mouse pointer is located when - the mouse button is released in the view's coordinate system. - - \sa BControl::MouseUp() + \copydetails BControl::MouseUp() */ @@ -319,12 +293,7 @@ \brief Hook method called when the attached window is activated or deactivated. - The default implementation does nothing. - - \param active \c true if the window becomes activated, \c false if the - window becomes deactivated. - - \sa BControl::WindowActivated() + \copydetails BControl::WindowActivated() */ @@ -332,26 +301,18 @@ /*! - \fn void BRadioButton::MakeFocus(bool focused) + \fn void BRadioButton::MakeFocus(bool focus) \brief Makes the radio button the current focus view of the window or gives up being the window's focus view. - The default implementation does nothing. - - \param focused \a true to set focus, \a false to remove it. - - \sa BControl::MakeFocus() + \copydetails BControl::MakeFocus() */ /*! \fn BHandler* BRadioButton::ResolveSpecifier(BMessage* message, int32 index, BMessage* specifier, int32 what, const char* property) - \brief Determine the proper specifier for scripting messages. - - The default implementation does nothing. - - \sa BControl::ResolveSpecifier() + \copydoc BHandler::ResolveSpecifier() */ @@ -362,10 +323,7 @@ Turning a radio button on turns off all sibling radio buttons and calls the Invoke() method. - \param value The value to set the radio button to, should be - either \c B_CONTROL_ON or \c B_CONTROL_OFF. - - \sa BControl::SetValue() + \copydetails BControl::SetValue() */ @@ -379,35 +337,28 @@ \param[out] _width Pointer to a \c float to store the width. \param[out] _height Pointer to a \c float to store the height. + + \since BeOS R3 */ /*! \fn status_t BRadioButton::GetSupportedSuites(BMessage* message) - \brief Report the suites of messages this control understands. - - \param message Allows you to add the names of the suites the radio button - implements to the suites array. - - \return \c B_OK if all went well or an error code otherwise. - - \sa BControl::GetSupportedSuites(); + \copydoc BControl::GetSupportedSuites(); */ /*! \fn status_t BRadioButton::Invoke(BMessage* message) - \brief Sends a copy of the model \a message to the designated target. - - The default implementation does nothing. - - \sa BControl::Invoke() + \copydoc BControl::Invoke() */ /*! \fn status_t BRadioButton::Perform(perform_code code, void* _data) \brief Perform some action. (Internal Method) + + \since Haiku R1 */ @@ -416,6 +367,8 @@ \brief Returns the alignment used by this control in a layout. \return The alignment used by this control as a BAlignment. + + \since Haiku R1 */ @@ -426,6 +379,8 @@ \return The maximum size of the radio button as a BSize. \sa BAbstractLayout::MaxSize() + + \since Haiku R1 */ @@ -436,6 +391,8 @@ The default implementation does nothing. \sa BControl::ResizeToPreferred() + + \since BeOS R3 */ @@ -444,4 +401,6 @@ \brief Set the icon used by the radio button. \see BControl::SetIcon() + + \since Haiku R1 */ diff --git a/docs/user/interface/Rect.dox b/docs/user/interface/Rect.dox index a52102e4d4..4ab8abcddc 100644 --- a/docs/user/interface/Rect.dox +++ b/docs/user/interface/Rect.dox @@ -49,30 +49,40 @@ BRect(0, 0, 31, 31); \code BRect(0, 0, width - 1, height -1); \endcode + + \since BeOS R3 */ /*! \var BRect::left \brief The value of the rectangle's left edge. + + \since BeOS R3 */ /*! \var BRect::top \brief The value of the rectangle's top edge. + + \since BeOS R3 */ /*! \var BRect::right \brief The value of the rectangle's right edge. + + \since BeOS R3 */ /*! \var BRect::bottom \brief The value of the rectangle's bottom edge. + + \since BeOS R3 */ @@ -84,6 +94,8 @@ BRect(0, 0, width - 1, height -1); \sa BRect::Set() \sa BRect::IsValid() + + \since BeOS R3 */ @@ -95,6 +107,8 @@ BRect(0, 0, width - 1, height -1); \param top The top dimension. \param right The right dimension. \param bottom The bottom dimension. + + \since BeOS R3 */ @@ -103,6 +117,8 @@ BRect(0, 0, width - 1, height -1); \brief Creates a new BRect object as a copy of \a other. \param other The BRect object to copy. + + \since BeOS R3 */ @@ -113,6 +129,8 @@ BRect(0, 0, width - 1, height -1); \param leftTop The position to set the left top corner to. \param rightBottom The position to set the bottom right corner to. + + \since BeOS R3 */ @@ -123,6 +141,8 @@ BRect(0, 0, width - 1, height -1); \param leftTop The position of the left top corner. \param size The \a size of the rect defining its width and height. + + \since Haiku R1 */ @@ -132,17 +152,8 @@ BRect(0, 0, width - 1, height -1); to 0 and setting the right and bottom dimensions to \a side - 1. \param side The dimension to set the right and bottom sides. -*/ - -/*! - \fn inline BRect& BRect::operator=(const BRect& other) - \brief Creates a new BRect object as a copy of \a other by overloading - the = operator. - - \param other The BRect object to copy. - - \return The newly created BRect object. + \since Haiku R1 */ @@ -155,6 +166,8 @@ BRect(0, 0, width - 1, height -1); is greater than or equal to its top value. \return \c true if the BRect is valid, \c false if the BRect is invalid. + + \since BeOS R3 */ @@ -165,6 +178,8 @@ BRect(0, 0, width - 1, height -1); \param rect The BRect to use to test for intersection. \return \c true if the rectangles intersect, \a false otherwise. + + \since BeOS R3 */ @@ -175,6 +190,8 @@ BRect(0, 0, width - 1, height -1); \param point The point to test. \return \c true if the BRect contains \a point, \c false otherwise. + + \since BeOS R3 */ @@ -185,6 +202,8 @@ BRect(0, 0, width - 1, height -1); \param rect The rectangle to test. \return \c true if the BRect contains \a rect, \c false otherwise. + + \since BeOS R3 */ @@ -196,6 +215,8 @@ BRect(0, 0, width - 1, height -1); \verbatim BRect(l:%.1f, t:%.1f, r:%.1f, b:%.1f). \endverbatim + + \since BeOS R3 */ @@ -205,6 +226,8 @@ BRect(0, 0, width - 1, height -1); ceil(\a right - \a left). \return The width of the rectangle as an int32. + + \since BeOS R3 */ @@ -222,6 +245,8 @@ BRect(0, 0, width - 1, height -1); ceil(\a bottom - \a top). \return The height of the rectangle as an int32. + + \since BeOS R3 */ @@ -230,6 +255,8 @@ BRect(0, 0, width - 1, height -1); \brief Returns the height of the rectangle. \return The height of the rectangle as a float. + + \since BeOS R3 */ @@ -238,6 +265,8 @@ BRect(0, 0, width - 1, height -1); \brief Returns the dimensions of the BRect. \return The dimensions of the BRect as a BSize. + + \since Haiku R1 */ @@ -250,6 +279,8 @@ BRect(0, 0, width - 1, height -1); \param top The \a top dimension to set. \param right The \a right dimension to set. \param bottom The \a bottom dimension to set. + + \since BeOS R3 */ @@ -258,6 +289,8 @@ BRect(0, 0, width - 1, height -1); \brief Sets the left top \a point of the BRect. \param point The \a point to set. + + \since BeOS R3 */ @@ -266,6 +299,8 @@ BRect(0, 0, width - 1, height -1); \brief Sets the right bottom \a point of the BRect. \param point The \a point to set. + + \since BeOS R3 */ @@ -274,6 +309,8 @@ BRect(0, 0, width - 1, height -1); \brief Sets the left bottom \a point of the BRect. \param point The \a point to set. + + \since BeOS R3 */ @@ -282,6 +319,8 @@ BRect(0, 0, width - 1, height -1); \brief Sets the right top \a point of the BRect. \param point The \a point to set. + + \since BeOS R3 */ @@ -290,6 +329,8 @@ BRect(0, 0, width - 1, height -1); \brief Returns the left top point of the BRect. \return The left top point as a BPoint. + + \since BeOS R3 */ @@ -298,6 +339,8 @@ BRect(0, 0, width - 1, height -1); \brief Returns the right bottom point of the BRect. \return The right bottom point as a BPoint. + + \since BeOS R3 */ @@ -306,6 +349,8 @@ BRect(0, 0, width - 1, height -1); \brief Returns the left bottom point of the BRect. \return The left bottom point as a BPoint. + + \since BeOS R3 */ @@ -314,11 +359,13 @@ BRect(0, 0, width - 1, height -1); \brief Returns the right top point of the BRect. \return The left right point as a BPoint. + + \since BeOS R3 */ /*! - \name Transformation methods + \name Transformation Positive values make the rectangle smaller, negative values make it larger. @@ -335,6 +382,8 @@ BRect(0, 0, width - 1, height -1); \brief Inset the BRect by the x and y coordinates of \a point. \param point The \a point to use to inset the BRect. + + \since BeOS R3 */ @@ -345,6 +394,8 @@ BRect(0, 0, width - 1, height -1); \param dx The horizontal distance to inset the BRect by. \param dy The vertical distance to inset the BRect by. + + \since BeOS R3 */ @@ -357,6 +408,8 @@ BRect(0, 0, width - 1, height -1); \return The transformed BRect. \sa BRect::InsetBy(BPoint point) + + \since BeOS R5 */ @@ -370,6 +423,8 @@ BRect(0, 0, width - 1, height -1); \return The transformed BRect. \sa BRect::InsetBy(float dx, float dy) + + \since BeOS R5 */ @@ -383,6 +438,8 @@ BRect(0, 0, width - 1, height -1); \return A copy of the BRect after it has been transformed. \sa BRect::InsetBy(BPoint point) + + \since BeOS R5 */ @@ -397,6 +454,8 @@ BRect(0, 0, width - 1, height -1); \return A copy of the BRect after it has been transformed. \sa BRect::InsetBy(float dx, float dy) + + \since BeOS R5 */ @@ -404,7 +463,7 @@ BRect(0, 0, width - 1, height -1); /*! - \name Translation methods + \name Translation Positive values move the rectangle right and down, negative values move the rectangle left and up. @@ -424,6 +483,8 @@ BRect(0, 0, width - 1, height -1); of the rectangle. \param point The \a point to use to move the rectangle. + + \since BeOS R3 */ @@ -434,6 +495,8 @@ BRect(0, 0, width - 1, height -1); \param dx The number of units the move the rectangle vertically. \param dy The number of units the move the rectangle horizontally. + + \since BeOS R3 */ @@ -444,6 +507,8 @@ BRect(0, 0, width - 1, height -1); \param point The \a point to use to move the rectangle. \sa BRect::OffsetBy(BPoint point) + + \since BeOS R5 */ @@ -457,6 +522,8 @@ BRect(0, 0, width - 1, height -1); \return The translated BRect. \sa BRect::OffsetBy(float dx, float dy) + + \since BeOS R5 */ @@ -470,6 +537,8 @@ BRect(0, 0, width - 1, height -1); \return A copy of the BRect after it has been translated. \sa BRect::OffsetBy(BPoint point) + + \since BeOS R5 */ @@ -484,6 +553,8 @@ BRect(0, 0, width - 1, height -1); \return A copy of the BRect after it has been translated. \sa BRect::OffsetBy(float dx, float dy) + + \since BeOS R5 */ @@ -492,6 +563,8 @@ BRect(0, 0, width - 1, height -1); \brief Move the BRect to the location specified by \a point. \param point The location to move the BRect to. + + \since BeOS R3 */ @@ -502,6 +575,8 @@ BRect(0, 0, width - 1, height -1); \param x The vertical coordinate of the point to move the BRect to. \param y The horizontal coordinate of the point to move the BRect to. + + \since BeOS R3 */ @@ -514,6 +589,8 @@ BRect(0, 0, width - 1, height -1); \return The translated BRect. \sa BRect::OffsetTo(BPoint point) + + \since BeOS R5 */ @@ -527,6 +604,8 @@ BRect(0, 0, width - 1, height -1); \return The translated BRect. \sa BRect::OffsetTo(float x, float y) + + \since BeOS R5 */ @@ -540,13 +619,15 @@ BRect(0, 0, width - 1, height -1); \return A copy of the BRect after it has been translated. \sa BRect::OffsetTo(BPoint point) + + \since BeOS R5 */ /*! \fn BRect BRect::OffsetToCopy(float x, float y) const \brief Like BRect::OffsetTo() but returns a copy of the translated - BRect leaving the original unmodified. + BRect leaving the original unmodified. \param x The number of units the move the rectangle vertically. \param y The number of units the move the rectangle horizontally. @@ -554,6 +635,8 @@ BRect(0, 0, width - 1, height -1); \return A copy of the BRect after it has been translated. \sa BRect::OffsetTo(float x, float y) + + \since BeOS R5 */ @@ -561,13 +644,26 @@ BRect(0, 0, width - 1, height -1); /*! - \name Comparison methods + \name Operators */ //! @{ +/*! + \fn inline BRect& BRect::operator=(const BRect& other) + \brief Creates a new BRect object as a copy of \a other by overloading + the = operator. + + \param other The BRect object to copy. + + \return The newly created BRect object. + + \since BeOS R3 +*/ + + /*! \fn bool BRect::operator==(BRect other) const \brief Returns whether or not two rectangles coincide exactly. @@ -575,6 +671,8 @@ BRect(0, 0, width - 1, height -1); \param other The BRect to compare with. \return \c true if the rectangles coincide, \c false otherwise. + + \since BeOS R3 */ @@ -585,20 +683,11 @@ BRect(0, 0, width - 1, height -1); \param other The BRect to compare with. \return \c true if the rectangles do NOT coincide, \c false otherwise. + + \since BeOS R3 */ -//! @} - - -/*! - \name Intersection and union methods -*/ - - -//! @{ - - /*! \fn BRect BRect::operator&(BRect other) const \brief Returns a new BRect that is the intersection of the BRect and @@ -609,6 +698,8 @@ BRect(0, 0, width - 1, height -1); \param other The BRect to take the intersection of. \return A new BRect that is the intersection of the BRect and \a other. + + \since BeOS R3 */ @@ -621,6 +712,8 @@ BRect(0, 0, width - 1, height -1); \param other The BRect to take the union of. \return A new BRect that is the union of the BRect and \a other. + + \since BeOS R3 */ diff --git a/docs/user/interface/Region.dox b/docs/user/interface/Region.dox index c51887bf36..4162a08943 100644 --- a/docs/user/interface/Region.dox +++ b/docs/user/interface/Region.dox @@ -31,6 +31,8 @@ clipping masks. \warning BRegion is designed to be used with integral coordinates only. + + \since BeOS R3 */ @@ -38,6 +40,8 @@ \fn BRegion::BRegion() \brief Initializes an empty region. The region contains no rectangles, and its bounds are invalid. + + \since BeOS R3 */ @@ -46,6 +50,8 @@ \brief Initializes a region as a copy of \a other. \param other The region to copy. + + \since BeOS R3 */ @@ -54,6 +60,8 @@ \brief Initializes a region to contain a \a rect. \param rect The BRect to add to the region. + + \since BeOS R5 */ @@ -63,15 +71,27 @@ \param clipping The clipping_rect to set the region to, already in internal rect format. + + \since Haiku R1 */ /*! \fn BRegion::~BRegion() \brief Destroys the BRegion freeing any memory allocated by it. + + \since BeOS R3 */ +/*! + \name Operators +*/ + + +//! @{ + + /*! \fn BRegion& BRegion::operator=(const BRegion& other) \brief Modifies the BRegion to be a copy of \a other. @@ -79,6 +99,8 @@ \param other the BRegion to copy. \return This method always returns \c *this. + + \since BeOS R3 */ @@ -89,30 +111,41 @@ \param other the BRegion to compare to. \return \c true if the regions are the same, \c false otherwise. + + \since BeOS R3 */ +//! @} + + /*! - \fn void BRegion::Set(BRect newBounds) + \fn void BRegion::Set(BRect rect) \brief Set the region to bounds of \a newBounds. - \param newBounds The BRect to set the bounds to. + \param rect The BRect to set the bounds to. + + \since BeOS R3 */ /*! - \fn void BRegion::Set(clipping_rect newBounds) + \fn void BRegion::Set(clipping_rect clipping) \brief Set the region to the bounds of \a clipping_rect. - \param newBounds The clipping_rect to set the bounds to. + \param clipping The clipping_rect to set the bounds to. + + \since Haiku R1 */ /*! \fn BRect BRegion::Frame() const - \brief Returns the region's bounds. + \brief Returns a rectangle that encloses the BRegion. - \return A BRect which represents the region's bounds. + \return A BRect that encloses the BRegion. + + \since BeOS R3 */ @@ -122,6 +155,8 @@ (which has integer coordinates). \return The clipping_rect which represents the region's bounds. + + \since Haiku R1 */ @@ -133,6 +168,8 @@ \return If the given index is valid, it returns the BRect at that index, otherwise, it returns an invalid BRect. + + \since BeOS R3 */ @@ -144,6 +181,8 @@ \return If the given index is valid, it returns the BRect at that index, otherwise, it returns an invalid BRect. + + \since Haiku R1 */ @@ -156,6 +195,8 @@ \return If the given index is valid, it returns the clipping_rect at that index, otherwise, it returns an invalid clipping_rect. + + \since Haiku R1 */ @@ -168,6 +209,8 @@ \return If the given index is valid, it returns the clipping_rect at that index, otherwise, it returns an invalid clipping_rect. + + \since Haiku R1 */ @@ -176,6 +219,8 @@ \brief Returns the number of rectangles contained in the region. \return The number of rectangles in the region as an int32. + + \since BeOS R3 */ @@ -184,6 +229,8 @@ \brief Returns the number of rectangles contained in the region. \return The number of rectangles in the region as an int32. + + \since Haiku R1 */ @@ -196,6 +243,8 @@ \return \c true if the region has any area in common with the BRect, \c false if not. + + \since BeOS R3 */ @@ -208,6 +257,8 @@ \return \c true if the region has any area in common with the clipping_rect, \c false if not. + + \since Haiku R1 */ @@ -218,6 +269,8 @@ \param point The \a point to check. \return \c true if the region contains the \a point, \c false if not. + + \since BeOS R3 */ @@ -229,6 +282,8 @@ \param y The \c y coordinate of the point to check. \return \c true if the region contains the point, \c false if not. + + \since Haiku R1 */ @@ -240,12 +295,16 @@ \param y The \c y coordinate of the point to check. \return \c true if the region contains the point, \c false if not. + + \since Haiku R1 */ /*! \fn void BRegion::PrintToStream() const \brief Prints each rect in the the BRegion to standard output. + + \since BeOS R3 */ @@ -256,6 +315,8 @@ the region's bounds. \param point The point to get the coordinates to offset by. + + \since Haiku R1 */ @@ -266,6 +327,8 @@ \param x The horizontal offset. \param y The vertical offset. + + \since BeOS R3 */ @@ -273,6 +336,8 @@ \fn void BRegion::MakeEmpty() \brief Empties the region so that it doesn't containt any rects, and invalidates its bounds. + + \since BeOS R3 */ @@ -281,6 +346,8 @@ \brief Modifies the region so that it includes the given \a rect. \param rect The BRect to include in the region. + + \since BeOS R3 */ @@ -290,6 +357,8 @@ rectangle. \param clipping The clipping_rect to include in the region. + + \since Haiku R1 */ @@ -298,6 +367,8 @@ \brief Modifies the region to include the area of the given \a region. \param region The \a region to be included. + + \since BeOS R3 */ @@ -306,6 +377,8 @@ \brief Modifies the region excluding the area of the given \a rect. \param rect The BRect to be excluded. + + \since BeOS R3 */ @@ -315,6 +388,8 @@ rectangle. \param clipping The clipping_rect to be excluded. + + \since Haiku R1 */ @@ -324,6 +399,8 @@ \a region. \param region The BRegion to be excluded. + + \since BeOS R3 */ @@ -333,6 +410,8 @@ in common with \a region. \param region the BRegion to intersect with. + + \since BeOS R3 */ @@ -342,21 +421,6 @@ which the BRegion and \a region do NOT have in common. \param region the BRegion to exclusively include. -*/ - - -/*! - \fn void BRegion::_AdoptRegionData(BRegion& region) - \brief Takes over the data of \a region and empties it. - - \param region The \a region to adopt data from. -*/ - - -/*! - \fn bool BRegion::_SetSize(int32 newSize) - \brief Reallocate the memory in the region. - - \param newSize The amount of rectangles that the region should be - able to hold. + + \since Haiku R1 */ diff --git a/docs/user/interface/Screen.dox b/docs/user/interface/Screen.dox index 82784350bf..a13dc6e85a 100644 --- a/docs/user/interface/Screen.dox +++ b/docs/user/interface/Screen.dox @@ -26,7 +26,7 @@ \ingroup interface \ingroup libbe \brief The BScreen class provides methods to retrieve and change display - settings. + settings. Each BScreen object describes one display connected to the computer. Multiple BScreen objects can represent the same physical display. @@ -66,42 +66,50 @@ monitor into a low-power mode. Call DPMSCapabilites() to check what modes are supported by your monitor. DPMSState() tells you what state your monitor is currently in and SetDPMS() allows you to change it. + + \since BeOS R3 */ /*! \fn BScreen::BScreen(screen_id id) \brief Creates a BScreen object which represents the display - connected to the computer with the given screen_id. + connected to the computer with the given screen_id. In the current implementation, there is only one display (\c B_MAIN_SCREEN_ID). To be sure that the object was constructed correctly, call IsValid(). \param id The screen_id of the screen to create a BScreen object from. + + \since BeOS R3 */ /*! \fn BScreen::BScreen(BWindow* window) \brief Creates a BScreen object which represents the display that - contains \a window. + contains \a window. In the current implementation, there is only one display (\c B_MAIN_SCREEN_ID). To be sure that the object was constructed correctly, call IsValid(). \param window A BWindow object. + + \since BeOS R3 */ /*! \fn BScreen::~BScreen() \brief Frees the resources used by the BScreen object and unlocks the - screen. + screen. \note The main screen object will never go away, even if you disconnect - all monitors. + all monitors. + + \since BeOS R3 */ @@ -116,9 +124,11 @@ /*! \fn bool BScreen::IsValid() \brief Checks that the BScreen object represents a real display that is - connected to the computer. + connected to the computer. \return \c true if the BScreen object is valid, \c false otherwise. + + \since BeOS R3 */ @@ -127,15 +137,19 @@ \brief Sets the BScreen object to the next display in the screen list. \return \c B_OK if successful, otherwise \c B_ERROR. + + \since BeOS R5 */ /*! \fn color_space BScreen::ColorSpace() - \brief Gets the color_space of the display. + \brief Returns the color_space of the display. \return \c B_CMAP8, \c B_RGB15, \c B_RGB32, or \c B_NO_COLOR_SPACE - if the BScreen object is invalid. + if the BScreen object is invalid. + + \since BeOS R3 */ @@ -151,6 +165,8 @@ You can set the frame programmatically by calling the SetMode() method. \return a BRect frame of the screen in the screen's coordinate system. + + \since BeOS R3 */ @@ -162,6 +178,8 @@ even if the object is invalid. \return A screen_id that identifies the screen. + + \since BeOS R3 */ @@ -170,18 +188,22 @@ \brief Blocks until the monitor has finished its current vertical retrace. \return \c B_OK or \c B_ERROR if the screen object is invalid. + + \since BeOS R3 */ /*! \fn status_t BScreen::WaitForRetrace(bigtime_t timeout) \brief Blocks until the monitor has finished its current vertical retrace - or until \a timeout has expired. + or until \a timeout has expired. \param timeout The amount of time to wait before returning. \return \c B_OK if the monitor has retraced in the given \a timeout - duration, \c B_ERROR otherwise. + duration, \c B_ERROR otherwise. + + \since BeOS R5 */ @@ -189,7 +211,7 @@ /*! - \name Color Methods + \name Color */ @@ -198,20 +220,22 @@ /*! \fn inline uint8 BScreen::IndexForColor(rgb_color color) - \brief Gets the 8-bit color index that most closely matches a - 32-bit \a color. + \brief Returns the 8-bit color index that most closely matches a + 32-bit \a color. \param color The 32-bit \a color to get the 8-bit index of. \return An 8-bit color index in the screen's color_map. + + \since BeOS R3 */ /*! \fn uint8 BScreen::IndexForColor(uint8 red, uint8 green, uint8 blue, - uint8 alpha) - \brief Gets the 8-bit color index that most closely matches a set of - \a red, \a green, \a blue, and \a alpha values. + uint8 alpha) + \brief Returns the 8-bit color index that most closely matches a set of + \a red, \a green, \a blue, and \a alpha values. \param red The \a red value. \param green The \a green value. @@ -219,6 +243,8 @@ \param alpha The \a alpha value. \return An 8-bit color index in the screen's color_map. + + \since BeOS R3 */ @@ -229,6 +255,8 @@ \param index The 8-bit color \a index to convert to a 32-bit color. \return A 32-bit rgb_color structure. + + \since BeOS R3 */ @@ -241,7 +269,9 @@ \param index The 8-bit color \a index. \return An 8-bit color \a index that represents the "Inversion" of the - given color in the screen's color_map. + given color in the screen's color_map. + + \since BeOS R3 */ @@ -250,6 +280,8 @@ \brief Gets the color_map of the BScreen. \return A pointer to the BScreen object's color_map. + + \since BeOS R3 */ @@ -257,7 +289,7 @@ /*! - \name Bitmap Methods + \name Bitmap */ @@ -266,39 +298,43 @@ /*! \fn status_t BScreen::GetBitmap(BBitmap** _bitmap, bool drawCursor, - BRect* bounds) + BRect* bounds) \brief Allocates a BBitmap and copies the contents of the screen into it. \note GetBitmap() will allocate a BBitmap object for you while - ReadBitmap() requires you to pre-allocate a BBitmap object first. + ReadBitmap() requires you to pre-allocate a BBitmap object first. \note The caller is responsible for freeing the BBitmap object. \param _bitmap A pointer to a BBitmap pointer where this method will - store the contents of the display. + store the contents of the display. \param drawCursor Specifies whether or not to draw the cursor. \param bounds Specifies the screen area that you want copied. If - \a bounds is \c NULL then the entire screen is copied. + \a bounds is \c NULL then the entire screen is copied. \return \c B_OK if the operation was successful, \c B_ERROR otherwise. + + \since BeOS R4 */ /*! \fn status_t BScreen::ReadBitmap(BBitmap* bitmap, bool drawCursor, - BRect* bounds) + BRect* bounds) \brief Copies the contents of the screen into a BBitmap. \note ReadBitmap() requires you to pre-allocate a BBitmap object first, - while GetBitmap() will allocate a BBitmap object for you. + while GetBitmap() will allocate a BBitmap object for you. \param bitmap A pointer to a pre-allocated BBitmap where this - method will store the contents of the display. + method will store the contents of the display. \param drawCursor Specifies whether or not to draw the cursor. \param bounds Specifies the screen area that you want copied. If - \a bounds is \c NULL then the entire screen is copied. + \a bounds is \c NULL then the entire screen is copied. \return \c B_OK if the operation was successful, \c B_ERROR otherwise. + + \since BeOS R4 */ @@ -306,7 +342,7 @@ /*! - \name Desktop Color Methods + \name Desktop Color */ @@ -319,6 +355,8 @@ \return A 32-bit rgb_color structure containing the background color of the current workspace. + + \since BeOS R3 */ @@ -331,6 +369,8 @@ \return An 32-bit rgb_color structure containing the background color of the specified \a workspace. + + \since Haiku R1 */ @@ -340,17 +380,21 @@ \param color The 32-bit \a color to paint the desktop background. \param stick Whether or not the \a color will stay after a reboot. + + \since BeOS R3 */ /*! \fn void BScreen::SetDesktopColor(rgb_color color, uint32 workspace, - bool stick) + bool stick) \brief Set the background \a color of the specified \a workspace. \param color The 32-bit \a color to paint the desktop background. \param workspace The \a workspace index to update. \param stick Whether or not the \a color will stay after a reboot. + + \since Haiku R1 */ @@ -358,7 +402,7 @@ /*! - \name Display Mode Methods + \name Display Mode The following methods retrieve and alter the display_mode structure of a screen. The display_mode structure contains screen size, @@ -371,8 +415,7 @@ /*! \fn status_t BScreen::ProposeMode(display_mode* target, - const display_mode* low, - const display_mode* high) + const display_mode* low, const display_mode* high) \brief Adjust the \a target mode to make it a supported mode. The list of supported modes for the graphics card is supplied by @@ -382,11 +425,14 @@ \param low The lower display mode limit. \param high The higher display mode limit. + \returns A status code. \retval B_OK if \a target is supported and falls within the - \a low and \a high limits. + \a low and \a high limits. \retval B_BAD_VALUE if \a target is supported but does not - fall within the \a low and \a high limits. + fall within the \a low and \a high limits. \retval B_ERROR if the target mode isn't supported. + + \since BeOS R5 */ @@ -396,18 +442,20 @@ graphics card into \a _modeList. \warning The monitor may not be able to display all of the modes that - GetModeList() retrieves. + GetModeList() retrieves. \note The caller is responsible for freeing the display_mode object. \param _modeList A pointer to a display_mode pointer, where the function - will allocate an array of display_mode structures. + will allocate an array of display_mode structures. \param _count A pointer to an integer used to store the count of - available display modes. + available display modes. \retval B_OK if the operation was successful. \retval B_ERROR if \a modeList or \a count is invalid. \retval B_ERROR for all other errors. + + \since BeOS R5 */ @@ -420,13 +468,15 @@ \retval B_OK if the operation was successful. \retval B_BAD_VALUE if \a mode is invalid. \retval B_ERROR for all other errors. + + \since BeOS R5 */ /*! \fn status_t BScreen::GetMode(uint32 workspace, display_mode* mode) \brief Fills out the display_mode struct from the specified - \a workspace. + \a workspace. \param workspace The index of the \a workspace to query. \param mode A pointer to a display_mode structure to copy into. @@ -434,6 +484,8 @@ \retval B_OK if the operation was successful \retval B_BAD_VALUE if \a mode is invalid. \retval B_ERROR for all other errors. + + \since Haiku R1 */ @@ -445,20 +497,24 @@ \param makeDefault Whether or not \a mode is set as the default. \return \c B_OK if the operation was successful, \c B_ERROR otherwise. + + \since BeOS R5 */ /*! \fn status_t BScreen::SetMode(uint32 workspace, display_mode* mode, - bool makeDefault) + bool makeDefault) \brief Set the screen in the specified \a workspace to the given \a mode. \param workspace The index of the workspace to set the \a mode of. \param mode A pointer to a display_mode struct. \param makeDefault Whether or not the \a mode is set as the default - for the specified \a workspace. + for the specified \a workspace. \return \c B_OK if the operation was successful, \c B_ERROR otherwise. + + \since Haiku R1 */ @@ -466,7 +522,7 @@ /*! - \name Display and Graphics Card Info Methods + \name Display and Graphics Card Info */ @@ -478,11 +534,13 @@ \brief Fills out the \a info struct with information about a graphics card. \param info An accelerant_device_info struct to store the device - \a info. + \a info. \retval B_OK if the operation was successful. \retval B_BAD_VALUE if \a info is invalid. \retval B_ERROR for all other errors. + + \since BeOS R5 */ @@ -495,12 +553,14 @@ \retval B_OK if the operation was successful. \retval B_BAD_VALUE if \a info is invalid. \retval B_ERROR for all other errors. + + \since Haiku R1 */ /*! \fn status_t BScreen::GetPixelClockLimits(display_mode* mode, - uint32* _low, uint32* _high) + uint32* _low, uint32* _high) \brief Gets the minimum and maximum pixel clock rates that are possible for the specified \a mode. @@ -513,21 +573,25 @@ \retval B_OK if the operation was successful. \retval B_BAD_VALUE if \a mode, \a low, or \a high is invalid. \retval B_ERROR for all other errors. + + \since BeOS R5 */ /*! - \fn status_t BScreen::GetTimingConstraints(display_timing_constraints* - constraints) + \fn status_t BScreen::GetTimingConstraints( + display_timing_constraints* constraints) \brief Fills out the \a constraints structure with the timing constraints - of the current display mode. + of the current display mode. \param constraints A pointer to a display_timing_constraints structure - to store the timing constraints. + to store the timing constraints. \retval B_OK if the operation was successful. \retval B_BAD_VALUE if \a constraints is invalid. \retval B_ERROR for all other errors. + + \since BeOS R5 */ @@ -563,26 +627,29 @@ /*! \fn status_t BScreen::SetDPMS(uint32 dpmsState) \brief Sets the VESA Display Power Management Signaling (DPMS) state for - the display. + the display. - \param dpmsState The DPMS state to set. - valid values are: - - \c B_DPMS_ON - - \c B_DPMS_STAND_BY - - \c B_DPMS_SUSPEND - - \c B_DPMS_OFF + \param dpmsState The DPMS state to set, valid values are: + - \c B_DPMS_ON + - \c B_DPMS_STAND_BY + - \c B_DPMS_SUSPEND + - \c B_DPMS_OFF \return \c B_OK if the operation was successful, otherwise an error code. + + \since BeOS R5 */ /*! \fn uint32 BScreen::DPMSState() \brief Gets the current VESA Display Power Management Signaling (DPMS) - state of the screen. + state of the screen. \return The current VESA Display Power Management Signaling (DPMS) state - of the display or 0 in the case of an error. + of the display or 0 in the case of an error. + + \since BeOS R5 */ @@ -590,7 +657,7 @@ /*! \fn uint32 BScreen::DPMSCapabilites() \brief Gets the VESA Display Power Management Signaling (DPMS) - modes that the display supports as a bit mask. + modes that the display supports as a bit mask. - \c B_DPMS_ON is worth 1 - \c B_DPMS_STAND_BY is worth 2 @@ -598,7 +665,9 @@ - \c B_DPMS_OFF is worth 8 \return A bit mask of the VESA Display Power Management Signaling (DPMS) - modes that the display supports or 0 in the case of an error. + modes that the display supports or 0 in the case of an error. + + \since BeOS R5 */ @@ -606,7 +675,7 @@ /*! - \name Deprecated methods + \name Deprecated Methods */ @@ -617,28 +686,35 @@ \fn BPrivate::BPrivateScreen* BScreen::private_screen() \brief Returns the BPrivateScreen used by the BScreen object. - \return A pointer to the BPrivateScreen class internally used by the BScreen - object. + \return A pointer to the BPrivateScreen class internally used by the + BScreen object. + + \since Haiku R1 */ /*! \fn status_t BScreen::ProposeDisplayMode(display_mode* target, - const display_mode* low, - const display_mode* high) + const display_mode* low, const display_mode* high) \brief Deprecated, use ProposeMode() instead. + + \since BeOS R5 */ /*! \fn void* BScreen::BaseAddress() \brief Returns the base address of the frame buffer. + + \since Haiku R1 */ /*! \fn uint32 BScreen::BytesPerRow() \brief Returns the bytes per row of the frame buffer. + + \since Haiku R1 */ diff --git a/docs/user/interface/ScrollBar.dox b/docs/user/interface/ScrollBar.dox new file mode 100644 index 0000000000..c2c5d57036 --- /dev/null +++ b/docs/user/interface/ScrollBar.dox @@ -0,0 +1,580 @@ +/* + * Copyright 2014 Haiku, Inc. All rights reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * John Scipione, jscipione@gmail.com + * + * Corresponds to: + * headers/os/interface/ScrollBar.h hrev47312 + * src/kits/interface/ScrollBar.cpp hrev47312 + */ + + +/*! + \file ScrollBar.h + \ingroup interface + \ingroup libbe + \brief BScrollBar class definition. + \since BeOS R3 +*/ + + +/*! + \class BScrollBar + \ingroup interface + \ingroup libbe + \brief User interface element used to scroll a target view vertically or + horizontally. + + Scroll bars are usually added as siblings of the target view, that way + when the parent is resized the target view and scroll bars can be resized + as well. The BScrollView class conveniently provides such a container view + adding the scroll bars and target view making itself the parent. + + Scroll bars control the target view, but a target can also be scrolled + independently by calling BView::ScrollTo() or BView::ScrollBy(). + When a target view is set to a BScrollBar, the view is notified and stores + a pointer to the BScrollBar object so that it can communicate its scroll + information back to the scroll bar. + + \sa BView::ScrollTo() + \sa BView::ScrollBy() + \sa BView::ScrollBar() + + \since BeOS R3 +*/ + + +/*! + \fn BScrollBar::BScrollBar(BRect frame, const char* name, BView* target, + float min, float max, orientation direction) + \brief Instantiates a new scroll bar and connects it to the \a target + view. + + The \a frame rectangle defines the location and size of the scroll bar + within its parent view. A horizontal scroll bar should be + \c B_H_SCROLL_BAR_HEIGHT pixels high, and a vertical scroll bar should be + \c B_V_SCROLL_BAR_WIDTH pixels wide. + + Unlike most BView derived constructors in the Interface Kit this method + doesn't provide a resizing mode. Scroll bars are assigned a resizing + behavior based on their \a direction. Horizontal scroll bars resize + themselves horizontally (\c B_FOLLOW_LEFT_RIGHT | \c B_FOLLOW_BOTTOM) and + vertical scroll bars resize themselves vertically + (\c B_FOLLOW_TOP_BOTTOM | \c B_FOLLOW_RIGHT). + + \param frame The \a frame rectangle of the scroll bar. + \param name The name of the scroll bar, can be \c NULL. + \param target The \a target view to scroll, can be \c NULL. + \param min The \a min scroll value. + \param max The \a max scroll value. + \param direction The scroll \a direction. Either \c B_HORIZONTAL + or \c B_VERTICAL. + + \sa SetTarget() to set the \a target. + \sa SetRange() to set the \a min and \a max values. + \sa SetOrientation() to set the scroll bar \a direction. + + \since BeOS R3 +*/ + + +/*! + \fn BScrollBar::BScrollBar(const char* name, BView* target, + float min, float max, orientation direction) + \brief Instantiates a new scroll bar to be used as part of a layout and + connects it to the \a target view. + + \param name The name of the scroll bar, can be \c NULL. + \param target The \a target view to scroll, can be \c NULL. + \param min The \a min scroll value. + \param max The \a max scroll value. + \param direction The scroll \a direction. Either \c B_HORIZONTAL + or \c B_VERTICAL. + + \sa SetTarget() to set the \a target. + \sa SetRange() to set the \a min and \a max values. + \sa SetOrientation() to set the scroll bar \a direction. + + \since Haiku R1 +*/ + + +/*! + \fn BScrollBar::BScrollBar(BMessage* data) + \brief Archive constructor. + + \param data The message \a data to construct the scroll bar from. + + \since BeOS R3 +*/ + + +/*! + \fn BScrollBar::~BScrollBar() + \brief Destructor method. + + Deletes the scroll bar, sets the target to \c NULL and frees any + memory used. + + \since BeOS R3 +*/ + + +/*! + \name Archiving +*/ + + +//! @{ + + +/*! + \fn BArchivable* BScrollBar::Instantiate(BMessage* data) + \brief Creates a new BScrollBar object from the \a data message. + + \return A newly created scroll bar or \c NULL if the message doesn't + contain an archived BScrollBar object. + + \since BeOS R3 +*/ + + +/*! + \fn status_t BScrollBar::Archive(BMessage* data, bool deep) const + \brief Archives the object into the \a data message. + + \param data A pointer to the BMessage object to archive the object into. + \param deep Whether or not to archive child views as well. + + \return A status code, \c B_OK if everything went well or an error code + otherwise. + + \since BeOS R3 +*/ + + +//! @} + + +/*! + \fn void BScrollBar::SetValue(float value) + \brief Sets the value of the scroll bar scrolling the scroll thumb and + target view accordingly. + + Setting the \a value programmatically using this method causes the + ValueChanged() method to be called. + + Derived classes can override this method to do something different than + scrolling the target view. + + \param value The value to set the scroll bar value to, rounded to the + nearest integer. + + \sa ValueChanged() + + \since BeOS R3 +*/ + + +/*! + \fn float BScrollBar::Value() const + \brief Returns the scroll bar's value. + + \return The scroll bar's value as a float. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollBar::SetProportion(float value) + \brief Set the ratio of the size of a scroll knob to the scroll bar. + + \note If \a value is outside the range 0.0 to 1.0 it is clipped + to that range. + + \param value a number between 0.0 and 1.0 that represents the proportion of + the document that can be displayed within the target view. + + \since BeOS R3 +*/ + + +/*! + \fn float BScrollBar::Proportion() const + \brief Returns the ratio of the size of a scroll knob to the scroll bar. + + \return A value between 0.0 and 1.0 as a float. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollBar::SetRange(float min, float max) + \brief Set the range of values that the scroll bar represents from \a min to + \a max. + + These values should be calculated from the enclosing bounds of the target view. + If \a min and \a max are both 0 the scroll bar is disabled and the knob is not + drawn. + + If the range changes such that the value is clipped SetValue() is called which + triggers ValueChanged() to be triggered. + + \param min The \a min value of the range, rounded to the nearest integer. + \param max The \a max value of the range, rounded to the nearest integer. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollBar::GetRange(float* min, float* max) const + \brief Fills out \a min and \a max with the minimum and maximum range values. + + \remark Either \a min or \a max may be set to \c NULL if you only want to get + the other one. + + \param min A pointer to a float to be filled out with the \a min value. + \param max A pointer to a float to be filled out with the \a max value. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollBar::SetSteps(float smallStep, float largeStep) + \brief Sets how far the scroll bar moves when it is scrolled. + + \note In BeOS R5, steps can be set only after the scroll bar is attached + to a window, probably because the data is kept server-side, in Haiku + this limitation has been removed. + + \note The BeBook also says that we need to specify an integral value even + though the step values are floats, in Haiku we round the values + instead. + + \param smallStep The value to move the scroll bar under normal conditions. + \param largeStep The value to move the scroll bar taking a large step, + this is usually triggered by holding down the \key{Shift} key while + scrolling. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollBar::GetSteps(float* smallStep, float* largeStep) const + \brief Fills out \a smallStop and \a largeStep with the small and large + step values respectively. + + \remark Either \a smallStep or \a largeStep may be set to \c NULL if you + only want to get the other one. + + \param smallStep A pointer to a float to be filled out with the small step + value. + \param largeStep A pointer to a float to be filled out with the large step + value. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollBar::SetTarget(BView* target) + \brief Sets the \a target view that the scroll bar operates on unsetting + the previous target. + + \param target The \a target view to set. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollBar::SetTarget(const char* targetName) + \brief Sets the target view to the view identified by \a targetName + unsetting the previous target. + + \note The BeOS R5 implementation crashes for \a targetName == \c NULL + and also does not modify the target if it can't be found. + + \param targetName The name of the view to target. + + \since BeOS R3 +*/ + + +/*! + \fn BView* BScrollBar::Target() const + \brief Returns a pointer to the target view. + + \return A pointer to a BView object that represents the target view or + \c NULL if the target is not set. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollBar::SetOrientation(orientation direction) + \brief Sets the \a direction of the scroll view. + + \param direction Either \a B_HORIZONTAL or \a B_VERTICAL. + + \since Haiku R1 +*/ + + +/*! + \fn orientation BScrollBar::Orientation() const + \brief Returns the direction of the scroll bar. + + \return Either \a B_HORIZONTAL or \a B_VERTICAL. + + \since Haiku R1 +*/ + + +/*! + \fn status_t BScrollBar::SetBorderHighlighted(bool highlight) + \brief Highlights or unhighlights the border of the scroll bar. + + \param highlight \c true to turn highlighting on, \c false to remove it. + + \return If successful returns \c B_OK, otherwise, returns \c B_ERROR. + + \since Haiku R1 +*/ + + +/*! + \name Hook Methods +*/ + + +//! @{ + + +/*! + \fn void BScrollBar::AllAttached() + \copydoc BView::AllAttached() +*/ + + +/*! + \fn void BScrollBar::AllDetached() + \copydoc BView::AllDetached() +*/ + + +/*! + \fn void BScrollBar::AttachedToWindow() + \brief Hook method called when the scroll bar is attached to a window. + + This method does nothing, unlike in BeOS R5. In BeOS scroll bars were + implemented directly in the App Server, the client BScrollBar was just a + proxy which needed to be synced up on AttachedToWindow(). On Haiku, scroll + bars are implemented more sanely and thus don't need to do this. + + \copydetails BView::AttachedToWindow() +*/ + + +/*! + \fn void BScrollBar::DetachedFromWindow() + \copydoc BView::DetachedFromWindow() +*/ + + +/*! + \fn void BScrollBar::Draw(BRect updateRect) + \brief Draws the area of the scroll bar that intersects \a updateRect. + + \param updateRect The rectangular area to be drawn. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollBar::FrameMoved(BPoint newPosition) + \brief Hook method called when the scroll bar is moved. + + \copydetails BView::FrameMoved() +*/ + + +/*! + \fn void BScrollBar::FrameResized(float newWidth, float newHeight) + \brief Hook method called when the scroll bar is resized. + + \copydetails BView::FrameResized() +*/ + + +/*! + \fn void BScrollBar::MessageReceived(BMessage* message) + \brief Handle \a message received by the associated looper. + + Calls ValueChanged() in response to \c B_VALUE_CHANGED. + Scrolls the view in response to \c B_MOUSE_WHEEL_CHANGED. + + \copydetails BView::MessageReceived() +*/ + + +/*! + \fn void BScrollBar::MouseDown(BPoint where) + \brief Hook method called when a mouse button is pressed. + + Begins scrolling the target view in response to a mouse click. If the + user clicked the scroll bar thumb this begins scrolling and continues + in MouseMoved() ending on MouseUp(). If the user clicked on one of the + scroll arrows the view is scrolled a small amount, if the user clicks + on an area of the scroll view outside the arrows and thumb the view is + scrolled by a larger amount. + + \copydetails BView::MouseDown() +*/ + + +/*! + \fn void BScrollBar::MouseMoved(BPoint where, uint32 code, + const BMessage* dragMessage) + \brief Hook method called when the mouse is moved. + + If the user clicked on the scroll bar thumb the view is scrolled as the user + moves the mouse up and down or left and right. + + \copydetails BView::MouseMoved() +*/ + + +/*! + \fn void BScrollBar::MouseUp(BPoint where) + \brief Hook method called when a mouse button is released. + + Finishes scrolling and redraws the scroll bar if necessary. + + \copydetails BView::MouseUp() +*/ + + +/*! + \fn void BScrollBar::ValueChanged(float newValue) + \brief Hook method called when the value of the scroll bar changes. + + \param newValue The new scroll bar value. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollBar::WindowActivated(bool active) + \copydoc BView::WindowActivated() +*/ + + +//! @} + + +/*! + \fn void BScrollBar::ResizeToPreferred() + \copydoc BView::ResizeToPreferred() +*/ + + +/*! + \fn void BScrollBar::GetPreferredSize(float* _width, float* _height) + \brief Fill out the preferred width and height of the scroll bar + into the \a _width and \a _height parameters. + + \copydetails BView::GetPreferredSize() +*/ + + +/*! + \fn void BScrollBar::MakeFocus(bool focus) + \brief Makes the scroll bar the current focus view of the window or gives up + being the window's focus view. + + \copydetails BView::MakeFocus() +*/ + + +/*! + \fn BSize BScrollBar::MinSize() + \brief Return the scroll bar's minimum size. + + \return The minimum size of the scroll bar as a BSize. + + \sa BAbstractLayout::MinSize() + + \since Haiku R1 +*/ + + +/*! + \fn BSize BScrollBar::MaxSize() + \brief Return the scroll bar's maximum size. + + \return The maximum size of the scroll bar as a BSize. + + \sa BAbstractLayout::MaxSize() + + \since Haiku R1 +*/ + + +/*! + \fn BSize BScrollBar::PreferredSize() + \brief Return the scroll bar's preferred size. + + \return The preferred size of the scroll bar as a BSize. + + \sa BAbstractLayout::PreferredSize() + + \since Haiku R1 +*/ + + +/*! + \fn status_t BScrollBar::Perform(perform_code code, void* _data) + \brief Perform some action. (Internal Method) + + \since Haiku R1 +*/ + + +/*! + \name Scripting +*/ + + +//! @{ + + +/*! + \fn status_t BScrollBar::GetSupportedSuites(BMessage* message) + \brief Reports the suites of messages and specifiers understood by the + scroll bar. + + \copydetails BView::GetSupportedSuites() +*/ + + +/*! + \fn BHandler* BScrollBar::ResolveSpecifier(BMessage* message, int32 index, + BMessage* specifier, int32 what, const char* property) + \brief Determine the proper handler for a scripting message. + + \copydetails BView::ResolveSpecifier() +*/ + + +//! @} diff --git a/docs/user/interface/ScrollView.dox b/docs/user/interface/ScrollView.dox new file mode 100644 index 0000000000..6c909300e8 --- /dev/null +++ b/docs/user/interface/ScrollView.dox @@ -0,0 +1,457 @@ +/* + * Copyright 2014 Haiku, Inc. All rights reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * John Scipione, jscipione@gmail.com + * + * Corresponds to: + * headers/os/interface/ScrollView.h hrev47312 + * src/kits/interface/ScrollView.cpp hrev47312 + */ + + +/*! + \file ScrollView.h + \ingroup interface + \ingroup libbe + \brief BScrollView class definition. + \since BeOS R3 +*/ + + +/*! + \class BScrollView + \ingroup interface + \ingroup libbe + \brief A convenience class used to add scrolling to a target view. + + The BScrollView class conveniently provides a container view + adding the scroll bars and target view as siblings so that when one + is moved or resized the rest can follow. + + \see BScrollBar to learn more about how scroll bars work. + + \sa BView::ScrollTo() + \sa BView::ScrollBy() + \sa BView::TargetedByScrollView() + + \since BeOS R3 +*/ + + +/*! + \fn BScrollView::BScrollView(const char* name, BView* target, + uint32 resizingMode, uint32 flags, bool horizontal, bool vertical, + border_style border) + \brief Instantiates a new scroll view and connects it to the \a target + view. + + \param name The name of the scroll bar, can be \c NULL. + \param target The \a target view to scroll, can be \c NULL. + \param resizingMode Defines the scroll view's behavior when its parent + is resized. See BView for details. + \param flags The view flags. See BView for details. + \param horizontal Whether or not to include a horizontal scroll bar. + \param vertical Whether or not to include a vertical scroll bar. + \param border The border style to use, options include: + - \c B_PLAIN_BORDER + - \c B_FANCY_BORDER + - \c B_NO_BORDER + + \sa SetTarget() + \sa SetBorder() + + \since BeOS R3 +*/ + + +/*! + \fn BScrollView::BScrollView(const char* name, BView* target, uint32 flags, + bool horizontal, bool vertical, border_style border) + \brief Instantiates a new scroll view and connects it to the \a target + view suitable for use in a BLayout. + + \param name The name of the scroll bar, can be \c NULL. + \param target The \a target view to scroll, can be \c NULL. + \param flags The view flags. See BView for details. + \param horizontal Whether or not to include a horizontal scroll bar. + \param vertical Whether or not to include a vertical scroll bar. + \param border The border style to use, options include: + - \c B_PLAIN_BORDER + - \c B_FANCY_BORDER + - \c B_NO_BORDER + + \sa SetTarget() + \sa SetBorder() + + \since Haiku R1 +*/ + + +/*! + \fn BScrollView::BScrollView(BMessage* archive) + \brief Archive constructor. + + \param archive The message \a data to construct the scroll view from. + + \since BeOS R3 +*/ + + +/*! + \fn BScrollView::~BScrollView() + \brief Destructor method. + + Deletes the scroll view, sets the target to \c NULL and frees any + memory used. + + \since BeOS R3 +*/ + + +/*! + \name Archiving +*/ + + +//! @{ + + +/*! + \fn BArchivable* BScrollView::Instantiate(BMessage* archive) + \brief Creates a new BScrollView object from the \a archive message. + + \return A newly created scroll view or \c NULL if the message doesn't + contain an archived BScrollView object. + + \since BeOS R3 +*/ + + +/*! + \fn status_t BScrollView::Archive(BMessage* archive, bool deep) const + \brief Archives the object into the \a archive message. + + \param archive A pointer to the BMessage object to archive the object into. + \param deep Whether or not to archive child views as well. + + \return A status code, \c B_OK if everything went well or an error code + otherwise. + + \since BeOS R3 +*/ + + +//! @} + + +/*! + \name Hook Methods +*/ + + +//! @{ + + +/*! + \fn void BScrollView::AllAttached() + \copydoc BView::AllAttached() +*/ + + +/*! + \fn void BScrollView::AllDetached() + \copydoc BView::AllDetached() +*/ + + +/*! + \fn void BScrollView::AttachedToWindow() + \brief Hook method called when the scroll bar is attached to a window. + + Checks if the window uses \c B_DOCUMENT_LOOK and adjust the size of the bars + to make room for the window resize knob. + + \copydetails BView::AttachedToWindow() +*/ + + +/*! + \fn void BScrollView::DetachedFromWindow() + \brief Hook method called when the object is detached from a window. + + \copydetails BView::DetachedFromWindow() +*/ + + +/*! + \fn void BScrollView::Draw(BRect updateRect) + \brief Draws the area of the scroll view that intersects \a updateRect. + + \param updateRect The rectangular area to be drawn. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollView::MakeFocus(bool focus) + \brief Makes the scroll view the current focus view of the window or gives + up being the window's focus view. + + \copydetails BView::MakeFocus() +*/ + + +/*! + \fn void BScrollView::FrameMoved(BPoint newPosition) + \brief Hook method called when the scroll view is moved. + + \copydetails BView::FrameMoved() +*/ + + +/*! + \fn void BScrollView::FrameResized(float newWidth, float newHeight) + \brief Hook method called when the scroll view is resized. + + \copydetails BView::FrameResized() +*/ + + +/*! + \fn void BScrollView::MessageReceived(BMessage* message) + \copydoc BView::MessageReceived() +*/ + + +/*! + \fn void BScrollView::MouseDown(BPoint where) + \copydoc BView::MouseDown() +*/ + + +/*! + \fn void BScrollView::MouseMoved(BPoint where, uint32 code, + const BMessage* dragMessage) + \copydoc BView::MouseMoved() +*/ + + +/*! + \fn void BScrollView::MouseUp(BPoint where) + \copydoc BView::MouseUp() +*/ + + +/*! + \fn void BScrollView::WindowActivated(bool active) + \copydoc BView::WindowActivated() +*/ + + +//! @} + + +/*! + \fn void BScrollView::GetPreferredSize(float* _width, float* _height) + \brief Fill out the preferred width and height of the scroll view + into the \a _width and \a _height parameters. + + \copydetails BView::GetPreferredSize() +*/ + + +/*! + \fn BSize BScrollView::MinSize() + \brief Return the scroll view's minimum size. + + \return The minimum size of the scroll view as a BSize. + + \sa BAbstractLayout::MinSize() + + \since Haiku R1 +*/ + + +/*! + \fn BSize BScrollView::MaxSize() + \brief Return the scroll view's maximum size. + + \return The maximum size of the scroll view as a BSize. + + \sa BAbstractLayout::MaxSize() + + \since Haiku R1 +*/ + + +/*! + \fn BSize BScrollView::PreferredSize() + \brief Return the scroll view's preferred size. + + \return The preferred size of the scroll view as a BSize. + + \sa BAbstractLayout::PreferredSize() + + \since Haiku R1 +*/ + + +/*! + \fn void BScrollView::ResizeToPreferred() + \brief Resizes the scroll view to its preferred size keeping the position of + the left top corner constant. + + \copydetails BView::ResizeToPreferred() +*/ + + +/*! + \name BScrollBar +*/ + + +//! @{ + + +/*! + \fn BScrollBar* BScrollView::ScrollBar(orientation direction) const + \brief Returns the BScrollBar object at the given \a direction. + + \param direction The \a direction of the scroll bar to get. + + \returns A pointer to the desired BScrollBar object or \c NULL + if there is no scroll bar at that location. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollView::SetBorder(border_style border) + \brief Set the border style of the scroll view. + + \param border The border style constant to use, on of the following: + - \c B_PLAIN_BORDER + - \c B_FANCY_BORDER + - \c B_NO_BORDER + + \since BeOS R3 +*/ + + +/*! + \fn border_style BScrollView::Border() const + \brief Return the border style used. + + \return The border style constant used. + + \since BeOS R3 +*/ + + +/*! + \fn status_t BScrollView::SetBorderHighlighted(bool highlight) + \brief Highlights or unhighlights the border of the scroll view's + scroll bars. + + \param highlight \c true to turn highlighting on, \c false to remove it. + + \return If successful returns \c B_OK, otherwise, returns \c B_ERROR. + + \since BeOS R3 +*/ + + +/*! + \fn bool BScrollView::IsBorderHighlighted() const + \brief Returns whether or not the border is highlighted. + + \return \c true if the border is highlighted, \c false otherwise. + + \since BeOS R3 +*/ + + +/*! + \fn void BScrollView::SetTarget(BView* target) + \brief Sets the \a target view that the scroll bars operates on unsetting + the previous target. + + \param target The \a target view to set. + + \since Haiku R1 +*/ + + +/*! + \fn BView* BScrollView::Target() const + \brief Returns a pointer to the target view. + + \return A pointer to a BView object that represents the target view or + \c NULL if the target is not set. + + \since Haiku R1 +*/ + + +//! @} + + +/*! + \name Scripting +*/ + + +//! @{ + + +/*! + \fn BHandler* BScrollView::ResolveSpecifier(BMessage* message, int32 index, + BMessage* specifier, int32 what, const char* property) + \brief Determine the proper handler for a scripting message. + + \copydetails BView::ResolveSpecifier() +*/ + + +/*! + \fn status_t BScrollView::GetSupportedSuites(BMessage* message) + \brief Reports the suites of messages and specifiers understood by the + scroll view. + + \copydetails BView::GetSupportedSuites() +*/ + + +//! @} + + +/*! + \fn status_t BScrollView::Perform(perform_code code, void* _data) + \brief Perform some action. (Internal Method) + + \since Haiku R1 +*/ + + +/*! + \fn void BScrollView::LayoutInvalidated(bool descendants) + \brief Hook method called when the layout is invalidated. + + The default implementation does nothing. + + \param descendants Whether or not child views have also been invalidated. + + \since Haiku R1 +*/ + + +/*! + \fn void BScrollView::DoLayout() + \brief Layout view within the layout context. + + \since Haiku R1 +*/ diff --git a/docs/user/interface/SeparatorItem.dox b/docs/user/interface/SeparatorItem.dox index 732f809217..185c82d0c9 100644 --- a/docs/user/interface/SeparatorItem.dox +++ b/docs/user/interface/SeparatorItem.dox @@ -30,6 +30,8 @@ \warning BSeparatorItems are only meant to be used with menus whose items are arranged in a \c B_ITEMS_IN_COLUMN layout. + + \since BeOS R3 */ @@ -39,6 +41,8 @@ The creates a new BSeparatorItem from BMenuItem with a blank label and \c NULL message, then disables it. + + \since BeOS R3 */ @@ -47,15 +51,27 @@ \brief Archive constructor. \param data The message \a data to construct the separator item from. + + \since BeOS R3 */ /*! \fn BSeparatorItem::~BSeparatorItem() \brief Destructor, does nothing. + + \since BeOS R3 */ +/*! + \name Archiving +*/ + + +//! @{ + + /*! \fn status_t BSeparatorItem::Archive(BMessage* data, bool deep) const \brief Archives the the BSeparatorItem object into the \a data message. @@ -67,6 +83,8 @@ otherwise. \retval B_OK The object was archived successfully. \retval B_NO_MEMORY Ran out of memory while archiving the object. + + \since BeOS R3 */ @@ -76,13 +94,22 @@ \return A newly created BSeparatorItem object or \c NULL if the message doesn't contain an archived BSeparatorItem. + + \since BeOS R3 */ +//! @} + + /*! \fn void BSeparatorItem::SetEnabled(bool enable) \brief Does nothing, this method is defined to override the default BMenuItem behavior. + + \param enable Not used. + + \since BeOS R3 */ @@ -100,6 +127,8 @@ \sa ContentLocation() \sa DrawContent() + + \since BeOS R3 */ @@ -112,4 +141,6 @@ to do something other than the default. The default draws a light grey horizontal line through the middle of the item. + + \since BeOS R3 */ diff --git a/docs/user/interface/StringItem.dox b/docs/user/interface/StringItem.dox index 6dd88af7cd..e8defcb10c 100644 --- a/docs/user/interface/StringItem.dox +++ b/docs/user/interface/StringItem.dox @@ -25,6 +25,8 @@ \ingroup libbe \brief A list item of a text string used as a member of a BListView or BOutlineListView. + + \since BeOS R3 */ @@ -37,7 +39,10 @@ \param text The \a text to display. \param level The \a level of the item in a BOutlineListView. - \param expanded Whether or not the item is \a expanded in a BOutlineListView. + \param expanded Whether or not the item is \a expanded in a + BOutlineListView. + + \since BeOS R3 */ @@ -46,21 +51,35 @@ \brief Archive constructor. \param archive The message \a archive to construct the string item from. + + \since BeOS R3 */ /*! \fn BStringItem::~BStringItem() \brief Destructor, frees the memory used by the string. + + \since BeOS R3 */ +/*! + \name Archiving +*/ + + +//! @{ + + /*! \fn BArchivable* BStringItem::Instantiate(BMessage* archive) \brief Creates a new BStringItem object from an \a archive message. \return A newly created BStringItem object or \c NULL if the message doesn't contain an archived BStringItem. + + \since BeOS R3 */ @@ -75,9 +94,14 @@ otherwise. \retval B_OK The object was archived successfully. \retval B_NO_MEMORY Ran out of memory while archiving the object. + + \since BeOS R3 */ +//! @} + + /*! \fn void BStringItem::DrawItem(BView* owner, BRect frame, bool complete) \brief Hook method called when the string item is drawn. @@ -100,6 +124,8 @@ \sa IsSelected() \sa IsEnabled() + + \since BeOS R3 */ @@ -109,6 +135,8 @@ old string is freed. \param text The \a text string to set in a C-string. + + \since BeOS R3 */ @@ -117,6 +145,8 @@ \returns The text set to the item. \returns the text set to the item as a C-string. + + \since BeOS R3 */ @@ -131,6 +161,8 @@ \param owner The list item's new \a owner. \param font The font set to the list item's current \a owner. + + \since BeOS R3 */ @@ -145,4 +177,6 @@ This may be overridden by derived classes to set the base line offset. \returns The offset to the baseline of the text as a float. + + \since Haiku R1 */ diff --git a/docs/user/interface/TextView.dox b/docs/user/interface/TextView.dox index d504f9917a..7d2f5e5fde 100644 --- a/docs/user/interface/TextView.dox +++ b/docs/user/interface/TextView.dox @@ -26,21 +26,29 @@ \ingroup interface \ingroup libbe \brief text run struct + + \since BeOS R3 */ /*! \var text_run::offset + + \since BeOS R3 */ /*! \var text_run::font + + \since BeOS R3 */ /*! \var text_run::color + + \since BeOS R3 */ @@ -49,16 +57,22 @@ \ingroup interface \ingroup libbe \brief text run array struct + + \since BeOS R3 */ /*! \var text_run_array::count + + \since BeOS R3 */ /*! \var text_run_array::runs + + \since BeOS R3 */ @@ -67,36 +81,50 @@ \ingroup interface Undo state flags. + + \since BeOS R3 */ /*! \var undo_state B_UNDO_UNAVAILABLE + + \since BeOS R3 */ /*! \var undo_state B_UNDO_TYPING + + \since BeOS R3 */ /*! \var undo_state B_UNDO_CUT + + \since BeOS R3 */ /*! \var undo_state B_UNDO_PASTE + + \since BeOS R3 */ /*! \var undo_state B_UNDO_CLEAR + + \since BeOS R3 */ /*! \var undo_state B_UNDO_DROP + + \since BeOS R3 */ @@ -105,6 +133,8 @@ \ingroup interface \ingroup libbe \brief Displays and manipulates styled text. + + \since BeOS R3 */ @@ -119,6 +149,8 @@ \param resizeMask Resizing mask, passed to BView. \param flags \a flags passed to BView, \c B_FRAME_EVENTS, \c B_PULSE_NEEDED and \c B_INPUT_METHOD_AWARE are always set. + + \since BeOS R3 */ @@ -136,6 +168,8 @@ \param resizeMask Resizing mask, passed to BView. \param flags \a flags passed to BView, \c B_FRAME_EVENTS, \c B_PULSE_NEEDED and \c B_INPUT_METHOD_AWARE are always set. + + \since BeOS R3 */ @@ -146,6 +180,8 @@ \param name The name of the object. \param flags \a flags passed to BView, \c B_FRAME_EVENTS, \c B_PULSE_NEEDED and \c B_INPUT_METHOD_AWARE are always set. + + \since Haiku R1 */ @@ -160,6 +196,8 @@ \param initialColor The text color to display. \param flags \a flags passed to BView, \c B_FRAME_EVENTS, \c B_PULSE_NEEDED and \c B_INPUT_METHOD_AWARE are always set. + + \since Haiku R1 */ @@ -168,12 +206,16 @@ \brief Creates a BTextView object from the passed in \a archive. \param archive The BMessage object from which the object is created. + + \since BeOS R3 */ /*! \fn BTextView::~BTextView() \brief Frees the memory allocated and destroys the object. + + \since BeOS R3 */ @@ -192,6 +234,8 @@ \param archive The BMessage object that the object is created from. \return A new BTextView object as a BArchivable. + + \since BeOS R3 */ @@ -206,6 +250,8 @@ otherwise. \retval B_OK The object was archived. \retval B_NO_MEMORY Ran out of memory while archiving the object. + + \since BeOS R3 */ @@ -213,20 +259,32 @@ /*! - \name Hook methods + \name Hook Methods */ //! @{ +/*! + \fn void BTextView::AllAttached() + \copydoc BView::AllAttached() +*/ + + +/*! + \fn void BTextView::AllDetached() + \copydoc BView::AllDetached() +*/ + + /*! \fn void BTextView::AttachedToWindow() \brief Hook method called when the text view is added to the view hierarchy. Sets the pulse rate to 2 per second and adjust scrollbars if needed. - \see BView::AttachedToWindow() + \copydetails BView::AttachedToWindow() */ @@ -235,7 +293,7 @@ \brief Hook method that is called when the text view is removed from the view hierarchy. - \see BView::DetachedFromWindow() + \copydetails BView::DetachedFromWindow() */ @@ -245,7 +303,34 @@ \param updateRect The rectangular area to draw. - \see BView::Draw() + \since BeOS R3 +*/ + + +/*! + \fn void BTextView::FrameResized(float newWidth, float newHeight) + \brief Hook method that is called when the frame is resized. + + This method updates any associated scrollbars. + + \copydetails BView::FrameResized() +*/ + + +/*! + \fn void BTextView::KeyDown(const char* bytes, int32 numBytes) + \brief Hook method that is called when a key is pressed while the view is + the focus view of the active window. + + \copydetails BView::KeyDown() +*/ + + +/*! + \fn void BTextView::MessageReceived(BMessage* message) + \brief Hook method called with a message is received by the text view. + + \copydetails BView::MessageReceived() */ @@ -254,9 +339,7 @@ \brief Hook method that is called when a mouse button is pushed down while the cursor is contained in the view. - \param where The location where the mouse button was pushed down. - - \see BView::MouseDown() + \copydetails BView::MouseDown() */ @@ -267,44 +350,17 @@ This method stops asynchronous mouse tracking. - \param where The location that the mouse button was released. - - \see BView::MouseUp() + \copydetails BView::MouseUp() */ /*! \fn void BTextView::MouseMoved(BPoint where, uint32 code, - const BMessage* message) + const BMessage* dragMessage) \brief Hook method that is called whenever the mouse cursor enters, exits or moves inside the view. - \param where The point where the mouse cursor has moved to. - \param code A code which indicates if the mouse entered or exited the view. - \param message A message containing drag and drop information. - - \see BView::MouseMoved() -*/ - - -/*! - \fn void BTextView::WindowActivated(bool state) - \brief Hook method that is called when the window becomes the active window - or gives up that status. - - \param state If \c true, window has just been activated. If \c false the - window has just been deactivated. - - \see BView::WindowActivated() -*/ - - -/*! - \fn void BTextView::KeyDown(const char* bytes, int32 numBytes) - \brief Hook method that is called when a key is pressed while the view is - the focus view of the active window. - - \see BView::KeyDown() + \copydetails BView::MouseMoved() */ @@ -312,32 +368,18 @@ \fn void BTextView::Pulse() \brief Hook method that is called at a set interval. - This method is used to make the I-beam blink. + This method is used to make the I-beam cursor blink. - \see BView::Pulse() + \copydetails BView::Pulse() */ /*! - \fn void BTextView::FrameResized(float width, float height) - \brief Hook method that is called when the frame is resized. + \fn void BTextView::WindowActivated(bool active) + \brief Hook method that is called when the window becomes the active window + or gives up that status. - This method updates any associated scrollbars. - - \param width The new view width. - \param height The new view height. - - \see BView::FrameResized() -*/ - - -/*! - \fn void BTextView::MessageReceived(BMessage* message) - \brief Hook method called with a message is received by the text view. - - \param message The message received by the text view. - - \see BView::MessageReceived() + \copydetails BView::WindowActivated() */ @@ -345,30 +387,18 @@ /*! - \fn void BTextView::MakeFocus(bool focusState) + \fn void BTextView::MakeFocus(bool focus) \brief Highlight or unhighlight the selection when the text view acquires or loses its focus state. - \param focusState \c true to receive focus or \c false to lose it. - - \see BView::MakeFocus() + \copydetails BView::MakeFocus() */ /*! \fn BHandler* BTextView::ResolveSpecifier(BMessage* message, int32 index, BMessage* specifier, int32 what, const char* property) - \brief Returns the proper handler for the passed in scripting \a message. - - \param message The scripting message to determine the handler. - \param index The index of the specifier. - \param specifier The message which contains the specifier. - \param what The 'what' field of the specifier message. - \param property The name of the target property. - - \return The proper BHandler for the passed in scripting \a message. - - \see BView::ResolveSpecifier() + \copydoc BHandler::ResolveSpecifier() */ @@ -400,6 +430,8 @@ \param text The text to set. \param runs Set the font and color formats of the new text if provided. Only applies if the BTextView permits multiple character formats. + + \since BeOS R3 */ @@ -417,6 +449,8 @@ \param length The maximum number of bytes of \a text to use. \param runs Set the font and color formats of the new text if provided. Only applies if the BTextView permits multiple character formats. + + \since BeOS R3 */ @@ -432,6 +466,8 @@ \param length The number of bytes of text to read from the file. \param runs Set the font and color formats of the new text if provided. Only applies if the BTextView permits multiple character formats. + + \since BeOS R3 */ @@ -462,6 +498,8 @@ \param text The text to insert. \param runs The text styling to set, can be \c NULL. + + \since BeOS R3 */ @@ -475,6 +513,8 @@ \param text The text to insert. \param length The number of bytes of text to insert. \param runs The text styling to use, can be \c NULL. + + \since BeOS R3 */ @@ -489,6 +529,8 @@ \param text The text to set. \param length The number of bytes of text to insert. \param runs The text styling to use, can be \c NULL. + + \since BeOS R3 */ @@ -506,14 +548,19 @@ /*! \fn void BTextView::Delete() \brief Deletes the text within the current selection. + + \since BeOS R3 */ /*! \fn void BTextView::Delete(int32 startOffset, int32 endOffset) \brief Deletes the text enclosed within the given offsets. + \param startOffset The offset where the text to delete starts. \param endOffset The offset where the text to delete ends. + + \since BeOS R3 */ @@ -521,7 +568,7 @@ /*! - \name Text information + \name Text Information */ @@ -533,10 +580,12 @@ \brief Returns the BTextView text as a byte array. \warning It is possible that the BTextView object had to do some operations - on the text, to be able to return it as a C string. If you need to + on the text to be able to return it as a C string. If you need to call Text() repeatedly, you'd better use GetText() instead. \returns A pointer to the text as a byte array. + + \since BeOS R3 */ @@ -545,6 +594,8 @@ \brief Returns the text length of the BTextView text. \return The text length of the BTextView text. + + \since BeOS R3 */ @@ -561,6 +612,8 @@ \param buffer A \a buffer to write the text to. \see BString::GetString(int32 offset, int32 length, char* buffer) + + \since BeOS R3 */ @@ -571,6 +624,8 @@ \param offset The offset to the desired character. \return The character at the given offset. + + \since BeOS R3 */ @@ -579,6 +634,8 @@ \brief Returns the number of lines that the BTextView object contains. \return The number of lines contained in the BTextView object. + + \since BeOS R3 */ @@ -587,6 +644,8 @@ \brief Returns the index of the current line. \return The index of the current line. + + \since BeOS R3 */ @@ -595,6 +654,8 @@ \brief Moves the caret to the specified line. \param index The index of the line. + + \since BeOS R3 */ @@ -614,6 +675,8 @@ \brief Moves the current selection to the clipboard. \param clipboard The clipboard object to move the text to. + + \since BeOS R3 */ @@ -622,6 +685,8 @@ \brief Copies the current selection to the clipboard. \param clipboard The clipboard object to copy the selected text to. + + \since BeOS R3 */ @@ -630,6 +695,8 @@ \brief Copy the text contained in the clipboard to the BTextView. \param clipboard A pointer to the clipboard. + + \since BeOS R3 */ @@ -640,6 +707,8 @@ \returns \c true if the BTextView can accept the pasted clipboard data, \c false otherwise. + + \since BeOS R3 */ @@ -650,6 +719,8 @@ \returns \c true if the BTextView can accept the dropped message data, \c false otherwise. + + \since BeOS R3 */ @@ -667,6 +738,8 @@ /*! \fn void BTextView::Clear() \brief Deletes the currently selected text. + + \since BeOS R4 */ @@ -676,12 +749,18 @@ \param startOffset The offset where the text to select starts. \param endOffset The offset where the text to select ends. + + \since BeOS R3 */ /*! \fn void BTextView::SelectAll() \brief Selects all text contained in the BTextView. + + \sa Select() + + \since BeOS R3 */ @@ -693,6 +772,10 @@ \param _start A pointer to an int32 to contain the selection's start offset. \param _end A pointer to an int32 to contain the selection's end offset. + + \sa Select() + + \since BeOS R3 */ @@ -709,6 +792,10 @@ \param _size A pointer to an int32 to fill out the run array size. \return A \c text_run_array for the text in the given offsets. + + \sa SetRunArray() + + \since BeOS R3 */ @@ -720,6 +807,8 @@ \param offset The offset of the wanted character. \return The line number of the character at the given offset. + + \since BeOS R3 */ @@ -729,6 +818,8 @@ \param point The point to get the line number of. \return The line number for the passed in point. + + \since BeOS R3 */ @@ -740,6 +831,8 @@ \param _height A pointer to write the height of the character. \return A BPoint object set to the location of the character. + + \since BeOS R3 */ @@ -750,6 +843,8 @@ \param point The desired point. \return The offset for the passed in point. + + \since BeOS R3 */ @@ -761,6 +856,8 @@ \param line A line number. \return The offset of the passed line. + + \since BeOS R3 */ @@ -776,6 +873,8 @@ \param offset The offset where to start looking. \param _fromOffset A pointer to an integer to write the starting offset. \param _toOffset A pointer to an integer to write the ending offset. + + \since BeOS R3 */ @@ -788,22 +887,32 @@ \returns \c true if the character can be the last character of a line, \c false otherwise. + + \since BeOS R3 */ /*! - \fn float BTextView::LineWidth(int32 lineNum) const - \brief Returns the width of the line at the given index. + \fn float BTextView::LineWidth(int32 lineNumber) const + \brief Returns the width of the line at the given \a lineNumber. - \param lineNum The index of the line to get the width of. + \param lineNumber The index of the line to get the width of, 0-indexed. + + \returns The width of the line at the given \a lineNumber as a float. + + \since BeOS R3 */ /*! - \fn float BTextView::LineHeight(int32 lineNum) const - \brief Returns the height of the line at the given index. + \fn float BTextView::LineHeight(int32 lineNumber) const + \brief Returns the height of the line at the given \a lineNumber. - \param lineNum The index of the line to get the height of. + \param lineNumber The index of the line to get the height of, 0-indexed. + + \returns The height of the line at the given \a lineNumber as a float. + + \since BeOS R3 */ @@ -813,6 +922,11 @@ \param startLine The index of the starting line. \param endLine The index of the ending line. + + \returns The height height of the text enclosed within the given lines + as a float. + + \since BeOS R3 */ @@ -822,6 +936,8 @@ \param startOffset The start offset of the text to highlight. \param endOffset The end offset of the text to highlight. + + \since BeOS R3 */ @@ -841,6 +957,8 @@ \brief Scrolls the text so that the character at \a offset is visible. \param offset The offset of the character to scroll to. + + \since BeOS R3 */ @@ -848,6 +966,8 @@ \fn void BTextView::ScrollToSelection() \brief Scrolls the text so that the character that begins the selection is visible. + + \since BeOS R3 */ @@ -867,6 +987,8 @@ \brief Sets the object's text frame to the passed in \a rect. \param rect A BRect object to set the text frame to. + + \since BeOS R3 */ @@ -875,6 +997,10 @@ \brief Returns the BTextView's text frame. \return The BTextView's text frame. + + \see SetTextRect() + + \since BeOS R3 */ @@ -901,6 +1027,8 @@ \param top The top inset to set. \param right The right inset to set. \param bottom The bottom inset to set. + + \since Haiku R1 */ @@ -913,6 +1041,8 @@ \param _top A pointer to set to the frame's top inset. \param _right A pointer to set to the frame's right inset. \param _bottom A pointer to set to the frame's bottom inset. + + \since BeOS R3 */ @@ -931,20 +1061,25 @@ /*! \fn void BTextView::SetStylable(bool stylable) - \brief Sets whether or not the object accepts multiple character styles. + \brief Sets whether or not the object accepts multiple font styles. - \param stylable Pass in \c true to accept multiple character styles, - \c false to NOT accept multiple character styles + \param stylable \c true to accept multiple font styles, + \c false to NOT accept multiple font styles. + + \since BeOS R3 */ /*! \fn bool BTextView::IsStylable() const - \brief Returns whether or not the object is stylable. + \brief Returns whether or not the object accepts multiple font styles. - If the object is stylable, it can show multiple fonts symultaneously. + \return \c true if the object is accepts multiple font styles, + \c false otherwise. - \return \c true if the object is stylable, \c false otherwise. + \see SetStylable() + + \since BeOS R3 */ @@ -952,7 +1087,7 @@ /*! - \name Tab width + \name Tab Width */ @@ -960,11 +1095,13 @@ -/*! +/*! \fn void BTextView::SetTabWidth(float width) \brief Sets the distance between tab stops in pixels. \param width The distance in pixel between tab stops to set. + + \since BeOS R3 */ @@ -973,6 +1110,10 @@ \brief Returns the tab width of the BTextView. \return The tab width of the BTextView. + + \see SetTabWidth() + + \since BeOS R3 */ @@ -980,7 +1121,7 @@ /*! - \name Selectable state + \name Selectable State */ @@ -994,6 +1135,8 @@ \param selectable Pass in \c true to set the text to be selectable, \c false to set the text to be not selectable. + + \since BeOS R3 */ @@ -1003,6 +1146,10 @@ \return \c true if the text is selectable, \c false if the text is not selectable. + + \see MakeSelectable() + + \since BeOS R3 */ @@ -1010,7 +1157,7 @@ /*! - \name Editable state + \name Editable State */ @@ -1024,6 +1171,8 @@ \param editable Pass in \c true to set the text to be editable, \c false to set the object to be not editable. + + \since BeOS R3 */ @@ -1031,8 +1180,12 @@ \fn bool BTextView::IsEditable() const \brief Returns whether or not the text is editable. - \return \c true if the text is editable, - \c false if the text is not editable. + \return \c true if the text is editable, \c false if the text is not + editable. + + \see MakeEditable() + + \since BeOS R3 */ @@ -1040,7 +1193,7 @@ /*! - \name Word wrap + \name Word Wrap */ @@ -1054,6 +1207,8 @@ \param wrap Pass in \c true to turn on word wrapping mode, \c false to turn off word wrapping mode. + + \since BeOS R3 */ @@ -1063,6 +1218,10 @@ \return \c true if word wrapping is activated, \c false is word wrapping if not activated. + + \see SetWordWrap() + + \since BeOS R3 */ @@ -1070,7 +1229,7 @@ /*! - \name Max bytes + \name Max Bytes */ @@ -1083,6 +1242,8 @@ \brief Sets the maximum number of bytes that the BTextView can contain. \param max The maximum number of bytes to set. + + \since BeOS R3 */ @@ -1091,6 +1252,10 @@ \brief Returns the maximum number of bytes that the BTextView can contain. \return the maximum number of bytes that the BTextView can contain. + + \see SetMaxBytes() + + \since BeOS R3 */ @@ -1098,7 +1263,7 @@ /*! - \name Character filtering + \name Character Filtering */ @@ -1114,6 +1279,10 @@ by the textview anymore. \param character The character to disallow. + + \see AllowChar() + + \since BeOS R3 */ @@ -1125,6 +1294,10 @@ by the textview. \param character The character to allow. + + \see DisallowChar() + + \since BeOS R3 */ @@ -1150,6 +1323,8 @@ - \c B_ALIGN_CENTER \param flag The text alignment to set. + + \since BeOS R3 */ @@ -1158,6 +1333,10 @@ \brief Returns the current text alignment. \return The current alignment flag. + + \see SetAlignment() + + \since BeOS R3 */ @@ -1165,7 +1344,7 @@ /*! - \name Auto-indent + \name Autoindent */ @@ -1179,6 +1358,8 @@ \param state Pass in \c true to automatically indent the text, \c false to turn off automatic text indenting. + + \since BeOS R3 */ @@ -1187,6 +1368,10 @@ \brief Returns whether or not automatic indenting is active. \return \c true if automatic indenting is activated, \c false otherwise. + + \see SetAutoindent() + + \since BeOS R3 */ @@ -1194,7 +1379,7 @@ /*! - \name Color space + \name Color Space */ @@ -1207,6 +1392,8 @@ \brief Set the color space of the offscreen BBitmap object. \param colors The colorspace to set on the offscreen BBitmap object. + + \since BeOS R3 */ @@ -1215,6 +1402,10 @@ \brief Returns the colorspace set to the offscreen BBitmap object. \return The colorspace of the offscreen BBitmap object. + + \see SetColorSpace() + + \since BeOS R3 */ @@ -1241,6 +1432,8 @@ \param resize Pass in \c true to set the the BTextView to automatically resize itself, \c false to disable automatic resizing. \param resizeView The BTextView object's parent view that resizes itself. + + \since BeOS R3 */ @@ -1249,6 +1442,10 @@ \brief Returns whether or not the object is resizable. \returns \c true if the object is resizable, \c false otherwise. + + \see MakeResizable() + + \since BeOS R3 */ @@ -1256,7 +1453,7 @@ /*! - \name Undo state + \name Undo State */ @@ -1270,6 +1467,8 @@ \param undo Pass in \c true to enable the undo mechanism, \c false to disable it. + + \since BeOS R3 */ @@ -1278,6 +1477,10 @@ \brief Returns whether or not the undo mechanism is enabled. \return \c true if undo is enabled, \c false otherwise. + + \see SetDoesUndo() + + \since BeOS R3 */ @@ -1285,7 +1488,7 @@ /*! - \name Hide typing + \name Hide Typing */ @@ -1299,6 +1502,8 @@ \param enabled Pass in \c true to enable type hiding, \c false to disable it. + + \since BeOS R5 */ @@ -1307,6 +1512,10 @@ \brief Returns whether or not typing is hidden. \return \c true if typing is hidden, \c false otherwise. + + \see HideTyping() + + \since BeOS R5 */ diff --git a/docs/user/interface/TwoDimensionalLayout.dox b/docs/user/interface/TwoDimensionalLayout.dox index 4e81da21dc..c55883718d 100644 --- a/docs/user/interface/TwoDimensionalLayout.dox +++ b/docs/user/interface/TwoDimensionalLayout.dox @@ -35,22 +35,28 @@ \warning This class is not yet finalized, if you use it in your software assume that it will break some time in the future. + + \since Haiku R1 */ /*! \struct BTwoDimensionalLayout::ColumnRowConstraints \brief Used by BTwoDimensionalLayout derived classes to communicate the - size constraints for a given column or row to the - BTwoDimensionalLayout class. + size constraints for a given column or row to the + BTwoDimensionalLayout class. + + \since Haiku R1 */ /*! \struct BTwoDimensionalLayout::Dimensions \brief Used by BTwoDimensionalLayout derived classes to communicate the - positioning and size of a BLayoutItem, in terms of columns and rows to - the BTwoDimensionalLayout class. + positioning and size of a BLayoutItem, in terms of columns and rows + to the BTwoDimensionalLayout class. + + \since Haiku R1 */ @@ -58,7 +64,7 @@ \fn void BTwoDimensionalLayout::AlignLayoutWith( BTwoDimensionalLayout* other, orientation orientation) \brief Align the BLayoutItem's in the specified \a orientation within - two or more BTwoDimensionalLayout's. + two or more BTwoDimensionalLayout's. When two (or more) BTwoDimensionalLayout's are aligned within a certain \a orientation, then the BLayoutItem's within those @@ -73,6 +79,8 @@ \param other The BTwoDimensionalLayout to be aligned with. \param orientation The \a orientation on which to be aligned. + + \since Haiku R1 */ @@ -86,6 +94,8 @@ be replaced with the value returned by BControlLook::DefaultItemSpacing(). \see BTwoDimensionalLayout::GetInsets(); + + \since Haiku R1 */ @@ -98,11 +108,13 @@ be ignored. \see BTwoDimensionalLayout::SetInsets(); + + \since Haiku R1 */ /*! - \name BTwoDimensionalLayout Hook methods + \name Hook Methods These methods are called automatically as needed during layout, and provide the BTwoDimensionalLayout class with the necessary information @@ -116,28 +128,34 @@ /*! \fn void BTwoDimensionalLayout::PrepareItems(orientation orientation) \brief Prepare the BLayoutItem in this BTwoDimensionalLayout subclass - for layout within a certain \a orientation. + for layout within a certain \a orientation. This is a good place to update cache information that will be used in other hook methods, for example. + + \since Haiku R1 */ /*! \fn bool BTwoDimensionalLayout::HasMultiColumnItems() \brief Tests whether or not this BTwoDimensionalLayout contains any - BLayoutItem's spanning more than one column. + BLayoutItem's spanning more than one column. The BTwoDimensionalLayout implementation returns false. + + \since Haiku R1 */ /*! \fn bool BTwoDimensionalLayout::HasMultiRowItems() \brief Tests whether or not this BTwoDimensionalLayout contains any - BLayoutItem's spanning more than one row. + BLayoutItem's spanning more than one row. The BTwoDimensionalLayout implementation returns false. + + \since Haiku R1 */ @@ -146,6 +164,8 @@ \brief Get the number of columns in the BTwoDimensionalLayout. \returns The number of columns in the BTwoDimensionalLayout. + + \since Haiku R1 */ @@ -154,6 +174,8 @@ \brief Get the number of rows in the BTwoDimensionalLayout. \returns The number of rows in the BTwoDimensionalLayout. + + \since Haiku R1 */ @@ -161,10 +183,12 @@ \fn void BTwoDimensionalLayout::GetColumnRowConstraints( orientation orientation, int32 index, ColumnRowConstraints* constraints) \brief Fill in the ColumnRowConstraints for a certain column or row in - the BTwoDimensionalLayout. + the BTwoDimensionalLayout. This method is used to communicate the size constraints and weight for a given row/column in the BTwoDimensionalLayout. + + \since Haiku R1 */ @@ -172,7 +196,9 @@ \fn void BTwoDimensionalLayout::GetItemDimensions(BLayoutItem* item, Dimensions* dimensions) \brief Tell the base class what column and row a BLayoutItem is in as - well as how many columns and rows it covers. + well as how many columns and rows it covers. + + \since Haiku R1 */ diff --git a/docs/user/interface/View.dox b/docs/user/interface/View.dox index a4a135f4c9..f57c9af916 100644 --- a/docs/user/interface/View.dox +++ b/docs/user/interface/View.dox @@ -16,6 +16,8 @@ \ingroup interface \ingroup libbe \brief BView class definition and support data structures. + + \since BeOS R5 */ @@ -24,22 +26,25 @@ /*! \var B_PRIMARY_MOUSE_BUTTON + \brief Primary mouse button mask parameter. - Primary mouse button mask parameter. + \since BeOS R3 */ /*! \var B_SECONDARY_MOUSE_BUTTON + \brief Secondary mouse button mask parameter. - Secondary mouse button mask parameter. + \since BeOS R3 */ /*! \var B_TERTIARY_MOUSE_BUTTON + \brief Tertiary mouse button mask parameter. - Tertiary mouse button mask parameter. + \since BeOS R3 */ @@ -48,29 +53,33 @@ /*! \var B_ENTERED_VIEW + \brief Mouse transit entered view. - Mouse transit entered view. + \since BeOS R3 */ /*! \var B_INSIDE_VIEW + \brief Mouse transit inside view. - Mouse transit inside view. + \since BeOS R3 */ /*! \var B_EXITED_VIEW + \brief Mouse transit exited view. - Mouse transit exited view. + \since BeOS R3 */ /*! \var B_OUTSIDE_VIEW + \brief Mouse transit outside view. - Mouse transit outside view. + \since BeOS R5 */ @@ -79,15 +88,17 @@ /*! \var B_POINTER_EVENTS + \brief Mouse pointer events mask parameter. - Mouse pointer events mask parameter. + \since BeOS R5 */ /*! \var B_KEYBOARD_EVENTS + \brief Keyboard events mask parameter. - Keyboard events mask parameter. + \since BeOS R5 */ @@ -96,33 +107,37 @@ /*! \var B_LOCK_WINDOW_FOCUS + \brief Prevents the attached window from losing its focused state while + the mouse is held down. - Prevents the attached window from losing its focused state while the mouse is - held down. + \since BeOS R5 */ /*! \var B_SUSPEND_VIEW_FOCUS + \brief Events normally sent to the focus view are suppressed. - Events normally sent to the focus view are suppressed. + \since BeOS R5 */ /*! \var B_NO_POINTER_HISTORY - - Send only the most recent MouseMoved() event to the view. + \brief Send only the most recent MouseMoved() event to the view. \note New in Haiku: unless this flag is specified, both BWindow and BView::GetMouse() will filter out older mouse moved messages. + + \since BeOS R5 */ /*! \var B_FULL_POINTER_HISTORY + \brief Send all MouseMoved() events to the view. - Send all MouseMoved() events to the view. + \since Haiku R1 */ @@ -131,16 +146,18 @@ /*! \var B_TRACK_WHOLE_RECT + \brief The whole rectangle moves with the cursor. - The whole rectangle moves with the cursor. + \since BeOS R3 */ /*! \var B_TRACK_RECT_CORNER + \brief The left top corner is fixed while the right and bottom edges + move with the cursor. - The left top corner is fixed while the right and bottom edges move with the - cursor. + \since BeOS R3 */ @@ -149,71 +166,81 @@ /*! \var B_FONT_FAMILY_AND_STYLE + \brief Font family and style mask parameter. - Font family and style mask parameter. + \since BeOS R3 */ /*! \var B_FONT_SIZE + \brief Font size mask parameter. - Font size mask parameter. + \since BeOS R3 */ /*! \var B_FONT_SHEAR + \brief Font shear mask parameter. - Font shear mask parameter. + \since BeOS R3 */ /*! \var B_FONT_ROTATION + \brief Font rotation mask parameter. - Font rotation mask parameter. + \since BeOS R3 */ /*! \var B_FONT_SPACING + \brief Font spacing mask parameter. - Font spacing mask parameter. + \since BeOS R3 */ /*! \var B_FONT_ENCODING + \brief Font encoding mask parameter. - Font encoding mask parameter. + \since BeOS R3 */ /*! \var B_FONT_FACE + \brief Font face mask parameter. - Font face mask parameter. + \since BeOS R3 */ /*! \var B_FONT_FLAGS + \brief Font flags mask parameter. - Font flags mask parameter. + \since BeOS R3 */ /*! \var B_FONT_FALSE_BOLD_WIDTH + \brief Font false bold width mask parameter. - Font false bold width mask parameter. + \since Haiku R1 */ /*! \var B_FONT_ALL + \brief Font all properties mask parameter. - Font all properties mask parameter. + \since BeOS R3 */ @@ -222,94 +249,108 @@ /*! \var B_FULL_UPDATE_ON_RESIZE + \brief Redraw the entire view on resize. - Redraw the entire view on resize. + \since BeOS R3 */ /*! \var _B_RESERVED1_ + \brief Reserved for future use. - Reserved for future use. + \since Haiku R1 */ /*! \var B_WILL_DRAW + \brief Indicates that the view will do it's own drawing. - Indicates that the view will do it's own drawing. + \since BeOS R3 */ /*! \var B_PULSE_NEEDED + \brief Indicates that the view accepts Pulse() messages. - Indicates that the view accepts Pulse() messages. + \since BeOS R3 */ /*! \var B_NAVIGABLE_JUMP + \brief Indicates this is the default keyboard navigation view. - Indicates this is the default keyboard navigation view. + \since BeOS R3 */ /*! \var B_FRAME_EVENTS + \brief View responds to frame move and resize events. - View responds to frame move and resize events. + \since BeOS R3 */ /*! \var B_NAVIGABLE + \brief The view is able to receive focus for keyboard navigation. + Typically focus is indicated by drawing a blue rectangle around the view. - The view is able to receive focus for keyboard navigation. Typically focus is - indicated by drawing a blue rectangle around the view. + \since BeOS R3 */ /*! \var B_SUBPIXEL_PRECISE + \brief The view draws with sub-pixel precision. - The view draws with sub-pixel precision. + \since Haiku R1 */ /*! \var B_DRAW_ON_CHILDREN + \brief Indicates that the view responds to the DrawAfterChildren() hook method. - Indicates that the view responds to the DrawAfterChildren() hook method. + \since BeOS R5 */ /*! \var B_INPUT_METHOD_AWARE + \brief Allows the view to use input method add-ons to gain access to the + input methods needed for Japanese and other languages. - Allows the view to use input method add-ons to gain access to the input - methods needed for Japanese and other languages. + \since Haiku R1 */ /*! \var _B_RESERVED7_ + \brief Reserved for future use. - Reserved for future use. + \since Haiku R1 */ /*! \var B_SUPPORTS_LAYOUT + \brief The view supports the layout APIs, i.e. it doesn't require an + frame rectangle to be specified. - The view supports the layout APIs, i.e. it doesn't require an explicit frame - rectangle to be specified. + \since Haiku R1 */ /*! \var B_INVALIDATE_AFTER_LAYOUT + \brief Indicates that the view should be redraw after being added to + a layout. - Indicates that the view should be redraw after being added to a layout. + \since Haiku R1 */ @@ -318,49 +359,57 @@ /*! \var _RESIZE_MASK_ + \brief Resize mask. Do not use. - Resize mask. Do not use. + \since Haiku R1 */ /*! \var _VIEW_TOP_ + \brief View top mask variable. Do not use. - View top mask variable. Do not use. + \since Haiku R1 */ /*! \var _VIEW_LEFT_ + \brief View left mask variable. Do not use. - View left mask variable. Do not use. + \since Haiku R1 */ /*! \var _VIEW_BOTTOM_ + \brief View bottom mask variable. Do not use. - View bottom mask variable. Do not use. + \since Haiku R1 */ /*! \var _VIEW_RIGHT_ + \brief View right mask variable. Do not use. - View right mask variable. Do not use. + \since Haiku R1 */ /*! \var _VIEW_CENTER_ + \brief View center mask variable. Do not use. - View center mask variable. Do not use. + \since Haiku R1 */ /*! \fn inline uint32 _rule_(uint32 r1, uint32 r2, uint32 r3, uint32 r4) \brief Internal function, do not use. + + \since Haiku R1 */ @@ -369,26 +418,30 @@ /*! \var B_FOLLOW_NONE + \brief Follow none resize mask parameter. Equivalent to + \c B_FOLLOW_LEFT | \c B_FOLLOW_TOP. The view maintains its position + in its parent's coordinate system but not in the screen coordinate + system. - Follow none resize mask parameter. Equivalent to \c B_FOLLOW_LEFT - | \c B_FOLLOW_TOP. The view maintains its position in its parent's - coordinate system but not in the screen coordinate system. + \since BeOS R3 */ /*! \var B_FOLLOW_ALL_SIDES + \brief Follow all sides resize mask parameter. Equivalent to + \c B_FOLLOW_LEFT_RIGHT | \c B_FOLLOW_TOP_BOTTOM. The view will be resized + with its parent view both horizontally and vertically. - Follow all sides resize mask parameter. Equivalent to \c B_FOLLOW_LEFT_RIGHT | - \c B_FOLLOW_TOP_BOTTOM. The view will be resized with its parent view both - horizontally and vertically. + \since BeOS R3 */ /*! \var B_FOLLOW_ALL + \brief Equivalent to \c B_FOLLOW_ALL_SIDES. - Equivalent to \c B_FOLLOW_ALL_SIDES. + \since BeOS R3 */ @@ -397,33 +450,37 @@ /*! \var B_FOLLOW_LEFT + \brief The margin between the left side of the view and the left side + of its parent remains constant. - The margin between the left side of the view and the left side of its parent - remains constant. + \since BeOS R3 */ /*! \var B_FOLLOW_RIGHT + \brief The margin between the right side of the view and the right side + of its parent remains constant. - The margin between the right side of the view and the right side of its parent - remains constant. + \since BeOS R3 */ /*! \var B_FOLLOW_LEFT_RIGHT + \brief The margin between the left and right sides of the view and the left + and right sides of its parent both remain constant. - The margin between the left and right sides of the view and the left and right - sides of its parent both remain constant. + \since BeOS R3 */ /*! \var B_FOLLOW_H_CENTER + \brief The view maintains a constant relationship to the horizontal center + of its parent view. - The view maintains a constant relationship to the horizontal center of its - parent view. + \since BeOS R3 */ @@ -432,33 +489,37 @@ /*! \var B_FOLLOW_TOP + \brief The margin between the top of the view and the top of its parent + remains constant. - The margin between the top of the view and the top of its parent remains - constant. + \since BeOS R3 */ /*! \var B_FOLLOW_BOTTOM + \brief The margin between the bottom of the view and the bottom of its + parent remains constant. - The margin between the bottom of the view and the bottom of its parent remains - constant. + \since BeOS R3 */ /*! \var B_FOLLOW_TOP_BOTTOM + \brief The margin between the top and bottom sides of the view and the + top and bottom sides of its parent both remain constant. - The margin between the top and bottom sides of the view and the top and bottom - sides of its parent both remain constant. + \since BeOS R3 */ /*! \var B_FOLLOW_V_CENTER + \brief The view maintains a constant relationship to the vertical center + of its parent view. - The view maintains a constant relationship to the vertical center of its - parent view. + \since BeOS R3 */ @@ -548,6 +609,8 @@ if (Window()->LockLooper()) { \code SetViewColor(Parent()->ViewColor()); \endcode + + \since BeOS R3 */ @@ -561,8 +624,6 @@ SetViewColor(Parent()->ViewColor()); \c B_SUPPORTS_LAYOUT is automatically set to the view. The view flags can be set after the view has been constructed by calling the SetFlags() methods. - \note This method was not available in BeOS R5. - \param name The name of the view, can be \c NULL. \param flags The view flags, a mask of one or more of the following: - \c B_FULL_UPDATE_ON_RESIZE Redraw the entire view on resize. @@ -578,6 +639,8 @@ SetViewColor(Parent()->ViewColor()); use a frame rectangle. - \c B_INVALIDATE_AFTER_LAYOUT Is redraw after added to a layout. \param layout A \a layout to set the view to. + + \since Haiku R1 */ @@ -640,6 +703,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SUPPORTS_LAYOUT Supports the layout APIs, i.e. it doesn't use a frame rectangle. - \c B_INVALIDATE_AFTER_LAYOUT Is redraw after added to a layout. + + \since BeOS R3 */ @@ -648,6 +713,8 @@ SetViewColor(Parent()->ViewColor()); \brief Archive constructor. \param archive The message data to construct the view from. + + \since BeOS R3 */ @@ -656,6 +723,8 @@ SetViewColor(Parent()->ViewColor()); \brief Destructor method. Deletes the view and all children freeing any memory used. + + \since BeOS R3 */ @@ -673,6 +742,8 @@ SetViewColor(Parent()->ViewColor()); \returns A newly created BView object or \c NULL if the message doesn't contain an archived BView. + + \since BeOS R3 */ @@ -687,6 +758,8 @@ SetViewColor(Parent()->ViewColor()); otherwise. \retval B_OK The object was archived successfully. \retval B_NO_MEMORY Ran out of memory while archiving the object. + + \since BeOS R3 */ @@ -705,7 +778,7 @@ SetViewColor(Parent()->ViewColor()); \fn status_t BView::AllUnarchived(const BMessage* from) \brief Hook method called when all views have been unarchived. - The default implementation does nothing. + \since Haiku R1 */ @@ -713,15 +786,7 @@ SetViewColor(Parent()->ViewColor()); \fn status_t BView::AllArchived(BMessage* into) const \brief Hook method called when all views have been archived. - The default implementation does nothing. -*/ - - -/*! - \fn void BView::AttachedToWindow() - \brief Hook method called when the object is attached to a window. - - The default implementation does nothing. + \since Haiku R1 */ @@ -730,7 +795,7 @@ SetViewColor(Parent()->ViewColor()); \brief Similar to AttachedToWindow() but this method is triggered after all child views have already been attached to a window. - The default implementation does nothing. + \since BeOS R3 */ @@ -738,7 +803,15 @@ SetViewColor(Parent()->ViewColor()); \fn void BView::DetachedFromWindow() \brief Hook method called when the object is detached from a window. - The default implementation does nothing. + \since BeOS R3 +*/ + + +/*! + \fn void BView::AttachedToWindow() + \brief Hook method called when the object is attached to a window. + + \since BeOS R3 */ @@ -747,7 +820,7 @@ SetViewColor(Parent()->ViewColor()); \brief Similar to AttachedToWindow() but this method is triggered after all child views have already been detached from a window. - The default implementation does nothing. + \since BeOS R3 */ @@ -761,9 +834,9 @@ SetViewColor(Parent()->ViewColor()); call it yourself. If you need to forcefully redraw the view consider calling Invalidate() instead. - The default implementation does nothing. - \param updateRect The rectangular area to be drawn. + + \since BeOS R3 */ @@ -772,9 +845,9 @@ SetViewColor(Parent()->ViewColor()); \brief Perform any drawing that needs to be done after child view have already been drawn. - The default implementation does nothing. - \param updateRect The rectangular area to drawn in. + + \since BeOS R5 */ @@ -782,10 +855,10 @@ SetViewColor(Parent()->ViewColor()); \fn void BView::FrameMoved(BPoint newPosition) \brief Hook method called when the view is moved. - The default implementation does nothing. - \param newPosition The point of the top left corner of the frame that the view has been moved to. + + \since BeOS R3 */ @@ -793,10 +866,10 @@ SetViewColor(Parent()->ViewColor()); \fn void BView::FrameResized(float newWidth, float newHeight) \brief Hook method called when the view is resized. - The default implementation does nothing. - \param newWidth The new \a width of the view. \param newHeight The new \a height of the view. + + \since BeOS R3 */ @@ -804,10 +877,10 @@ SetViewColor(Parent()->ViewColor()); \fn void BView::KeyDown(const char* bytes, int32 numBytes) \brief Hook method called when a keyboard key is pressed. - The default implementation sets keyboard navigation focus. - \param bytes The bytes of the key combination pressed. \param numBytes The number of bytes in \a bytes. + + \since BeOS R3 */ @@ -815,10 +888,10 @@ SetViewColor(Parent()->ViewColor()); \fn void BView::KeyUp(const char* bytes, int32 numBytes) \brief Hook method called when a keyboard key is released. - The default implementation does nothing. - \param bytes The bytes of the key combination pressed. \param numBytes The number of bytes in \a bytes. + + \since BeOS R3 */ @@ -826,11 +899,9 @@ SetViewColor(Parent()->ViewColor()); \fn void BView::LayoutInvalidated(bool descendants) \brief Hook method called when the layout is invalidated. - \note This method was not available in BeOS R5. - - The default implementation does nothing. - \param descendants Whether or not child views have also been invalidated. + + \since Haiku R1 */ @@ -838,11 +909,11 @@ SetViewColor(Parent()->ViewColor()); \fn void BView::MessageReceived(BMessage* message) \brief Handle \a message received by the associated looper. - The default implementation does nothing. - \param message The \a message received by the associated looper. \see BHandler::MessageReceived() + + \since BeOS R3 */ @@ -850,10 +921,10 @@ SetViewColor(Parent()->ViewColor()); \fn void BView::MouseDown(BPoint where) \brief Hook method called when a mouse button is pressed. - The default implementation does nothing. - \param where The point on the screen where to mouse pointer is when the mouse button is pressed. + + \since BeOS R3 */ @@ -861,10 +932,10 @@ SetViewColor(Parent()->ViewColor()); \fn void BView::MouseUp(BPoint where) \brief Hook method called when a mouse button is released. - The default implementation does nothing. - \param where The point on the screen where to mouse pointer is when the mouse button is released. + + \since BeOS R3 */ @@ -873,8 +944,6 @@ SetViewColor(Parent()->ViewColor()); const BMessage* dragMessage) \brief Hook method called when the mouse is moved. - The default implementation does nothing. - \param where The new location of the mouse in the view's coordinate system. \param code One of the following: - \c B_ENTERED_VIEW The cursor has just entered the view. @@ -891,6 +960,8 @@ SetViewColor(Parent()->ViewColor()); \sa SetEventMask(), SetMouseEventMask() \sa DragMessage() + + \since BeOS R3 */ @@ -904,9 +975,9 @@ SetViewColor(Parent()->ViewColor()); anything you want. The default version does nothing. The pulse granularity is no better than once per 100,000 microseconds. - The default implementation does nothing. - \sa SetPulseRate() + + \since BeOS R3 */ @@ -915,21 +986,21 @@ SetViewColor(Parent()->ViewColor()); \brief Hook method called when the view becomes the target of \a scrollView. - The default implementation does nothing. - \param scrollView The BScrollView object that has targeted the view. + + \since Haiku R1 */ /*! - \fn void BView::WindowActivated(bool state) + \fn void BView::WindowActivated(bool active) \brief Hook method called when the attached window is activated or deactivated. - The default implementation does nothing. - - \param state \c true if the window becomes activated, \c false if the + \param active \c true when the window becomes activated, \c false when the window becomes deactivated. + + \since BeOS R3 */ @@ -941,6 +1012,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns the view's frame rectangle in the view's coordinate system. \return The view's bounding rectangle in the view's coordinate system. + + \since BeOS R3 */ @@ -949,11 +1022,13 @@ SetViewColor(Parent()->ViewColor()); \brief Returns the view's frame rectangle in the parent's coordinate system. \returns The view's frame rectangle in the parent's coordinate system. + + \since BeOS R3 */ /*! - \name Coordinate Conversion Methods + \name Coordinate Conversions */ @@ -965,6 +1040,8 @@ SetViewColor(Parent()->ViewColor()); \brief Convert \a point to the parent's coordinate system in place. \param point A pointer to a BPoint object to convert. + + \since BeOS R3 */ @@ -975,6 +1052,8 @@ SetViewColor(Parent()->ViewColor()); \param point A BPoint object to convert. \return A new BPoint object in the parent's coordinate system. + + \since BeOS R3 */ @@ -984,6 +1063,8 @@ SetViewColor(Parent()->ViewColor()); view's coordinate system in place. \param point A pointer to a BPoint object to convert. + + \since BeOS R3 */ @@ -995,6 +1076,8 @@ SetViewColor(Parent()->ViewColor()); \param point A BPoint object to convert. \return A new BPoint object in the view's coordinate system. + + \since BeOS R3 */ @@ -1003,6 +1086,8 @@ SetViewColor(Parent()->ViewColor()); \brief Convert \a rect to the parent's coordinate system in place. \param rect A pointer to a BRect object to convert. + + \since BeOS R3 */ @@ -1013,6 +1098,8 @@ SetViewColor(Parent()->ViewColor()); \param rect A BRect object to convert. \return A new BRect object in the parent's coordinate system. + + \since BeOS R3 */ @@ -1022,6 +1109,8 @@ SetViewColor(Parent()->ViewColor()); view's coordinate system in place. \param rect A pointer to a BRect object to convert. + + \since BeOS R3 */ @@ -1033,6 +1122,8 @@ SetViewColor(Parent()->ViewColor()); \param rect A BRect object to convert. \return A new BRect object in the view's coordinate system. + + \since BeOS R3 */ @@ -1041,6 +1132,8 @@ SetViewColor(Parent()->ViewColor()); \brief Convert \a point to the screen's coordinate system in place. \param point A pointer to a BPoint object to convert. + + \since BeOS R3 */ @@ -1051,6 +1144,8 @@ SetViewColor(Parent()->ViewColor()); \param point A BPoint object to convert. \return A new BPoint object in the screen's coordinate system. + + \since BeOS R3 */ @@ -1060,6 +1155,8 @@ SetViewColor(Parent()->ViewColor()); view's coordinate system in place. \param point A pointer to a BPoint object to convert. + + \since BeOS R3 */ @@ -1071,6 +1168,8 @@ SetViewColor(Parent()->ViewColor()); \param point A BPoint object to convert. \return A new BPoint object in the view's coordinate system. + + \since BeOS R3 */ @@ -1079,6 +1178,8 @@ SetViewColor(Parent()->ViewColor()); \brief Convert \a rect to the screen's coordinate system in place. \param rect A pointer to a BRect object to convert. + + \since BeOS R3 */ @@ -1089,6 +1190,8 @@ SetViewColor(Parent()->ViewColor()); \param rect A BRect object to convert. \return A new BRect object in the screen's coordinate system. + + \since BeOS R3 */ @@ -1098,6 +1201,8 @@ SetViewColor(Parent()->ViewColor()); view's coordinate system in place. \param rect A pointer to a BRect object to convert. + + \since BeOS R3 */ @@ -1109,6 +1214,8 @@ SetViewColor(Parent()->ViewColor()); \param rect A BRect object to convert. \return A new BRect object in the view's coordinate system. + + \since BeOS R3 */ @@ -1120,6 +1227,10 @@ SetViewColor(Parent()->ViewColor()); \brief Return the view flags set in the constructor or by SetFlags(). \return The view flags as a uint32 mask. + + \sa SetFlags() + + \since BeOS R3 */ @@ -1128,6 +1239,8 @@ SetViewColor(Parent()->ViewColor()); \brief Sets the view flags to the \a flags mask. \param flags The view flags to set as a uint32 mask. + + \since BeOS R3 */ @@ -1141,8 +1254,11 @@ SetViewColor(Parent()->ViewColor()); Calls to Hide() and Show() are cumulative. A visible view becomes hidden once the number of Hide() calls exceeds the number of Show() calls. - \see BWindow::Hide() - \see IsHidden() + \sa Show() + \sa BWindow::Hide() + \sa IsHidden() + + \since BeOS R3 */ @@ -1153,8 +1269,11 @@ SetViewColor(Parent()->ViewColor()); Calls to Hide() and Show() are cumulative. A hidden view becomes visible again once the number of Show() calls matches the number of Hide() calls. - \see BWindow::Show() - \see IsHidden() + \sa Hide() + \sa BWindow::Show() + \sa IsHidden() + + \since BeOS R3 */ @@ -1168,8 +1287,10 @@ SetViewColor(Parent()->ViewColor()); \returns \c true if the view is the current focus view, \c false otherwise. - \see MakeFocus() - \see BWindow::CurrentFocus() + \sa MakeFocus() + \sa BWindow::CurrentFocus() + + \since BeOS R3 */ @@ -1188,6 +1309,8 @@ SetViewColor(Parent()->ViewColor()); \return \c true if the view was hidden via the Hide() method, \c false otherwise. + + \since Haiku R1 */ @@ -1205,6 +1328,8 @@ SetViewColor(Parent()->ViewColor()); \return \c true if the view was hidden via the Hide() method, \c false otherwise. + + \since BeOS R3 */ @@ -1219,6 +1344,8 @@ SetViewColor(Parent()->ViewColor()); printer vs. when drawing to the screen. \return Returns \c true if drawing to a printer, \c false otherwise. + + \since BeOS R3 */ @@ -1227,6 +1354,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns the left top corner point. \return The left top corner of the view as a BPoint object. + + \since BeOS R3 */ @@ -1236,7 +1365,9 @@ SetViewColor(Parent()->ViewColor()); The resizing mode is first set in the BView constructor. - \see SetFlags() + \sa SetFlags() + + \since BeOS R3 */ @@ -1246,6 +1377,10 @@ SetViewColor(Parent()->ViewColor()); SetResizingMode(). \returns the current resizing mode flags as a uint32 mask. + + \sa SetResizingMode() + + \since BeOS R3 */ @@ -1259,6 +1394,8 @@ SetViewColor(Parent()->ViewColor()); \param sync If \c true App Server is synchronized immediately forcing the change to occur. If \c false, the change will be put in the queue and will take effect when the pending requests are processed. + + \since BeOS R5 */ @@ -1267,6 +1404,8 @@ SetViewColor(Parent()->ViewColor()); \brief Flushes the attached window's connection to App Server. If the view isn't attached to a window, Flush() does nothing. + + \since BeOS R3 */ @@ -1276,6 +1415,8 @@ SetViewColor(Parent()->ViewColor()); \warning If the view isn't attached to a window, Sync() might crash the application. + + \since BeOS R3 */ @@ -1284,7 +1425,9 @@ SetViewColor(Parent()->ViewColor()); \brief Returns the window the view is attached to. \return The window the view is attached to or \c NULL if the view isn't - attached to a window. + attached to a window. + + \since BeOS R3 */ @@ -1299,23 +1442,27 @@ SetViewColor(Parent()->ViewColor()); \remark Either the \a _width or \a _height parameter may be set to \c NULL if you only want to get the other one. - \param[out] _width Pointer to a \c float to store the width of the view. - \param[out] _height Pointer to a \c float to store the height of the view. + \param[out] _width Pointer to a float to store the width of the view. + \param[out] _height Pointer to a float to store the height of the view. + + \since BeOS R3 */ /*! \fn void BView::ResizeToPreferred() - \brief Resizes the view to its preferred size keeping the left top corner - constant. + \brief Resizes the view to its preferred size keeping the position of the + left top corner constant. \warning It is not recommended to use this method for views that are part of a BLayout. + + \since BeOS R3 */ /*! - \name Input Related Methods + \name Input Related */ @@ -1335,6 +1482,8 @@ SetViewColor(Parent()->ViewColor()); while its size remains the same. - \c B_TRACK_RECT_CORNER The left top corner is fixed while the right and bottom edges move with the cursor. + + \since BeOS R3 */ @@ -1344,6 +1493,8 @@ SetViewColor(Parent()->ViewColor()); BeginRectTracking() is typically called from the MouseDown() while this method is typically called from the MouseUp() method. + + \since BeOS R3 */ @@ -1361,6 +1512,8 @@ SetViewColor(Parent()->ViewColor()); \param replyTo The target set to handle the message sent in reply to the dragged message. If \c NULL the reply is instead directed to the BView object that initiated the drag-and-drop session. + + \since BeOS R3 */ @@ -1380,6 +1533,8 @@ SetViewColor(Parent()->ViewColor()); \param replyTo The target set to handle the message sent in reply to the dragged message. If \c NULL the reply is instead directed to the BView object that initiated the drag-and-drop session. + + \since BeOS R3 */ @@ -1402,6 +1557,8 @@ SetViewColor(Parent()->ViewColor()); \param replyTo The target set to handle the message sent in reply to the dragged message. If \c NULL the reply is instead directed to the BView object that initiated the drag-and-drop session. + + \since BeOS R5 */ @@ -1424,19 +1581,21 @@ SetViewColor(Parent()->ViewColor()); \param checkMessageQueue If \c true pull from any pending MouseMoved() or MouseUp() events in the message queue top down before filling out the current mouse cursor state. + + \since BeOS R3 */ /*! - \fn void BView::MakeFocus(bool focusState) + \fn void BView::MakeFocus(bool focus) \brief Makes the view the current focus view of the window or gives up being the window's focus view. The focus view handles selections and KeyDown events when the the attached window is active. There can be only one focus view at a time per window. - When called with \a focusState set to \c true this method first calls - MakeFocus() on the previously focused view with \a focusState set to + When called with \a focus set to \c true this method first calls + MakeFocus() on the previously focused view with \a focus set to \c false. The focus doesn't automatically change when MouseDown() is called so calling @@ -1447,7 +1606,9 @@ SetViewColor(Parent()->ViewColor()); If the view isn't attached to a window this method has no effect. - \param focusState \a true to set focus, \a false to remove it. + \param focus \a true to set focus, \a false to remove it. + + \since BeOS R3 */ @@ -1461,6 +1622,8 @@ SetViewColor(Parent()->ViewColor()); \returns the Scrollbar object requested or \c NULL if none found. \see BScrollBar::SetTarget() + + \since BeOS R3 */ @@ -1470,6 +1633,8 @@ SetViewColor(Parent()->ViewColor()); \param deltaX The amount to scroll horizontally. \param deltaY The amount to scroll vertically. + + \since BeOS R3 */ @@ -1478,6 +1643,8 @@ SetViewColor(Parent()->ViewColor()); \brief Scroll the view to the point specified by \a where. \param where The location to scroll the view to. + + \since BeOS R3 */ @@ -1486,8 +1653,6 @@ SetViewColor(Parent()->ViewColor()); float delta) \brief Handle the scroll wheel changing over scrollbars. - \note This method was not available in BeOS R5. - - Extract the scrollbar change based on the mouse wheel \a delta into a protected method of BView. - The method is called from the MessageReceived() method of BScrollBar. @@ -1495,6 +1660,8 @@ SetViewColor(Parent()->ViewColor()); With this change it is now a bit easier to scroll horizontally around the system by putting the mouse cursor over a horizontal scrollbar and using the wheel. + + \since Haiku R1 */ @@ -1520,6 +1687,8 @@ SetViewColor(Parent()->ViewColor()); \return \c B_OK if everything went fine or an error code, usually \c B_ERROR if something went wrong. + + \since BeOS R5 */ @@ -1528,6 +1697,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns the current event mask. \return The current event mask as a uint32. + + \since BeOS R5 */ @@ -1556,6 +1727,8 @@ SetViewColor(Parent()->ViewColor()); \return \c B_OK if everything went fine or an error code, usually \c B_ERROR if something went wrong. + + \since BeOS R5 */ @@ -1563,7 +1736,7 @@ SetViewColor(Parent()->ViewColor()); /*! - \name Graphics State Methods + \name Graphics State */ @@ -1588,20 +1761,26 @@ SetViewColor(Parent()->ViewColor()); A new state context is created after PushState() is called with a local scale at 0, a local origin at (0, 0), and no clipping region. + + \since BeOS R3 */ /*! \fn void BView::PopState() \brief Restores the drawing state from the stack. + + \since BeOS R3 */ /*! - \fn void BView::SetOrigin(BPoint pt) + \fn void BView::SetOrigin(BPoint where) \brief Sets the origin in the view's coordinate system. - \param pt The point to set the origin to. + \param where The point to set the origin to. + + \since BeOS R3 */ @@ -1611,6 +1790,8 @@ SetViewColor(Parent()->ViewColor()); \param x The x-coordinate to set the origin to. \param y The y-coordinate to set the origin to. + + \since BeOS R3 */ @@ -1619,6 +1800,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns the origin point in the view's coordinate system. \return The local origin point in the view's coordinate system. + + \since BeOS R3 */ @@ -1648,7 +1831,9 @@ SetViewColor(Parent()->ViewColor()); // view2's scale is 4 \endcode - /param scale The scale factor to set. + \param scale The scale factor to set. + + \since BeOS R3 */ @@ -1657,6 +1842,8 @@ SetViewColor(Parent()->ViewColor()); \brief Return the current drawing scale. \return The current drawing scale. + + \since BeOS R3 */ @@ -1686,6 +1873,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SQUARE_JOIN Same as \c B_SQUARE_CAP but for a join. \param miterLimit Sets the cut off angle before a miter join becomes a bevel join calculated by 2*arcsin(1/\a miterLimit). + + \since BeOS R3 */ @@ -1694,6 +1883,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns the current line join mode. \return The current line join mode set to the view. + + \since BeOS R3 */ @@ -1702,6 +1893,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns the current line cap mode. \return The current line cap mode set to the view. + + \since BeOS R3 */ @@ -1710,6 +1903,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns the miter limit used for \c B_MITER_JOIN join mode. \return The current miter limit set to the view. + + \since BeOS R3 */ @@ -1731,6 +1926,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_OP_ADD - \c B_OP_SUBTRACT - \c B_OP_BLEND + + \since BeOS R3 */ @@ -1739,6 +1936,8 @@ SetViewColor(Parent()->ViewColor()); \brief Return the current drawing_mode. \return The current drawing_mode. + + \since BeOS R3 */ @@ -1756,6 +1955,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_ALPHA_COMPOSITE Used to composite two or more transparent images together offscreen to produce a new image drawn using \c B_ALPHA_OVERLAY mode. + + \since BeOS R5 */ @@ -1767,6 +1968,8 @@ SetViewColor(Parent()->ViewColor()); \param[out] srcAlpha The alpha mode to fill out. \param[out] alphaFunc The alpha function to fill out. + + \since BeOS R5 */ @@ -1775,6 +1978,8 @@ SetViewColor(Parent()->ViewColor()); \brief Move the pen to \a point in the view's coordinate system. \param point the location to move the pen to. + + \since BeOS R3 */ @@ -1785,6 +1990,8 @@ SetViewColor(Parent()->ViewColor()); \param x The horizontal coordinate to move the pen to. \param y The vertical coordinate to move the pen to. + + \since BeOS R3 */ @@ -1794,6 +2001,8 @@ SetViewColor(Parent()->ViewColor()); \param x The number of pixels to move the pen horizontally. \param y The number of pixels to move the pen vertically. + + \since BeOS R3 */ @@ -1802,6 +2011,12 @@ SetViewColor(Parent()->ViewColor()); \brief Return the current pen location as a BPoint object. \return The current pen location in the view's coordinate system. + + \sa MovePenTo(BPoint) + \sa MovePenTo(float, float) + \sa MovePenBy(float, float) + + \since BeOS R3 */ @@ -1810,6 +2025,8 @@ SetViewColor(Parent()->ViewColor()); \brief Set the pen size to \a size. \param size The pen size to set. + + \since BeOS R3 */ @@ -1818,6 +2035,10 @@ SetViewColor(Parent()->ViewColor()); \brief Return the current pen size. \return The current pen size as a float. + + \sa SetPenSize() + + \since BeOS R3 */ @@ -1826,6 +2047,8 @@ SetViewColor(Parent()->ViewColor()); \brief Set the high color of the view. \param color The color to set. + + \since BeOS R3 */ @@ -1838,6 +2061,8 @@ SetViewColor(Parent()->ViewColor()); \param green The \a green component of the high color. \param blue The \a blue component of the high color. \param alpha The \a alpha component of the high color. + + \since BeOS R3 */ @@ -1846,6 +2071,11 @@ SetViewColor(Parent()->ViewColor()); \brief Return the current high color. \return The current high color as an rgb_color struct. + + \sa SetHighColor(rgb_color) + \sa SetHighColor(uchar, uchar, uchar, uchar) + + \since BeOS R3 */ @@ -1854,6 +2084,8 @@ SetViewColor(Parent()->ViewColor()); \brief Set the low color of the view. \param color The color to set. + + \since BeOS R3 */ @@ -1865,6 +2097,8 @@ SetViewColor(Parent()->ViewColor()); \param green The \a green component of the low color. \param blue The \a blue component of the low color. \param alpha The \a alpha component of the low color. + + \since BeOS R3 */ @@ -1873,6 +2107,11 @@ SetViewColor(Parent()->ViewColor()); \brief Return the current low color. \return The current low color as an rgb_color struct. + + \sa SetLowColor(rgb_color) + \sa SetLowColor(uchar, uchar, uchar, uchar) + + \since BeOS R3 */ @@ -1881,6 +2120,8 @@ SetViewColor(Parent()->ViewColor()); \brief Set the view color of the view. \param color The color to set. + + \since BeOS R3 */ @@ -1893,6 +2134,8 @@ SetViewColor(Parent()->ViewColor()); \param green The \a green component of the view color. \param blue The \a blue component of the view color. \param alpha The \a alpha component of the view color. + + \since BeOS R3 */ @@ -1901,6 +2144,11 @@ SetViewColor(Parent()->ViewColor()); \brief Return the current view color. \return The current view color as an rgb_color struct. + + \sa SetViewColor(rgb_color) + \sa SetViewColor(uchar, uchar, uchar, uchar) + + \since BeOS R3 */ @@ -1915,6 +2163,8 @@ SetViewColor(Parent()->ViewColor()); \param enable If \c true turn off anti-aliasing, if \c false turn on anti-aliasing. + + \since BeOS R5 */ @@ -1935,6 +2185,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_FONT_FACE - \c B_FONT_ROTATION - \c B_FONT_FLAGS + + \since BeOS R3 */ @@ -1943,6 +2195,8 @@ SetViewColor(Parent()->ViewColor()); \brief Fill out \a font with the font set to the view. \param[out] font The BFont object to fill out. + + \since BeOS R3 */ @@ -1951,6 +2205,8 @@ SetViewColor(Parent()->ViewColor()); \brief Fill out the font_height struct with the view font. \param[out] height The font_height struct to fill out. + + \since BeOS R3 */ @@ -1959,6 +2215,8 @@ SetViewColor(Parent()->ViewColor()); \brief Set the size of the view's font to \a size. \param size The font size to set to the view in points. + + \since BeOS R3 */ @@ -1969,6 +2227,8 @@ SetViewColor(Parent()->ViewColor()); \param string The \a string to get the width of. \return The width of the string in the view's font as a float. + + \since BeOS R3 */ @@ -1981,6 +2241,8 @@ SetViewColor(Parent()->ViewColor()); \param length The maximum number of characters in \a string to consider. \return The width of the string in the view's font as a float. + + \since BeOS R3 */ @@ -1996,6 +2258,8 @@ SetViewColor(Parent()->ViewColor()); \param numStrings The number of strings in \a stringArray. \param widthArray The array to store the widths of the strings in \a stringArray. + + \since BeOS R3 */ @@ -2015,6 +2279,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_TRUNCATE_SMART Truncate from anywhere based on the string content. Not currently implemented. \param width The maximum width to truncate the string to. + + \since BeOS R5 */ @@ -2033,6 +2299,8 @@ SetViewColor(Parent()->ViewColor()); \param picture The BPicture object to intersect with. \param where Offset in the view's coordinate system. \param sync If \c false, this method will execute asynchronously. + + \since BeOS R5 */ @@ -2047,6 +2315,8 @@ SetViewColor(Parent()->ViewColor()); \param sync If \c false, this method will execute asynchronously. \see ClipToPicture() + + \since BeOS R5 */ @@ -2061,6 +2331,8 @@ SetViewColor(Parent()->ViewColor()); hiding parts of it, and overlapping windows) and the constrained clipping regions set by calls to ConstrainClippingRegion() in the current stack of drawing states. + + \since BeOS R3 */ @@ -2088,6 +2360,8 @@ SetViewColor(Parent()->ViewColor()); \param region The region to set the clipping region to or \c NULL to reset to default. + + \since BeOS R3 */ @@ -2095,7 +2369,7 @@ SetViewColor(Parent()->ViewColor()); /*! - \name Drawing Related Methods + \name Drawing Related The view must be attached to the window for these methods to work unless otherwise stated. Notes on specific methods are provided below: @@ -2154,6 +2428,8 @@ SetViewColor(Parent()->ViewColor()); \param viewRect The area in the view's coordinate system to draw the bitmap in. \param options ?? + + \since Haiku R1 */ @@ -2167,6 +2443,8 @@ SetViewColor(Parent()->ViewColor()); coordinate system. \param viewRect The area in the view's coordinate system to draw the bitmap in. + + \since BeOS R3 */ @@ -2177,6 +2455,8 @@ SetViewColor(Parent()->ViewColor()); \param bitmap The bitmap to draw onto the view. \param viewRect The area in the view's coordinate system to draw the bitmap in. + + \since BeOS R3 */ @@ -2186,6 +2466,8 @@ SetViewColor(Parent()->ViewColor()); \param bitmap The bitmap to draw onto the view. \param where The location to draw the bitmap in the view's coordinate system. + + \since BeOS R3 */ @@ -2194,6 +2476,8 @@ SetViewColor(Parent()->ViewColor()); \brief Draws \a bitmap on the view asynchronously. \param bitmap The bitmap to draw onto the view. + + \since BeOS R3 */ @@ -2208,6 +2492,8 @@ SetViewColor(Parent()->ViewColor()); \param viewRect The area in the view's coordinate system to draw the bitmap in. \param options ?? + + \since Haiku R1 */ @@ -2221,6 +2507,8 @@ SetViewColor(Parent()->ViewColor()); coordinate system. \param viewRect The area in the view's coordinate system to draw the bitmap in. + + \since BeOS R3 */ @@ -2231,6 +2519,8 @@ SetViewColor(Parent()->ViewColor()); \param bitmap The bitmap to draw onto the view. \param viewRect The area in the view's coordinate system to draw the bitmap in. + + \since BeOS R3 */ @@ -2240,6 +2530,8 @@ SetViewColor(Parent()->ViewColor()); \param bitmap The bitmap to draw onto the view. \param where The location to draw the bitmap in the view's coordinate system. + + \since BeOS R3 */ @@ -2248,6 +2540,8 @@ SetViewColor(Parent()->ViewColor()); \brief Draws \a bitmap on the view. \param bitmap The bitmap to draw onto the view. + + \since BeOS R3 */ @@ -2258,6 +2552,8 @@ SetViewColor(Parent()->ViewColor()); The character is drawn in the view's current font. \param c The character to draw. + + \since BeOS R3 */ @@ -2269,6 +2565,8 @@ SetViewColor(Parent()->ViewColor()); \param c The character to draw. \param location The location in the view to draw the character. + + \since BeOS R3 */ @@ -2283,6 +2581,8 @@ SetViewColor(Parent()->ViewColor()); glyphs. - space(float) The amount of width to add to characters with escapements but don't have visible glyphs. + + \since BeOS R3 */ @@ -2299,6 +2599,8 @@ SetViewColor(Parent()->ViewColor()); glyphs. - space(float) The amount of width to add to characters with escapements but don't have visible glyphs. + + \since BeOS R3 */ @@ -2316,6 +2618,8 @@ SetViewColor(Parent()->ViewColor()); glyphs. - space(float) The amount of width to add to characters with escapements but don't have visible glyphs. + + \since BeOS R3 */ @@ -2334,6 +2638,8 @@ SetViewColor(Parent()->ViewColor()); glyphs. - space(float) The amount of width to add to characters with escapements but don't have visible glyphs. + + \since BeOS R3 */ @@ -2345,6 +2651,8 @@ SetViewColor(Parent()->ViewColor()); \param string The string to draw. \param locations A pointer to an array of BPoint objects to draw the string. \param locationCount The number of elements in \a locations. + + \since Haiku R1 */ @@ -2358,6 +2666,8 @@ SetViewColor(Parent()->ViewColor()); \param length The maximum number of characters in \a string to draw. \param locations A pointer to an array of BPoint objects to draw the string. \param locationCount The number of elements in \a locations. + + \since Haiku R1 */ @@ -2374,6 +2684,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2386,6 +2698,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2402,6 +2716,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2414,6 +2730,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2428,6 +2746,8 @@ SetViewColor(Parent()->ViewColor()); \param xRadius The horizontal radius. \param yRadius The vertical radius. \param gradient The gradient pattern to fill the ellipse with. + + \since Haiku R1 */ @@ -2438,6 +2758,8 @@ SetViewColor(Parent()->ViewColor()); \param rect The area within which to inscribe the shape. \param gradient The gradient pattern to fill the ellipse with. + + \since Haiku R1 */ @@ -2457,6 +2779,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2473,6 +2797,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2492,6 +2818,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2509,6 +2837,8 @@ SetViewColor(Parent()->ViewColor()); \param startAngle The angle to begin drawing at. \param arcAngle The number of degrees of the arc to draw. \param gradient The gradient pattern to fill the arc with. + + \since Haiku R1 */ @@ -2525,6 +2855,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2538,6 +2870,8 @@ SetViewColor(Parent()->ViewColor()); \param startAngle The angle to begin drawing at. \param arcAngle The number of degrees of the arc to draw. \param gradient The gradient pattern to fill the arc with. + + \since Haiku R1 */ @@ -2550,6 +2884,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2562,6 +2898,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2572,11 +2910,14 @@ SetViewColor(Parent()->ViewColor()); \param controlPoints The list of points that form the bezier curve. \param gradient The gradient pattern to fill the bezier curve with. + + \since Haiku R1 */ /*! - \fn void BView::StrokePolygon(const BPolygon* polygon, bool closed, ::pattern pattern) + \fn void BView::StrokePolygon(const BPolygon* polygon, bool closed, + ::pattern pattern) \brief Stroke a polygon shape. \param polygon The polygon shape to stroke. @@ -2586,6 +2927,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2594,7 +2937,8 @@ SetViewColor(Parent()->ViewColor()); bool closed, ::pattern pattern) \brief Stroke a polygon shape made up of points specified by \a pointArray. - \param pointArray An array of points that specify the vertices of the polygon. + \param pointArray An array of points that specify the vertices of the + polygon. \param numPoints The number of points in \a pointArray. \param closed Whether or not the last line of the polygon should intersect with the initial point. @@ -2602,6 +2946,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2611,15 +2957,19 @@ SetViewColor(Parent()->ViewColor()); \brief Stroke a polygon shape made up of points specified by \a pointArray inscribed by \a bounds. - \param pointArray An array of points that specify the vertices of the polygon. + \param pointArray An array of points that specify the vertices of the + polygon. \param numPoints The number of points in \a pointArray. - \param bounds The smallest rectangle that encloses the points in \a pointArray. + \param bounds The smallest rectangle that encloses the points in + \a pointArray. \param closed Whether or not the last line of the polygon should intersect with the initial point. \param pattern One of the following: - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2632,6 +2982,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2642,6 +2994,8 @@ SetViewColor(Parent()->ViewColor()); \param polygon The polygon shape to fill. \param gradient The gradient pattern to fill the polygon with. + + \since Haiku R1 */ @@ -2656,6 +3010,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2669,6 +3025,8 @@ SetViewColor(Parent()->ViewColor()); polygon. \param numPoints The number of points in \a pointArray. \param gradient The gradient pattern to fill the polygon with. + + \since Haiku R1 */ @@ -2687,6 +3045,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2702,6 +3062,8 @@ SetViewColor(Parent()->ViewColor()); \param bounds The smallest rectangle that encloses the points in \a pointArray. \param gradient The gradient pattern to fill the polygon with. + + \since Haiku R1 */ @@ -2714,6 +3076,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2726,6 +3090,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2736,6 +3102,8 @@ SetViewColor(Parent()->ViewColor()); \param rect The rectangular area to fill. \param gradient The gradient pattern to fill the rectangle with. + + \since Haiku R1 */ @@ -2752,6 +3120,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2768,6 +3138,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2781,6 +3153,8 @@ SetViewColor(Parent()->ViewColor()); \param xRadius The horizontal radius. \param yRadius The vertical radius. \param gradient The gradient pattern to fill the round rect with. + + \since Haiku R1 */ @@ -2793,6 +3167,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2802,6 +3178,8 @@ SetViewColor(Parent()->ViewColor()); \param region The \a region to fill. \param gradient The gradient pattern to fill the \a region with. + + \since Haiku R1 */ @@ -2819,6 +3197,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2835,6 +3215,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2851,6 +3233,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2864,6 +3248,8 @@ SetViewColor(Parent()->ViewColor()); \param point2 The second point of the triangle. \param point3 The third point of the triangle. \param gradient The gradient pattern to fill the triangle with. + + \since Haiku R1 */ @@ -2881,6 +3267,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2896,6 +3284,8 @@ SetViewColor(Parent()->ViewColor()); \param point3 The third point of the triangle. \param bounds The rectangular area that encloses the triangle. \param gradient The gradient pattern to fill the triangle with. + + \since Haiku R1 */ @@ -2908,6 +3298,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2921,6 +3313,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R3 */ @@ -2933,6 +3327,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R5 */ @@ -2945,6 +3341,8 @@ SetViewColor(Parent()->ViewColor()); - \c B_SOLID_HIGH - \c B_SOLID_LOW - \c B_MIXED_COLORS + + \since BeOS R5 */ @@ -2954,6 +3352,8 @@ SetViewColor(Parent()->ViewColor()); \param shape The \a shape to fill. \param gradient The gradient pattern to fill the \a shape with. + + \since Haiku R1 */ @@ -2973,6 +3373,8 @@ SetViewColor(Parent()->ViewColor()); \param count The maximum number of lines in the line array to draw. \see StrokeLine() + + \since BeOS R3 */ @@ -2983,18 +3385,24 @@ SetViewColor(Parent()->ViewColor()); \param start The \a start point of the line. \param end The \a end point of the line. \param color The line \a color. + + \since BeOS R3 */ /*! \fn void BView::EndLineArray() \brief End the line array drawing the lines. + + \since BeOS R3 */ /*! \fn void BView::SetDiskMode(char* filename, long offset) \brief Unimplemented. + + \since Haiku R1 */ @@ -3017,6 +3425,8 @@ SetViewColor(Parent()->ViewColor()); resides outside the clipping region or the window is off-screen. \param picture The BPicture object to record drawing instructions to. + + \since BeOS R3 */ @@ -3025,6 +3435,8 @@ SetViewColor(Parent()->ViewColor()); \brief Appends drawing instructions to \a picture without clearing it first. \param picture The BPicture object to record drawing instructions to. + + \since BeOS R3 */ @@ -3034,6 +3446,8 @@ SetViewColor(Parent()->ViewColor()); BPicture object passed to BeginPicture() or AppendToPicture(). \return The BPicture object passed to BeginPicture() or AppendToPicture(). + + \since BeOS R3 */ @@ -3055,6 +3469,8 @@ SetViewColor(Parent()->ViewColor()); constructor for more details. \param options Specifies additional view options. The only option currently available is \c B_TILE_BITMAP which tiles the bitmap across the view. + + \since BeOS R4 */ @@ -3074,12 +3490,16 @@ SetViewColor(Parent()->ViewColor()); constructor for more details. \param options Specifies additional view options. The only option currently available is \c B_TILE_BITMAP which tiles the bitmap across the view. + + \since BeOS R4 */ /*! \fn void BView::ClearViewBitmap() \brief Clears the background bitmap of the view if it has one. + + \since BeOS R4 */ @@ -3102,6 +3522,8 @@ SetViewColor(Parent()->ViewColor()); constructor for more details. \param options Specifies additional view options. The only option currently available is \c B_TILE_BITMAP which tiles the bitmap across the view. + + \since BeOS R5 */ @@ -3122,12 +3544,16 @@ SetViewColor(Parent()->ViewColor()); constructor for more details. \param options Specifies additional view options. The only option currently available is \c B_TILE_BITMAP which tiles the bitmap across the view. + + \since BeOS R5 */ /*! \fn void BView::ClearViewOverlay() \brief Clears the overlay bitmap of the view if it has one. + + \since BeOS R5 */ @@ -3144,6 +3570,8 @@ SetViewColor(Parent()->ViewColor()); \param src The source rectangle to copy bits from. \param dst The destination rectangle to copy bits to. + + \since BeOS R3 */ @@ -3152,6 +3580,8 @@ SetViewColor(Parent()->ViewColor()); \brief Draws the \a picture at the view's current pen position. \param picture The BPicture object to draw. + + \since BeOS R3 */ @@ -3161,6 +3591,8 @@ SetViewColor(Parent()->ViewColor()); \param picture The BPicture object to draw. \param where The point on the view to draw \a picture. + + \since BeOS R3 */ @@ -3172,6 +3604,8 @@ SetViewColor(Parent()->ViewColor()); \param filename The filename of the file containing the picture to draw. \param where The point on the view to draw the picture. \param offset The number of bytes to offset in the file to find the picture. + + \since BeOS R4 */ @@ -3180,26 +3614,36 @@ SetViewColor(Parent()->ViewColor()); \brief Draws the \a picture at the view's current pen position. \param picture The BPicture object to draw. + + \since BeOS R5 */ /*! \fn void BView::DrawPictureAsync(const BPicture* picture, BPoint where) - \brief Draws the \a picture at the location in the view specified by \a where. + \brief Draws the \a picture at the location in the view specified by + \a where. \param picture The BPicture object to draw. \param where The point on the view to draw \a picture. + + \since BeOS R5 */ /*! - \fn void BView::DrawPictureAsync(const char* filename, long offset, BPoint where) - \brief Draws the \a picture from the file specified by \a filename offset by - \a offset bytes at the location in the view specified by \a where. + \fn void BView::DrawPictureAsync(const char* filename, long offset, + BPoint where) + \brief Draws the \a picture from the file specified by \a filename offset + by \a offset bytes at the location in the view specified by + \a where. \param filename The filename of the file containing the picture to draw. \param where The point on the view to draw the picture. - \param offset The number of bytes to offset in the file to find the picture. + \param offset The number of bytes to offset in the file to find the + picture. + + \since BeOS R5 */ @@ -3209,6 +3653,8 @@ SetViewColor(Parent()->ViewColor()); specified by \a invalRect. \param invalRect The rectangular area of the view to redraw. + + \since BeOS R3 */ @@ -3218,12 +3664,16 @@ SetViewColor(Parent()->ViewColor()); specified by \a region. \param region The region of the view to redraw. + + \since Haiku R1 */ /*! \fn void BView::Invalidate() \brief Sends a message to App Server to redraw the view. + + \since BeOS R3 */ @@ -3234,6 +3684,8 @@ SetViewColor(Parent()->ViewColor()); This method is often used to draw a highlighted selection in a view. \param rect The rectangular area in the view to invert the colors of. + + \since BeOS R3 */ @@ -3241,7 +3693,7 @@ SetViewColor(Parent()->ViewColor()); /*! - \name View Hierarchy Methods + \name View Hierarchy */ @@ -3260,6 +3712,8 @@ SetViewColor(Parent()->ViewColor()); \param child The child view to add. \param before The sibling view to add \a child before. + + \since BeOS R3 */ @@ -3269,6 +3723,8 @@ SetViewColor(Parent()->ViewColor()); \param child The child layout item to add. \return Whether or not \a child was added to the view layout hierarchy. + + \since Haiku R1 */ @@ -3278,6 +3734,8 @@ SetViewColor(Parent()->ViewColor()); \param child The child view to remove. \return Whether or not \a child was removed from the view hierarchy. + + \since BeOS R3 */ @@ -3286,6 +3744,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns the number of child views that this view has. \return The number of child views. + + \since BeOS R3 */ @@ -3296,6 +3756,8 @@ SetViewColor(Parent()->ViewColor()); \param index The index of the child view to return a pointer of. \return A pointer to the child view at \a index or \c NULL if not found. + + \since BeOS R3 */ @@ -3304,6 +3766,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns a pointer to the next sibling view. \return A pointer to the next sibling view or \a NULL if not found. + + \since BeOS R3 */ @@ -3312,6 +3776,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns a pointer to the previous sibling view. \return A pointer to the previous sibling view or \a NULL if not found. + + \since BeOS R3 */ @@ -3320,6 +3786,8 @@ SetViewColor(Parent()->ViewColor()); \brief Removes the view and all child views from the view hierarchy. \returns Whether or not the view was removed from the view hierarchy. + + \since BeOS R3 */ @@ -3328,6 +3796,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns a pointer to the view's parent. \return A pointer to the parent view or \c NULL if not attached. + + \since BeOS R3 */ @@ -3337,6 +3807,8 @@ SetViewColor(Parent()->ViewColor()); \return The view in the view hierarchy with the specified \a name or \c NULL if not found. + + \since BeOS R3 */ @@ -3344,7 +3816,7 @@ SetViewColor(Parent()->ViewColor()); /*! - \name View Frame Alteration Methods + \name View Frame Alteration As a view's frame rectangle must be aligned to pixel values all parameters are rounded to the nearest integer. If the view isn't attached these methods alter the @@ -3362,6 +3834,8 @@ SetViewColor(Parent()->ViewColor()); \param deltaX The number of pixels to move the view horizontally. \param deltaY The number of pixels to move the view vertically. + + \since BeOS R3 */ @@ -3371,6 +3845,8 @@ SetViewColor(Parent()->ViewColor()); view's coordinate system. \param where The location to move the view to. + + \since BeOS R3 */ @@ -3382,6 +3858,8 @@ SetViewColor(Parent()->ViewColor()); \param x The horizontal coordinate to move the view to. \param y The vertical coordinate to move the view to. + + \since BeOS R3 */ @@ -3392,6 +3870,8 @@ SetViewColor(Parent()->ViewColor()); \param deltaWidth The number of pixels to resize the view by horizontally. \param deltaHeight The number of pixels to resize the view by vertically. + + \since BeOS R3 */ @@ -3401,6 +3881,8 @@ SetViewColor(Parent()->ViewColor()); \param width The width to resize the view to. \param height The height to resize the view to. + + \since BeOS R3 */ @@ -3409,6 +3891,8 @@ SetViewColor(Parent()->ViewColor()); \brief Resize the view to the dimension specified by \a size. \param size The \a size to resize the view to. + + \since Haiku R1 */ @@ -3417,20 +3901,17 @@ SetViewColor(Parent()->ViewColor()); /*! \fn status_t BView::GetSupportedSuites(BMessage* data) - \brief Reports the suites of messages and specifiers understood by the view. + \brief Reports the suites of messages and specifiers understood by the + view. - \param data The message to use to report the suite of messages and specifiers. - - \see BHandler::GetSupportedSuites() + \copydetails BHandler::GetSupportedSuites() */ /*! \fn BHandler* BView::ResolveSpecifier(BMessage* message, int32 index, BMessage* specifier, int32 what, const char* property) - \brief Determine the proper handler for a scripting message. - - \see BHandler::ResolveSpecifier() + \copydoc BHandler::ResolveSpecifier() */ @@ -3457,12 +3938,12 @@ SetViewColor(Parent()->ViewColor()); \returns A status code. - \sa BHandler::Perform() + \since Haiku R1 */ /*! - \name Layout Methods + \name Layouting \note These methods were not available in BeOS R5. */ @@ -3473,31 +3954,37 @@ SetViewColor(Parent()->ViewColor()); /*! \fn BSize BView::MinSize() - \brief Get the minimum size of the view. + \brief Return the minimum size of the view. \return The minimum size of the view as a BSize. \sa BAbstractLayout::MinSize() + + \since Haiku R1 */ /*! \fn BSize BView::MaxSize() - \brief Get the maximum size of the view. + \brief Return the maximum size of the view. \return The maximum size of the view as a BSize. \sa BAbstractLayout::MaxSize() + + \since Haiku R1 */ /*! \fn BSize BView::PreferredSize() - \brief Get the preferred size of the view. + \brief Return the preferred size of the view. \return The preferred size of the view as a BSize. \sa BAbstractLayout::PreferredSize() + + \since Haiku R1 */ @@ -3506,6 +3993,8 @@ SetViewColor(Parent()->ViewColor()); \brief Set this view's min size, to be used by MinSize(). \sa BAbstractLayout::SetExplicitMinSize() + + \since Haiku R1 */ @@ -3514,6 +4003,8 @@ SetViewColor(Parent()->ViewColor()); \brief Set this view's max size, to be used by MaxSize(). \sa BAbstractLayout::SetExplicitMaxSize() + + \since Haiku R1 */ @@ -3522,6 +4013,8 @@ SetViewColor(Parent()->ViewColor()); \brief Set this view's preferred size, to be used by PreferredSize(). \sa BAbstractLayout::SetExplicitPreferredSize() + + \since Haiku R1 */ @@ -3530,6 +4023,8 @@ SetViewColor(Parent()->ViewColor()); \brief Set this view's alignment, to be used by Alignment(). \sa BAbstractLayout::SetExplicitAlignment() + + \since Haiku R1 */ @@ -3538,6 +4033,8 @@ SetViewColor(Parent()->ViewColor()); \brief Sets the \a layout of the view. \param layout The \a layout to set. + + \since Haiku R1 */ @@ -3546,6 +4043,8 @@ SetViewColor(Parent()->ViewColor()); \brief Get the layout of the view. \returns The layout of the view. + + \since Haiku R1 */ @@ -3554,18 +4053,24 @@ SetViewColor(Parent()->ViewColor()); \brief Invalidate layout. \param descendants Also invalidate its children views. + + \since Haiku R1 */ /*! \fn void BView::EnableLayoutInvalidation() \brief Enable layout invalidation. + + \since Haiku R1 */ /*! \fn void BView::DisableLayoutInvalidation() \brief Disable layout invalidation. + + \since Haiku R1 */ @@ -3574,6 +4079,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns whether or not layout invalidation is disabled. \return \c true of layout invalidation is disabled, \c false otherwise. + + \since Haiku R1 */ @@ -3582,6 +4089,8 @@ SetViewColor(Parent()->ViewColor()); \brief Returns whether or not the layout is valid. \brief Returns \c true if the layout is valid, \c false otherwise. + + \since Haiku R1 */ @@ -3595,6 +4104,8 @@ SetViewColor(Parent()->ViewColor()); which it updates in methods other than DoLayout(), it has to invoke this method, when it has done so, since otherwise the information might become obsolete without the layout noticing. + + \since Haiku R1 */ @@ -3603,18 +4114,24 @@ SetViewColor(Parent()->ViewColor()); \brief Layout the view. \param force If \c true layout even if valid. + + \since Haiku R1 */ /*! \fn void BView::Relayout() \brief Relayout the view. + + \since Haiku R1 */ /*! \fn void BView::DoLayout() \brief Layout view within the layout context. + + \since Haiku R1 */ @@ -3622,7 +4139,7 @@ SetViewColor(Parent()->ViewColor()); /*! - \name Tool Tip Methods + \name Tool Tips \note These methods were not available in BeOS R5. */ @@ -3636,6 +4153,8 @@ SetViewColor(Parent()->ViewColor()); \brief Set the tool tip of the view to \a text. \param text The \a text to set the view to or \c NULL or blank to unset. + + \since Haiku R1 */ @@ -3644,6 +4163,8 @@ SetViewColor(Parent()->ViewColor()); \brief Set the tool tip of the view to the \a tip object. \param tip The tool tip object to set the view to or \c NULL to unset. + + \since Haiku R1 */ @@ -3652,6 +4173,8 @@ SetViewColor(Parent()->ViewColor()); \brief Return the tool tip set to the view or \c NULL if not set. \return The BToolTip object set to the view. + + \since Haiku R1 */ @@ -3660,12 +4183,16 @@ SetViewColor(Parent()->ViewColor()); \brief Show the tool tip at the current mouse position. \param tip The BToolTip object to show. + + \since Haiku R1 */ /*! \fn void BView::HideToolTip() \brief Hide the view's tool tip. + + \since Haiku R1 */ @@ -3675,6 +4202,8 @@ SetViewColor(Parent()->ViewColor()); \param point Currently unused. \param _tip A pointer to a pointer to a BToolTip object to set. + + \since Haiku R1 */ diff --git a/docs/user/interface/Window.dox b/docs/user/interface/Window.dox index a9f9890c28..9cfbe394a4 100644 --- a/docs/user/interface/Window.dox +++ b/docs/user/interface/Window.dox @@ -1,5 +1,5 @@ /* - * Copyright 2011-2013 Haiku, Inc. All rights reserved. + * Copyright 2011-2014 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: @@ -28,6 +28,8 @@ Combined window look and feel constants. Define both the appearance and behavior of a window. + + \since BeOS R3 */ @@ -35,6 +37,8 @@ \var window_type B_UNTYPED_WINDOW A window of unknown or undefined type. + + \since BeOS R3 */ @@ -42,6 +46,8 @@ \var window_type B_TITLED_WINDOW \c B_TITLED_WINDOW_LOOK and \c B_NORMAL_WINDOW_FEEL. + + \since BeOS R3 */ @@ -49,6 +55,8 @@ \var window_type B_MODAL_WINDOW \c B_MODAL_WINDOW_LOOK and \c B_MODAL_APP_WINDOW_FEEL. + + \since BeOS R3 */ @@ -56,6 +64,8 @@ \var window_type B_DOCUMENT_WINDOW \c B_DOCUMENT_WINDOW_LOOK and \c B_NORMAL_WINDOW_FEEL. + + \since BeOS R3 */ @@ -63,6 +73,8 @@ \var window_type B_BORDERED_WINDOW \c B_BORDERED_WINDOW_LOOK and \c B_NORMAL_WINDOW_FEEL. + + \since BeOS R3 */ @@ -70,6 +82,8 @@ \var window_type B_FLOATING_WINDOW \c B_FLOATING_WINDOW_LOOK and \c B_FLOATING_APP_WINDOW_FEEL. + + \since BeOS R3 */ @@ -81,6 +95,8 @@ \ingroup interface Window look constants, define window appearance. + + \since BeOS R3 */ @@ -88,6 +104,8 @@ \var window_look B_BORDERED_WINDOW_LOOK No title bar, thin border, no resize control. + + \since BeOS R3 */ @@ -95,6 +113,8 @@ \var window_look B_NO_BORDER_WINDOW_LOOK A borderless rectangle with no provisions to move or close the window. + + \since BeOS R5 */ @@ -103,6 +123,8 @@ Like \c B_DOCUMENT_WINDOW_LOOK, but with a resize corner instead of a resize thumb. + + \since BeOS R3 */ @@ -110,6 +132,8 @@ \var window_look B_DOCUMENT_WINDOW_LOOK Large title bar, thick border, draggable resize corner thumb. + + \since BeOS R3 */ @@ -118,6 +142,8 @@ For modal dialogs: no title bar, thick border, resize corner depending on the \c B_NOT_RESIZABLE flag. + + \since BeOS R3 */ @@ -125,6 +151,8 @@ \var window_look B_FLOATING_WINDOW_LOOK For floating sub windows: small title bar, thin border, resize corner. + + \since BeOS R3 */ @@ -136,6 +164,8 @@ \ingroup interface Window feel constants, define window behavior. + + \since BeOS R3 */ @@ -143,6 +173,8 @@ \var window_feel B_NORMAL_WINDOW_FEEL Behaves like a normal, non-modal, non-floating window. + + \since BeOS R3 */ @@ -151,6 +183,8 @@ Blocks all windows in its subset when displayed. Visible only if a window in its subset is visible. + + \since BeOS R3 */ @@ -159,6 +193,8 @@ Blocks all windows in its app when displayed. Visible only if a window in its app is visible. + + \since BeOS R3 */ @@ -167,6 +203,8 @@ Blocks all windows across the entire system when displayed. Always visible in all workspaces. + + \since BeOS R3 */ @@ -175,6 +213,8 @@ Floats above all windows in its subset when displayed. Visible only if a window in its subset is the frontmost window. + + \since BeOS R3 */ @@ -183,6 +223,8 @@ Floats above all windows in its app when displayed. Visible only if a window in its app is the frontmost window. + + \since BeOS R3 */ @@ -191,6 +233,8 @@ Floats above all windows across the entire system when displayed. Always visible in all workspaces. + + \since BeOS R3 */ @@ -202,6 +246,8 @@ \ingroup interface Define window alignment. + + \since BeOS R3 */ @@ -210,6 +256,8 @@ Aligns window in terms of frame buffer offsets. Affects only horizontal origin and width, can't align right and bottom edges in this mode. + + \since BeOS R3 */ @@ -217,6 +265,8 @@ \var window_alignment B_PIXEL_ALIGNMENT Aligns window in pixel coordinates. + + \since BeOS R3 */ @@ -227,6 +277,8 @@ \var B_NOT_MOVABLE Window cannot be moved by the user. + + \since BeOS R3 */ @@ -234,6 +286,8 @@ \var B_NOT_CLOSABLE Window cannot be closed by the user, no close button is displayed. + + \since BeOS R3 */ @@ -241,6 +295,8 @@ \var B_NOT_ZOOMABLE Window cannot be zoomed by the user, no zoom button is displayed. + + \since BeOS R3 */ @@ -248,6 +304,8 @@ \var B_NOT_MINIMIZABLE Window cannot be minimized by the user. + + \since BeOS R3 */ @@ -255,6 +313,8 @@ \var B_NOT_RESIZABLE Window cannot be resized by the user. + + \since BeOS R3 */ @@ -262,6 +322,8 @@ \var B_NOT_H_RESIZABLE Window cannot be resized horizontally by the user. + + \since BeOS R3 */ @@ -269,6 +331,8 @@ \var B_NOT_V_RESIZABLE Window cannot be resized vertically by the user. + + \since BeOS R3 */ @@ -276,6 +340,8 @@ \var B_AVOID_FRONT Window cannot be brought to front. + + \since BeOS R3 */ @@ -283,6 +349,8 @@ \var B_AVOID_FOCUS Window cannot receive keyboard focus. + + \since BeOS R3 */ @@ -291,6 +359,8 @@ The first click will not just bring the window to front, it will also be processed by the window. + + \since BeOS R3 */ @@ -299,14 +369,18 @@ Window draws only it's outline as it's resized and doesn't draw its contents. + + \since BeOS R3 */ /*! \var B_NO_WORKSPACE_ACTIVATION - Causes the current workspace to stay active even if the window is activated on - another workspace. + Causes the current workspace to stay active even if the window is activated + on another workspace. + + \since BeOS R3 */ @@ -315,6 +389,8 @@ Causes the window to move to the current workspace when activated if it already exists on another workspace. + + \since BeOS R3 */ @@ -324,6 +400,8 @@ Quit the application when the window closes. \note This flag existed but didn't function in BeOS R5. + + \since BeOS R5 */ @@ -333,6 +411,8 @@ Window maintains its position across workspaces. \note This flag did not exist in BeOS R5. + + \since Haiku R1 */ @@ -342,6 +422,8 @@ Automatically adjust the window size according to the layout constraints. \note This flag did not exist in BeOS R5. + + \since Haiku R1 */ @@ -351,15 +433,15 @@ Close the window when the user pushes the Escape key. \note This flag did not exist in BeOS R5. + + \since Haiku R1 */ /*! \var B_NO_SERVER_SIDE_WINDOW_MODIFIERS - ?? - - \note This flag did not exist in BeOS R5. + \since Haiku R1 */ @@ -370,6 +452,8 @@ \def B_CURRENT_WORKSPACE Applies to current workspace only. + + \since BeOS R3 */ @@ -377,6 +461,8 @@ \def B_ALL_WORKSPACES Applies to all workspaces. + + \since BeOS R3 */ @@ -504,6 +590,8 @@ Desktop window + + \since BeOS R3 */ @@ -551,6 +639,8 @@ \param workspace Mask that indicates which of the 32 potential workspace(s) the window should be displayed in or \c B_CURRENT_WORKSPACE or \c B_ALL_WORKSPACES constants. + + \since BeOS R3 */ @@ -621,6 +711,8 @@ \param workspace Mask that indicates which of the 32 potential workspace(s) the window should be displayed in or \c B_CURRENT_WORKSPACE or \c B_ALL_WORKSPACES constants. + + \since BeOS R3 */ @@ -629,6 +721,8 @@ \brief Archive constructor. \param data A pointer to the BMessage object to build the object from. + + \since BeOS R3 */ @@ -638,12 +732,16 @@ \param frame The inner \a frame rectangle in the screen coordinate system. \param bitmapToken Token to pass into App Server for offscreen window bitmap. + + \since Haiku R1 */ /*! \fn BWindow::~BWindow() \brief Destroys the BWindow object and all attached views. + + \since BeOS R3 */ @@ -655,6 +753,8 @@ \returns A newly created BWindow object or \c NULL if the message doesn't contain an archived BWindow. + + \since BeOS R3 */ @@ -667,6 +767,8 @@ \return A status code, \c B_OK if the object was archived or an error code otherwise. + + \since BeOS R3 */ @@ -686,6 +788,8 @@ \warning The window must first be locked before calling Quit(). \see BLooper::Quit() + + \since BeOS R3 */ @@ -702,6 +806,8 @@ \param child The child view to add. \param before The sibling view to add \a child before. + + \since BeOS R3 */ @@ -709,9 +815,9 @@ \fn void BWindow::AddChild(BLayoutItem* child) \brief Add the \a child layout item to the view hierarchy. - \note This method was not available in BeOS R5. - \param child The child layout item to add. + + \since Haiku R1 */ @@ -722,6 +828,8 @@ \param child The child view to remove. \return Whether or not \a child was removed from the view hierarchy. + + \since BeOS R3 */ @@ -730,6 +838,8 @@ \brief Returns the number of child views that the window has. \return The number of child views as an int32. + + \since BeOS R3 */ @@ -740,6 +850,8 @@ \param index The index of the child view to return a pointer of. \return A pointer to the child view at \a index or \c NULL if not found. + + \since BeOS R3 */ @@ -759,6 +871,8 @@ If you override Minimize() and you want to inherit BWindow's behavior, you must call BWindow::Minimize(). + + \since BeOS R3 */ @@ -769,6 +883,8 @@ \param window A pointer to the window to move behind. \returns \c B_OK on success or \c B_ERROR on failure. + + \since BeOS R3 */ @@ -776,13 +892,18 @@ \fn void BWindow::Flush() const \brief Flushes the window's connection to App Server causing any pending messages to be processed then returns immediately. + + \since BeOS R3 */ /*! \fn void BWindow::Sync() const - \brief Synchronizes the attached window's connection to App Server causing any - pending messages to be processed and then waits for the App Server to respond. + \brief Synchronizes the attached window's connection to App Server + causing any pending messages to be processed and then waits for + the App Server to respond. + + \since BeOS R3 */ @@ -790,8 +911,10 @@ \fn void BWindow::DisableUpdates() \brief Suppresses drawing within the window. - If you want the results of several drawing operations to appear in the window - all at once you disable updates, draw, and then re-enable updates. + If you want the results of several drawing operations to appear in the + window all at once you disable updates, draw, and then re-enable updates. + + \since BeOS R3 */ @@ -801,6 +924,8 @@ If you want the results of several drawing operations to appear in the window all at once you disable updates, draw, and then re-enable updates. + + \since BeOS R3 */ @@ -811,7 +936,7 @@ Unlike DisableUpdates() the messages are sent but are not processed. - \note This method was not available in BeOS R5. + \since Haiku R1 */ @@ -819,7 +944,7 @@ \fn void BWindow::EndViewTransaction() \brief Ends a view transaction allowing update to go to App Server again. - \note This method was not available in BeOS R5. + \since Haiku R1 */ @@ -827,10 +952,10 @@ \fn bool BWindow::InViewTransaction() const \brief Returns whether or not the window is currently in a view transaction. - \note This method was not available in BeOS R5. - \returns \c true if the window is currently in a view transaction, \c false otherwise. + + \since Haiku R1 */ @@ -839,6 +964,8 @@ \brief Returns whether or not the window is the frontmost on screen. \returns \c true if window is the frontmost on screen, \c false otherwise. + + \since BeOS R3 */ @@ -849,6 +976,8 @@ \param message The \a message received by the looper. \see BHandler::MessageReceived() + + \since BeOS R3 */ @@ -864,6 +993,8 @@ mechanism. \see BLooper::DispatchMessage() + + \since BeOS R3 */ @@ -871,10 +1002,10 @@ \fn void BWindow::FrameMoved(BPoint newPosition) \brief Hook method that gets called when the window is moved. - The default implementation does nothing. - \param newPosition The point of the top left corner of the frame rectangle that the window has been moved to. + + \since BeOS R3 */ @@ -882,10 +1013,10 @@ \fn void BWindow::FrameResized(float newWidth, float newHeight) \brief Hook method that gets called when the window is resized. - The default implementation does nothing. - \param newWidth The new \a width of the window. \param newHeight The new \a height of the window. + + \since BeOS R3 */ @@ -894,10 +1025,10 @@ uint32 newWorkspaces) \brief Hook method that gets called when the number of workspaces changes. - The default implementation does nothing. - \param oldWorkspaces The old number of workspaces. \param newWorkspaces The new number of workspaces. + + \since BeOS R3 */ @@ -905,10 +1036,10 @@ \fn void BWindow::WorkspaceActivated(int32 workspace, bool state) \brief Hook method that gets called when the active workspace changes. - The default implementation does nothing. - \param workspace The \a workspace number that was activated/deactivated. \param state \c true if activated, \c false if deactivated. + + \since BeOS R3 */ @@ -917,10 +1048,10 @@ \brief Hook method that gets called just before a menu owned by the window is shown. - The default implementation does nothing. - \note This method is not invoked by a message, there is no \c B_MENUS_BEGINNING flag. + + \since BeOS R3 */ @@ -929,10 +1060,10 @@ \brief Hook method that gets called just before a menu owned by the window is hidden. - The default implementation does nothing. - \note This method is not invoked by a message, there is no \c B_MENUS_ENDED flag. + + \since BeOS R3 */ @@ -950,6 +1081,8 @@ \param maxWidth The maximum width of the window to set. \param minHeight The minimum height of the window to set. \param maxHeight The maximum height of the window to set. + + \since BeOS R3 */ @@ -962,7 +1095,9 @@ \param _maxWidth The maximum width of the window. \param _minHeight The minimum height of the window. \param _maxHeight The maximum height of the window. -* + + \since BeOS R3 +*/ /*! @@ -977,6 +1112,8 @@ invoked asynchronously, calling this method manually is necessary, if it is desired to adjust the limits (and as a possible side effect the window size) earlier, e.g. before the first call to the Show() method.) + + \since Haiku R1 */ @@ -988,6 +1125,8 @@ \returns \c B_OK if the decorator settings were set successfully or an error code otherwise. + + \since Haiku R1 */ @@ -999,6 +1138,8 @@ \returns \c B_OK if the decorator settings were filled out successfully or an error code otherwise. + + \since Haiku R1 */ @@ -1011,6 +1152,8 @@ set by SetSizeLimits(), and the maximum values set by this method. /see Zoom() + + \since BeOS R3 */ @@ -1025,6 +1168,8 @@ \param origin The point that the window was moved to. \param width The new width of the window. \param height The new height of the window. + + \since BeOS R3 */ @@ -1037,6 +1182,8 @@ This method may move and resize the window resulting in both the FrameMoved() and FrameResized() hook methods to be called. This is the method called when the user clicks a window's zoom button. + + \since BeOS R3 */ @@ -1045,10 +1192,10 @@ \brief Hook method that is called when the screen that the window is located on changes size or location or the color space of the screen changes. - The default implementation does nothing. - \param screenSize The new screen size in the screen's coordinate system. \param depth The new color space of the screen. + + \since BeOS R3 */ @@ -1064,6 +1211,8 @@ Setting the \a rate to 0 disables pulsing for all views attache to the window. \param rate The pulse rate to set. + + \since BeOS R3 */ @@ -1075,11 +1224,13 @@ that no other messages are pending. \returns The pulse rate of the window as a bigtime_t. + + \since BeOS R3 */ /*! - \name Shortcut methods + \name Shortcut Methods The key parameter is specified in the form of a Unicode code point. This is generally an ASCII character such as 'A' or a key constant such as @@ -1095,8 +1246,6 @@ \fn void BWindow::AddShortcut(uint32 key, uint32 modifiers, BMenuItem* item) \brief Creates a keyboard shortcut that activates a menu \a item. - \note This method was not available in BeOS R5. - \param key The character that activates the shortcut, case-insensitive. \param modifiers A bit mask of modifiers in addition to \c B_COMMAND_KEY, options include: @@ -1105,6 +1254,8 @@ - \c B_CONTROL_KEY - \c B_MENU_KEY \param item The menu \a item to activate. + + \since Haiku R1 */ @@ -1124,6 +1275,8 @@ - \c B_MENU_KEY \param message The \a message to send when the shortcut is activated. The BWindow takes ownership of the \a message. + + \since BeOS R3 */ @@ -1146,6 +1299,8 @@ \param message The \a message to send when the shortcut is activated. The BWindow takes ownership of the \a message. \param target The handler to send the message to. + + \since BeOS R3 */ @@ -1153,8 +1308,6 @@ \fn bool BWindow::HasShortcut(uint32 key, uint32 modifiers) \brief Returns whether or not the specified shortcut is set on the window. - \note This method was not available in BeOS R5. - \param key The character to check, case-insensitive. \param modifiers A bit mask of modifiers in addition to \c B_COMMAND_KEY, options include one or more of the following: @@ -1165,6 +1318,8 @@ \returns \c true if the window has the specified shortcut, \c false otherwise. + + \since Haiku R1 */ @@ -1181,6 +1336,8 @@ - \c B_OPTION_KEY - \c B_CONTROL_KEY - \c B_MENU_KEY + + \since BeOS R3 */ @@ -1193,6 +1350,8 @@ \return A pointer to the window's default button or \c NULL if it doesn't have one. + + \since BeOS R3 */ @@ -1209,6 +1368,8 @@ \param button A pointer to the button to set as the default or \c NULL to unset. + + \since BeOS R3 */ @@ -1217,6 +1378,8 @@ \brief Returns whether or not any of the attached views need to be updated. \return \c true if an attached view needs to be updated, \c false otherwise. + + \since BeOS R3 */ @@ -1231,6 +1394,8 @@ You may call this method as part of a hook function such as MouseMoved() or KeyDown() to force invalid views to be immediately redrawn without having to wait for the hook function to finish. + + \since BeOS R3 */ @@ -1241,6 +1406,8 @@ \param viewName The name of the attached view to look for. \return A pointer to the BView object or \c NULL if no view is found. + + \since BeOS R3 */ @@ -1253,6 +1420,8 @@ system. \return A pointer to the BView object or \c NULL if no view is found. + + \since BeOS R3 */ @@ -1262,6 +1431,8 @@ \return A pointer to the current focus view of the window or \c NULL if not found. + + \since BeOS R3 */ @@ -1275,18 +1446,20 @@ \param active \c true to activate the window, \c false to deactivate the window. + + \since BeOS R3 */ /*! - \fn void BWindow::WindowActivated(bool state) + \fn void BWindow::WindowActivated(bool active) \brief Hook method that gets called when the window becomes activated or deactivated. - The default implementation does nothing. - - \param state \c true if the window has become activated, \c false if the + \param active \c true if the window has become activated, \c false if the window has become deactivated. + + \since BeOS R3 */ @@ -1295,6 +1468,8 @@ \brief Convert \a point to the screen's coordinate system in place. \param point A pointer to a BPoint object to convert. + + \since BeOS R3 */ @@ -1305,6 +1480,8 @@ \param point A BPoint object to convert. \return A new BPoint object in the screen's coordinate system. + + \since BeOS R3 */ @@ -1314,6 +1491,8 @@ window's coordinate system in place. \param point A pointer to a BPoint object to convert. + + \since BeOS R3 */ @@ -1325,6 +1504,8 @@ \param point A BPoint object to convert. \return A new BPoint object in the window's coordinate system. + + \since BeOS R3 */ @@ -1333,6 +1514,8 @@ \brief Convert \a rect to the screen's coordinate system in place. \param rect A pointer to a BRect object to convert. + + \since BeOS R3 */ @@ -1343,6 +1526,8 @@ \param rect A BRect object to convert. \return A new BRect object in the screen's coordinate system. + + \since BeOS R3 */ @@ -1352,6 +1537,8 @@ window's coordinate system in place. \param rect A pointer to a BRect object to convert. + + \since BeOS R3 */ @@ -1363,6 +1550,8 @@ \param rect A BRect object to convert. \return A new BRect object in the window's coordinate system. + + \since BeOS R3 */ @@ -1371,6 +1560,8 @@ \brief Returns whether or not the window is minimized. \return \c true if the window is minimized, \c false otherwise. + + \since BeOS R5 */ @@ -1380,6 +1571,10 @@ \return The bounding rectangle of the window as a BRect in the window's coordinate system. + + \sa Frame() + + \since BeOS R3 */ @@ -1389,6 +1584,10 @@ \return The bounding rectangle of the window as a BRect in the screen coordinate system. + + \sa Bounds() + + \since BeOS R3 */ @@ -1396,10 +1595,10 @@ \fn BRect BWindow::DecoratorFrame() const \brief Returns the frame rectangle of the window decorator. - \note This method was not available in BeOS R5. - \return The bounding rectangle of the window decorator as a BRect in the screen coordinate system. + + \since Haiku R1 */ @@ -1407,9 +1606,9 @@ \fn BSize BWindow::Size() const \brief Returns the size of the window. - \note This method was not available in BeOS R5. - \return The size of the window as a BSize in the screen coordinate system. + + \since Haiku R1 */ @@ -1418,6 +1617,8 @@ \brief Returns the window title as set by the constructor or SetTitle(). \return A pointer to the window title. + + \since BeOS R3 */ @@ -1427,6 +1628,8 @@ Also renames the window thread to "w>title" where "title" is the passed in title string. + + \since BeOS R5 */ @@ -1435,6 +1638,8 @@ \brief Returns whether or not the window is active. \return \c true if the window is active, \c false otherwise. + + \since BeOS R3 */ @@ -1447,6 +1652,8 @@ \param bar A pointer to the menu \a bar to set as as the key menu \a bar for the window. + + \since BeOS R3 */ @@ -1462,6 +1669,8 @@ To explicitly set a menu bar as the key menu bar call SetKeyMenuBar(). \return A pointer to the key menu bar or \c NULL is not is set. + + \since BeOS R3 */ @@ -1470,6 +1679,8 @@ \brief Returns whether or not the window is modal. \return \c true if the window is modal, \c false otherwise. + + \since BeOS R3 */ @@ -1478,6 +1689,8 @@ \brief Returns whether or not the window is floating. \return \c true if the window is floating, \c false otherwise. + + \since BeOS R3 */ @@ -1491,6 +1704,8 @@ object's feel is not set to \c B_MODAL_SUBSET_WINDOW_FEEL or \c B_FLOATING_SUBSET_WINDOW_FEEL. \retval B_ERROR Could not lock the BWindow object. + + \since BeOS R3 */ @@ -1504,6 +1719,8 @@ object's feel is not set to \c B_MODAL_SUBSET_WINDOW_FEEL or \c B_FLOATING_SUBSET_WINDOW_FEEL. \retval B_ERROR Could not lock the BWindow object. + + \since BeOS R3 */ @@ -1512,6 +1729,8 @@ \brief Changes the window type set in the constructor to \a type. \return \c B_OK on success or an error code on failure. + + \since BeOS R3 */ @@ -1520,6 +1739,8 @@ \brief Returns the current window type flag. \return The currently set window type flag. + + \since BeOS R3 */ @@ -1528,6 +1749,8 @@ \brief Changes the window look set in the constructor to \a look. \return \c B_OK on success or an error code on failure. + + \since BeOS R3 */ @@ -1536,6 +1759,8 @@ \brief Returns the current window look flag. \return The currently set window look flag. + + \since BeOS R3 */ @@ -1544,6 +1769,8 @@ \brief Changes the window feel set in the constructor to \a feel. \return \c B_OK on success or an error code on failure. + + \since BeOS R3 */ @@ -1552,6 +1779,8 @@ \brief Returns the current window feel flag. \return The currently set window feel flag. + + \since BeOS R3 */ @@ -1560,6 +1789,8 @@ \brief Changes the window flags set in the constructor to \a flags. \return \c B_OK on success or an error code on failure. + + \since BeOS R3 */ @@ -1568,26 +1799,37 @@ \brief Returns the current window flags. \return The currently set window flags. + + \since BeOS R3 */ /*! \fn status_t BWindow::SetWindowAlignment(window_alignment mode, - int32 h, int32 hOffset, int32 width, int32 widthOffset, - int32 v, int32 vOffset, int32 height, int32 heightOffset) + int32 h, int32 hOffset, int32 width, int32 widthOffset, + int32 v, int32 vOffset, int32 height, int32 heightOffset) + \brief Sets the alignment of the content of the window on the screen. + + \since BeOS R3 */ /*! \fn status_t BWindow::GetWindowAlignment(window_alignment* mode, - int32* h, int32* hOffset, int32* width, int32* widthOffset, - int32* v, int32* vOffset, int32* height, int32* heightOffset) const + int32* h, int32* hOffset, int32* width, int32* widthOffset, + int32* v, int32* vOffset, int32* height, int32* heightOffset) const + \brief Fills out the pointers with the alignment of the content of the + window on the screen. + + \since BeOS R3 */ /*! \fn uint32 BWindow::Workspaces() const \brief Returns the set of workspaces where the window can be displayed. + + \since BeOS R3 */ @@ -1599,6 +1841,8 @@ - \c B_CURRENT_WORKSPACE to place the window in the currently displayed workspace removing it from all others. - \c B_ALL_WORKSPACES to make the window show up in all workspaces. + + \since BeOS R3 */ @@ -1609,6 +1853,8 @@ \return A pointer the BView object that most recently received a \c B_MOUSE_MOVED message or \c NULL if not found. + + \since BeOS R3 */ @@ -1621,6 +1867,8 @@ \param dx The number of pixels to move the window vertically. \param dy The number of pixels to move the window horizontally. + + \since BeOS R3 */ @@ -1630,6 +1878,8 @@ \param point the location to move the window in the screen's coordinate system. + + \since BeOS R3 */ @@ -1643,6 +1893,8 @@ coordinate system. \param y The vertical coordinate to move the window to in the screen's coordinate system. + + \since BeOS R3 */ @@ -1654,6 +1906,8 @@ \brief dx The number of pixels to resize the window horizontally. \brief dy The number of pixels to resize the window vertically. + + \since BeOS R3 */ @@ -1665,6 +1919,8 @@ \param width The width to resize the window to. \param height The height to resize the window to. + + \since BeOS R3 */ @@ -1673,18 +1929,24 @@ \brief Center the window in \a rect. \param rect The rectangle to center the window in. + + \since Haiku R1 */ /*! \fn void BWindow::CenterOnScreen() \brief Centers the window on the screen the window is currently on. + + \since Haiku R1 */ /*! \fn void BWindow::CenterOnScreen(screen_id id) \brief Centers the window on the screen with the passed in \a id. + + \since Haiku R1 */ @@ -1697,6 +1959,8 @@ is started and it is unlocked. Calls to Hide() and Show() are cumulative. + + \since BeOS R3 */ @@ -1706,6 +1970,8 @@ list, and passes active status to another window. Calls to Hide() and Show() are cumulative. + + \since BeOS R3 */ @@ -1715,6 +1981,8 @@ Windows are hidden by default, you must call Show() to show the window starting the message loop going. + + \since BeOS R3 */ @@ -1725,6 +1993,8 @@ \see Quit() \see BLooper::QuitRequested() + + \since BeOS R3 */ @@ -1733,6 +2003,8 @@ \brief Spawns the message loop thread and starts the window running. \see BLooper::Run() + + \since BeOS R3 */ @@ -1741,6 +2013,8 @@ \brief Sets the \a layout of the window. \param layout The \a layout to set. + + \since Haiku R1 */ @@ -1749,6 +2023,8 @@ \brief Get the layout of the window. \returns The layout of the window. + + \since Haiku R1 */ @@ -1757,6 +2033,8 @@ \brief Invalidate layout. \param descendants Also invalidate its children windows. + + \since Haiku R1 */ @@ -1766,6 +2044,8 @@ to the window. \param force If \c true, layout even if valid. + + \since Haiku R1 */ @@ -1773,16 +2053,12 @@ \fn status_t BWindow::GetSupportedSuites(BMessage* data) \brief Reports the suites of messages and specifiers understood by the window. - \param data The message to use to report the suite of messages and specifiers. - - \see BHandler::GetSupportedSuites() + \copydetails BLooper::GetSupportedSuites() */ /*! - \fn BHandler* BView::ResolveSpecifier(BMessage* message, int32 index, + \fn BHandler* BWindow::ResolveSpecifier(BMessage* message, int32 index, BMessage* specifier, int32 what, const char* property) - \brief Determine the proper handler for a scripting message. - - \see BHandler::ResolveSpecifier() + \copydoc BLooper::ResolveSpecifier() */