Pyro higlevel API
|
Public Types | |
enum | adj_direction { ADJ_LEFT, ADJ_RIGHT, ADJ_UP, ADJ_DOWN } |
Public Member Functions | |
Private (os::IconView *pcControl) | |
void | Lock () |
void | Unlock () |
void | CalculateMaxIconSize () |
void | SortIcons () |
os::Rect | GetViewFrame () |
void | LayoutIcons () |
void | LayoutIconsIfNecessary () |
int | HitTest (const os::Point &cPosition) |
void | DeselectAll () |
void | Select (uint nIcon, bool bSelected) |
void | Select (os::Point cStart, os::Point cEnd, bool bKeepSelection) |
void | SelectAdjacent (adj_direction eDirection, bool bAddToSelection=false) |
void | RenderSelection (uint nIcon, os::View *pcView, os::Point cPosition) |
void | RenderIcon (uint nIcon, os::View *pcView, os::Point cPosition) |
void | RenderIcon (os::String zName, os::Image *pcImage, os::View *pcView, os::Point cPosition) |
void | AdjustScrollBars () |
|
inline |
References os::COL_ICON_BG, os::COL_ICON_SELECTED, os::COL_ICON_TEXT, os::get_default_color(), os::IconView::Private::m_bAdjusting, os::IconView::Private::m_bAutoSort, os::IconView::Private::m_bDragging, os::IconView::Private::m_bHScrollBarVisible, os::IconView::Private::m_bMouseDown, os::IconView::Private::m_bMouseDownOverIcon, os::IconView::Private::m_bMultiSelect, os::IconView::Private::m_bScrollDown, os::IconView::Private::m_bScrollLeft, os::IconView::Private::m_bScrollRight, os::IconView::Private::m_bScrollUp, os::IconView::Private::m_bSelecting, os::IconView::Private::m_bSingleClick, os::IconView::Private::m_bVScrollBarVisible, os::IconView::Private::m_cIcons, os::IconView::Private::m_eType, os::IconView::Private::m_nLastActiveIcon, os::IconView::Private::m_nLastClick, os::IconView::Private::m_nLastKeyDownTime, os::IconView::Private::m_pcBackground, os::IconView::Private::m_pcControl, os::IconView::Private::m_pcIconLock, os::IconView::Private::m_pcSelChangeMsg, os::IconView::Private::m_sBackgroundColor, os::IconView::Private::m_sSelectionColor, os::IconView::Private::m_sTextColor, os::IconView::Private::m_sTextShadowColor, os::IconView::Private::m_vLastXPos, os::IconView::Private::m_vLastYPos, and os::IconView::VIEW_ICONS.
|
inline |
References os::Rect::bottom, os::View::GetBounds(), os::View::GetFrame(), os::Rect::Height(), os::View::Height(), os::View::Hide(), os::IconView::Private::m_bAdjusting, os::IconView::Private::m_bHScrollBarVisible, os::IconView::Private::m_bVScrollBarVisible, os::IconView::Private::m_eType, os::IconView::Private::m_pcHScrollBar, os::IconView::Private::m_pcView, os::IconView::Private::m_pcVScrollBar, os::IconView::Private::m_vLastXPos, os::IconView::Private::m_vLastYPos, os::IconView::Private::m_vScrollBarHeight, os::IconView::Private::m_vScrollBarWidth, os::Rect::right, os::View::SetFrame(), os::View::Show(), os::IconView::VIEW_DETAILS, os::IconView::VIEW_ICONS, os::IconView::VIEW_ICONS_DESKTOP, os::IconView::VIEW_LIST, os::Rect::Width(), and os::View::Width().
Referenced by os::IconView::Private::LayoutIcons(), and os::IconView::Private::LayoutIconsIfNecessary().
|
inline |
References os::font_height::ascender, os::font_height::descender, os::View::GetFontHeight(), os::View::GetStringWidth(), os::IconView::Private::Lock(), os::IconView::Private::m_cIcons, os::IconView::Private::m_eType, os::IconView::Private::m_pcView, os::IconView::Private::m_vIconHeight, os::IconView::Private::m_vIconWidth, os::IconView::Private::m_vStringWidth, os::IconView::Private::Unlock(), os::IconView::VIEW_DETAILS, os::IconView::VIEW_ICONS, and os::IconView::VIEW_ICONS_DESKTOP.
Referenced by os::IconView::Private::LayoutIcons().
|
inline |
References os::Rect::DoIntersect(), os::View::GetBounds(), os::View::Invalidate(), os::IconView::Private::Lock(), os::IconView::Private::m_cIcons, os::IconView::Private::m_nLastActiveIcon, os::IconView::Private::m_pcView, os::IconView::Private::m_vIconHeight, os::IconView::Private::m_vIconWidth, and os::IconView::Private::Unlock().
Referenced by os::IconView::Private::Select(), os::IconView::Private::SelectAdjacent(), and os::IconView::SetIconSelected().
|
inline |
References os::Desktop::ACTIVE_DESKTOP, os::Message::AddInt32(), os::Message::FindRect(), os::View::GetBounds(), os::Application::GetInstance(), os::View::GetScrollOffset(), os::Application::GetServerPort(), os::IconView::Private::m_eType, os::IconView::Private::m_pcView, and os::IconView::VIEW_ICONS_DESKTOP.
Referenced by os::IconView::Private::LayoutIcons(), and os::IconView::Private::LayoutIconsIfNecessary().
|
inline |
|
inline |
References os::IconView::Private::AdjustScrollBars(), os::IconView::Private::CalculateMaxIconSize(), os::View::Flush(), os::IconView::Private::GetViewFrame(), os::Rect::Height(), os::View::Invalidate(), os::Rect::left, os::IconView::Private::Lock(), os::IconView::Private::m_cIcons, os::IconView::Private::m_eType, os::IconView::Private::m_nIconsPerRow, os::IconView::Private::m_pcHScrollBar, os::IconView::Private::m_pcView, os::IconView::Private::m_pcVScrollBar, os::IconView::Private::m_vIconHeight, os::IconView::Private::m_vIconWidth, os::IconView::Private::m_vLastXPos, os::IconView::Private::m_vLastYPos, os::ScrollBar::SetMinMax(), os::ScrollBar::SetProportion(), os::Control::SetValue(), os::Rect::top, os::IconView::Private::Unlock(), os::IconView::VIEW_DETAILS, os::IconView::VIEW_ICONS, os::IconView::VIEW_LIST, and os::Rect::Width().
Referenced by os::IconView::Clear(), os::IconView::Layout(), and os::IconView::Private::LayoutIconsIfNecessary().
|
inline |
References os::IconView::Private::AdjustScrollBars(), os::IconView::Private::GetViewFrame(), os::Rect::Height(), os::IconView::Private::LayoutIcons(), os::IconView::Private::m_eType, os::IconView::Private::m_nIconsPerRow, os::IconView::Private::m_pcHScrollBar, os::IconView::Private::m_pcVScrollBar, os::IconView::Private::m_vIconHeight, os::IconView::Private::m_vIconWidth, os::IconView::Private::m_vLastXPos, os::IconView::Private::m_vLastYPos, os::ScrollBar::SetMinMax(), os::ScrollBar::SetProportion(), os::Control::SetValue(), os::IconView::VIEW_DETAILS, os::IconView::VIEW_ICONS, and os::Rect::Width().
|
inline |
References os::Locker::Lock(), and os::IconView::Private::m_pcIconLock.
Referenced by os::IconView::AddIcon(), os::IconView::AddIconString(), os::IconView::Private::CalculateMaxIconSize(), os::IconView::Clear(), os::IconView::Private::DeselectAll(), os::IconView::Private::HitTest(), os::IconView::Private::LayoutIcons(), os::IconView::RemoveIcon(), os::IconView::Private::RenderIcon(), os::IconView::Private::RenderSelection(), os::IconView::ScrollToIcon(), os::IconView::Private::Select(), os::IconView::Private::SelectAdjacent(), os::IconView::SetIconImage(), os::IconView::SetIconPosition(), os::IconView::SetIconSelected(), os::IconView::SetIconString(), and os::IconView::Private::SortIcons().
|
inline |
References os::font_height::ascender, os::COL_SHADOW, os::font_height::descender, DM_BLEND, DM_OVER, os::View::DrawString(), os::get_default_color(), os::View::GetFontHeight(), os::View::GetStringWidth(), os::IconView::Private::Lock(), os::IconView::Private::m_cIcons, os::IconView::Private::m_eType, os::IconView::Private::m_sBackgroundColor, os::IconView::Private::m_sSelectionColor, os::IconView::Private::m_sTextColor, os::IconView::Private::m_sTextShadowColor, os::IconView::Private::m_vIconHeight, os::IconView::Private::m_vIconWidth, os::IconView::Private::m_vStringWidth, os::View::SetBgColor(), os::View::SetDrawingMode(), os::View::SetFgColor(), os::IconView::Private::Unlock(), os::IconView::VIEW_DETAILS, os::IconView::VIEW_ICONS, os::IconView::VIEW_ICONS_DESKTOP, os::Point::x, and os::Point::y.
Referenced by os::IconView::RenderIcon().
|
inline |
References os::font_height::ascender, os::font_height::descender, DM_BLEND, DM_COPY, os::Image::Draw(), os::View::DrawString(), os::View::GetFontHeight(), os::Image::GetSize(), os::View::GetStringWidth(), os::IconView::Private::m_eType, os::IconView::Private::m_sBackgroundColor, os::IconView::Private::m_sTextColor, os::IconView::Private::m_vIconHeight, os::IconView::Private::m_vIconWidth, os::View::SetBgColor(), os::View::SetDrawingMode(), os::View::SetFgColor(), os::IconView::VIEW_ICONS, os::IconView::VIEW_ICONS_DESKTOP, os::Point::x, and os::Point::y.
|
inline |
References os::View::Invalidate(), os::IconView::Private::Lock(), os::IconView::Private::m_cIcons, os::IconView::Private::m_nLastActiveIcon, os::IconView::Private::m_pcView, os::IconView::Private::m_vIconHeight, os::IconView::Private::m_vIconWidth, and os::IconView::Private::Unlock().
Referenced by os::IconView::Private::SelectAdjacent(), and os::IconView::SetIconSelected().
|
inline |
References os::IconView::Private::ADJ_DOWN, os::IconView::Private::ADJ_LEFT, os::IconView::Private::ADJ_RIGHT, os::IconView::Private::ADJ_UP, os::IconView::Private::DeselectAll(), os::IconView::Private::Lock(), os::IconView::Private::m_bMultiSelect, os::IconView::Private::m_cIcons, os::IconView::Private::m_eType, os::IconView::Private::m_nIconsPerRow, os::IconView::Private::m_nLastActiveIcon, os::IconView::Private::m_pcControl, os::IconView::Private::m_vIconHeight, os::IconView::Private::m_vIconWidth, os::IconView::Private::m_vLastXPos, os::IconView::Private::m_vLastYPos, os::IconView::ScrollToIcon(), os::IconView::Private::Select(), os::IconView::Private::Unlock(), os::IconView::VIEW_DETAILS, os::IconView::VIEW_LIST, os::Point::x, and os::Point::y.
|
inline |
|
inline |
References os::IconView::Private::m_pcIconLock, and os::Locker::Unlock().
Referenced by os::IconView::AddIcon(), os::IconView::AddIconString(), os::IconView::Private::CalculateMaxIconSize(), os::IconView::Clear(), os::IconView::Private::DeselectAll(), os::IconView::Private::HitTest(), os::IconView::Private::LayoutIcons(), os::IconView::RemoveIcon(), os::IconView::Private::RenderIcon(), os::IconView::Private::RenderSelection(), os::IconView::ScrollToIcon(), os::IconView::Private::Select(), os::IconView::Private::SelectAdjacent(), os::IconView::SetIconImage(), os::IconView::SetIconPosition(), os::IconView::SetIconSelected(), os::IconView::SetIconString(), and os::IconView::Private::SortIcons().
bool os::IconView::Private::m_bAdjusting |
Referenced by os::IconView::Private::AdjustScrollBars(), and os::IconView::Private::Private().
bool os::IconView::Private::m_bAutoSort |
bool os::IconView::Private::m_bDragging |
Referenced by os::IconView::Private::Private().
bool os::IconView::Private::m_bHScrollBarVisible |
Referenced by os::IconView::Private::AdjustScrollBars(), and os::IconView::Private::Private().
bool os::IconView::Private::m_bMouseDown |
Referenced by os::IconView::Private::Private().
bool os::IconView::Private::m_bMouseDownOverIcon |
Referenced by os::IconView::Private::Private().
bool os::IconView::Private::m_bMouseSelectedIcon |
bool os::IconView::Private::m_bMultiSelect |
bool os::IconView::Private::m_bScrollDown |
bool os::IconView::Private::m_bScrollLeft |
bool os::IconView::Private::m_bScrollRight |
bool os::IconView::Private::m_bScrollUp |
bool os::IconView::Private::m_bSelecting |
Referenced by os::IconView::Private::Private().
bool os::IconView::Private::m_bSingleClick |
Referenced by os::IconView::IsSingleClick(), os::IconView::Private::Private(), and os::IconView::SetSingleClick().
bool os::IconView::Private::m_bVScrollBarVisible |
Referenced by os::IconView::Private::AdjustScrollBars(), and os::IconView::Private::Private().
std::vector<Icon*> os::IconView::Private::m_cIcons |
Referenced by os::IconView::AddIcon(), os::IconView::AddIconString(), os::IconView::Private::CalculateMaxIconSize(), os::IconView::Clear(), os::IconView::Private::DeselectAll(), os::IconView::GetIconCount(), os::IconView::GetIconData(), os::IconView::GetIconImage(), os::IconView::GetIconPosition(), os::IconView::GetIconSelected(), os::IconView::GetIconString(), os::IconView::Private::HitTest(), os::IconView::Private::LayoutIcons(), os::IconView::Private::Private(), os::IconView::RemoveIcon(), os::IconView::Private::RenderIcon(), os::IconView::Private::RenderSelection(), os::IconView::ScrollToIcon(), os::IconView::Private::Select(), os::IconView::Private::SelectAdjacent(), os::IconView::SetIconImage(), os::IconView::SetIconPosition(), os::IconView::SetIconSelected(), os::IconView::SetIconString(), and os::IconView::Private::SortIcons().
os::Point os::IconView::Private::m_cLastSelectPosition |
os::Point os::IconView::Private::m_cMouseDownPos |
os::String os::IconView::Private::m_cSearchString |
os::Point os::IconView::Private::m_cSelectStart |
view_type os::IconView::Private::m_eType |
Referenced by os::IconView::Private::AdjustScrollBars(), os::IconView::Private::CalculateMaxIconSize(), os::IconView::GetView(), os::IconView::Private::GetViewFrame(), os::IconView::Private::HitTest(), os::IconView::Private::LayoutIcons(), os::IconView::Private::LayoutIconsIfNecessary(), os::IconView::Private::Private(), os::IconView::Private::RenderIcon(), os::IconView::ScrollToIcon(), os::IconView::Private::SelectAdjacent(), os::IconView::SetIconPosition(), and os::IconView::SetView().
int os::IconView::Private::m_nIconsPerRow |
int os::IconView::Private::m_nLastActiveIcon |
bigtime_t os::IconView::Private::m_nLastClick |
Referenced by os::IconView::Private::Private().
bigtime_t os::IconView::Private::m_nLastKeyDownTime |
Referenced by os::IconView::Private::Private().
os::Image* os::IconView::Private::m_pcBackground |
Referenced by os::IconView::Private::Private(), os::IconView::SetBackground(), and os::IconView::~IconView().
os::IconView* os::IconView::Private::m_pcControl |
os::ScrollBar* os::IconView::Private::m_pcHScrollBar |
os::Locker* os::IconView::Private::m_pcIconLock |
os::Message* os::IconView::Private::m_pcSelChangeMsg |
os::View* os::IconView::Private::m_pcView |
Referenced by os::IconView::Private::AdjustScrollBars(), os::IconView::Private::CalculateMaxIconSize(), os::IconView::ConvertToView(), os::IconView::Private::DeselectAll(), os::IconView::GetTabOrder(), os::IconView::Private::GetViewFrame(), os::IconView::IconView(), os::IconView::Private::LayoutIcons(), os::IconView::MakeFocus(), os::IconView::ScrollToIcon(), os::IconView::Private::Select(), os::IconView::SetBackground(), os::IconView::SetBackgroundColor(), os::IconView::SetIconImage(), os::IconView::SetIconPosition(), os::IconView::SetIconSelected(), os::IconView::SetIconString(), os::IconView::SetSelectionColor(), os::IconView::SetTabOrder(), os::IconView::SetTextColor(), os::IconView::SetTextShadowColor(), os::IconView::StartScroll(), os::IconView::StopScroll(), and os::IconView::~IconView().
os::ScrollBar* os::IconView::Private::m_pcVScrollBar |
os::Color32_s os::IconView::Private::m_sBackgroundColor |
os::Color32_s os::IconView::Private::m_sSelectionColor |
os::Color32_s os::IconView::Private::m_sTextColor |
os::Color32_s os::IconView::Private::m_sTextShadowColor |
float os::IconView::Private::m_vIconHeight |
Referenced by os::IconView::Private::CalculateMaxIconSize(), os::IconView::Private::DeselectAll(), os::IconView::GetIconSize(), os::IconView::Private::LayoutIcons(), os::IconView::Private::LayoutIconsIfNecessary(), os::IconView::Private::RenderIcon(), os::IconView::Private::RenderSelection(), os::IconView::ScrollToIcon(), os::IconView::Private::Select(), os::IconView::Private::SelectAdjacent(), and os::IconView::SetIconPosition().
float os::IconView::Private::m_vIconWidth |
Referenced by os::IconView::Private::CalculateMaxIconSize(), os::IconView::Private::DeselectAll(), os::IconView::GetIconSize(), os::IconView::Private::HitTest(), os::IconView::Private::LayoutIcons(), os::IconView::Private::LayoutIconsIfNecessary(), os::IconView::Private::RenderIcon(), os::IconView::Private::RenderSelection(), os::IconView::ScrollToIcon(), os::IconView::Private::Select(), os::IconView::Private::SelectAdjacent(), and os::IconView::SetIconPosition().
float os::IconView::Private::m_vLastXPos |
float os::IconView::Private::m_vLastYPos |
float os::IconView::Private::m_vScrollBarHeight |
Referenced by os::IconView::Private::AdjustScrollBars(), and os::IconView::IconView().
float os::IconView::Private::m_vScrollBarWidth |
Referenced by os::IconView::Private::AdjustScrollBars(), and os::IconView::IconView().
float os::IconView::Private::m_vStringWidth[10] |
Referenced by os::IconView::Private::CalculateMaxIconSize(), and os::IconView::Private::RenderIcon().