Inheritance diagram for os::IconView:
Public Types | |
| enum | scroll_direction { SCROLL_UP, SCROLL_DOWN, SCROLL_LEFT, SCROLL_RIGHT } |
| enum | view_type { VIEW_ICONS, VIEW_LIST, VIEW_DETAILS, VIEW_ICONS_DESKTOP } |
| The different view types. More... | |
Public Member Functions | |
| IconView (const Rect &cFrame, os::String zName, uint32 nResizeMask) | |
| Constructor. | |
| ~IconView () | |
| virtual void | EnableStatusChanged (bool bIsEnabled) |
| virtual void | Invoked (uint nIcon, os::IconData *pcData) |
| Called when an icon is invoked. | |
| virtual void | SelectionChanged () |
| Called when the selection changes. | |
| virtual void | DragSelection (os::Point cStartPoint) |
| Called when an icon should be dragged. | |
| virtual void | OpenContextMenu (os::Point cPosition, bool bMouseOverIcon) |
| Called when the context menu of one icon should be opened. | |
| view_type | GetView () const |
| Returns the curent view type. | |
| void | SetView (view_type eType) |
| Sets a new view type. | |
| void | SetTextColor (os::Color32_s sColor) |
| Sets a new text color. | |
| void | SetTextShadowColor (os::Color32_s sColor) |
| Sets a new color for the shadows of the text. | |
| void | SetSelectionColor (os::Color32_s sColor) |
| Sets a new color for the selection. | |
| void | SetBackgroundColor (os::Color32_s sColor) |
| Sets a new background color. | |
| void | SetBackground (os::Image *pcImage) |
| Sets a new background image. | |
| void | SetSingleClick (bool bSingle) |
| Enables/Disables single click mode. | |
| bool | IsSingleClick () const |
| Returns whether single click mode is enabled. | |
| void | SetAutoSort (bool bAutoSort) |
| Enables/Disables sorting. | |
| bool | IsAutoSort () const |
| Returns whether sorting is enabled. | |
| void | SetMultiSelect (bool bMultiSelect) |
| Enables/Disables multiselect. | |
| bool | IsMultiSelect () const |
| Returns whether multiselect is enabled. | |
| void | Clear () |
| Clears the iconview. | |
| uint | AddIcon (os::Image *pcIcon, os::IconData *pcData) |
| Adds a new icon to the iconview. | |
| void | RemoveIcon (uint nIcon) |
| Removes an icon. | |
| uint | GetIconCount () |
| Returns the number of icons. | |
| os::String | GetIconString (uint nIcon, uint nString) |
| Returns a string of an icon. | |
| os::Image * | GetIconImage (uint nIcon) |
| Returns the image of an icon. | |
| os::IconData * | GetIconData (uint nIcon) |
| Returns the private data of an icon. | |
| bool | GetIconSelected (uint nIcon) |
| Returns whether one icon is selected. | |
| os::Point | GetIconPosition (uint nIcon) |
| Returns the current position of an icon. | |
| void | AddIconString (uint nIcon, os::String zName) |
| Adds a string of an icon. | |
| void | SetIconString (uint nIcon, uint nString, os::String zString) |
| Sets a string of an icon. | |
| void | SetIconImage (uint nIcon, os::Image *pcImage) |
| Sets the image of an icon. | |
| void | SetIconSelected (uint nIcon, bool bSelected, bool bDeselectAll=true) |
| Sets the selection status of an icon. | |
| void | SetIconPosition (uint nIcon, os::Point cPosition) |
| Sets the position of an icon. | |
| os::Point | GetIconSize () |
| Returns the current icon size that is assumed by the iconview. | |
| void | RenderIcon (uint nIcon, os::View *pcView, os::Point cPosition) |
| Renders an icon in a view. | |
| void | RenderIcon (os::String zName, os::Image *pcImage, os::View *pcView, os::Point cPosition) |
| Renders an icon in a view. | |
| void | Layout () |
| Relayouts the view. | |
| os::Point | ConvertToView (os::Point cPoint) |
| void | StartScroll (scroll_direction eDirection) |
| Start scrolling. | |
| void | StopScroll () |
| Stops scrolling. | |
| void | ScrollToIcon (uint nIcon) |
| Scrolls to an icon. | |
| void | SetSelChangeMsg (os::Message *pcMessage) |
| Sets the selection change message. | |
| void | SetInvokeMsg (os::Message *pcMessage) |
| Sets the invoke message. | |
| virtual os::Message * | GetSelChangeMsg () |
| Returns the selection change message. | |
| virtual os::Message * | GetInvokeMsg () |
| Returns the invoke message. | |
| virtual void | MakeFocus (bool bFocus=true) |
| Change focus of the IconView. | |
| virtual void | SetTabOrder (int nOrder=NEXT_TAB_ORDER) |
| Set the keyboard manouvering sorting order. | |
| virtual int | GetTabOrder () |
Classes | |
| class | MainView |
| class | Private |
| IconView::IconView | ( | const Rect & | cFrame, | |
| os::String | zName, | |||
| uint32 | nResizeMask | |||
| ) |
| cFrame | - Frame of the iconview. | |
| zName | - Name of the iconview. | |
| nResizeMask | - resize mask. |
| IconView::~IconView | ( | ) |
| void IconView::EnableStatusChanged | ( | bool | bIsEnabled | ) | [virtual] |
Implements os::Control.
| void IconView::Invoked | ( | uint | nIcon, | |
| os::IconData * | pcData | |||
| ) | [virtual] |
| nIcon | - Index of the invoked icon. | |
| pcData | - Data of the invoked icon. |
Reimplemented in os::IconDirectoryView.
| void IconView::SelectionChanged | ( | ) | [virtual] |
| nIcon | - Index of the invoked icon. | |
| pcData | - Data of the invoked icon. |
| void IconView::DragSelection | ( | os::Point | cStartPoint | ) | [virtual] |
| cStartPoint | - Start position of the drag. |
Reimplemented in os::IconDirectoryView.
| void IconView::OpenContextMenu | ( | os::Point | cPosition, | |
| bool | bMouseOverIcon | |||
| ) | [virtual] |
| cPosition | - Position. | |
| bMouseOverIcon | - Whether the contextmenu of an icon should be opened. |
Reimplemented in os::IconDirectoryView.
| IconView::view_type IconView::GetView | ( | ) | const |
| void IconView::SetView | ( | view_type | eType | ) |
| void IconView::SetTextColor | ( | os::Color32_s | sColor | ) |
| sColor | - The new color. |
| void IconView::SetTextShadowColor | ( | os::Color32_s | sColor | ) |
| sColor | - The new color. |
| void IconView::SetSelectionColor | ( | os::Color32_s | sColor | ) |
| sColor | - The new color. |
| void IconView::SetBackgroundColor | ( | os::Color32_s | sColor | ) |
| sColor | - The new color. |
| void IconView::SetBackground | ( | os::Image * | pcImage | ) |
| pcImage | - The new image. |
| void IconView::SetSingleClick | ( | bool | bSingleClick | ) |
| bSingleClick | - Whether single click mode is enabled. |
| bool IconView::IsSingleClick | ( | ) | const |
| void IconView::SetAutoSort | ( | bool | bAutoSort | ) |
| bAutoSort | - Whether sorting is enabled. |
| bool IconView::IsAutoSort | ( | ) | const |
| void IconView::SetMultiSelect | ( | bool | bMultiSelect | ) |
| bool IconView::IsMultiSelect | ( | ) | const |
| void IconView::Clear | ( | ) |
| uint IconView::AddIcon | ( | os::Image * | pcImage, | |
| os::IconData * | pcData | |||
| ) |
| pcImage | - The icon. | |
| pcData | - Private data of the icon. A subclass of os::IconData can be used. |
| void IconView::RemoveIcon | ( | uint | nIcon | ) |
| nIcon | - Index of the icon. |
| uint IconView::GetIconCount | ( | ) |
| os::String IconView::GetIconString | ( | uint | nIcon, | |
| uint | nString | |||
| ) |
| nIcon | - Index of the icon. | |
| nString | - Index of the string. |
| os::Image * IconView::GetIconImage | ( | uint | nIcon | ) |
| nIcon | - Index of the icon. |
| os::IconData * IconView::GetIconData | ( | uint | nIcon | ) |
| nIcon | - Index of the icon. |
| bool IconView::GetIconSelected | ( | uint | nIcon | ) |
| nIcon | - Index of the icon. |
| os::Point IconView::GetIconPosition | ( | uint | nIcon | ) |
| nIcon | - Index of the icon. |
| void IconView::AddIconString | ( | uint | nIcon, | |
| os::String | zString | |||
| ) |
| nIcon | - Index of the icon. | |
| zString | - String. |
| void IconView::SetIconString | ( | uint | nIcon, | |
| uint | nString, | |||
| os::String | zString | |||
| ) |
| nIcon | - Index of the icon. | |
| nString | - Index of the string. | |
| zString | - String. |
| void IconView::SetIconImage | ( | uint | nIcon, | |
| os::Image * | pcImage | |||
| ) |
| nIcon | - Index of the icon. | |
| pcImage | - New image. The old one will be deleted. |
| void IconView::SetIconSelected | ( | uint | nIcon, | |
| bool | bSelected, | |||
| bool | bDeselectAll = true | |||
| ) |
| nIcon | - Index of the icon. | |
| bSelected | - New select status. | |
| bDeselectAll | - Whether all icons should be deslected first. |
| void IconView::SetIconPosition | ( | uint | nIcon, | |
| os::Point | cPosition | |||
| ) |
| nIcon | - Index of the icon. | |
| cPosition | - the new position. |
| os::Point IconView::GetIconSize | ( | ) |
| void IconView::RenderIcon | ( | os::String | zName, | |
| os::Image * | pcImage, | |||
| os::View * | pcView, | |||
| os::Point | cPosition | |||
| ) |
| void IconView::Layout | ( | ) |
| void IconView::StartScroll | ( | scroll_direction | eDirection | ) |
| void IconView::StopScroll | ( | ) |
| void IconView::ScrollToIcon | ( | uint | nIcon | ) |
| void IconView::SetSelChangeMsg | ( | os::Message * | pcMessage | ) |
| pcMessage | - New message. |
| void IconView::SetInvokeMsg | ( | os::Message * | pcMessage | ) |
| pcMessage | - New message. |
| os::Message * IconView::GetSelChangeMsg | ( | ) | [virtual] |
| os::Message * IconView::GetInvokeMsg | ( | ) | [virtual] |
| void IconView::MakeFocus | ( | bool | bFocus = true |
) | [virtual] |
| void IconView::SetTabOrder | ( | int | nOrder = NEXT_TAB_ORDER |
) | [virtual] |
| nOrder | - The sorting order. |
Reimplemented from os::View.
| int IconView::GetTabOrder | ( | ) | [virtual] |
1.5.1