本文整理汇总了C++中CGUIListItemLayout::CreateThumbnailPanelLayouts方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUIListItemLayout::CreateThumbnailPanelLayouts方法的具体用法?C++ CGUIListItemLayout::CreateThumbnailPanelLayouts怎么用?C++ CGUIListItemLayout::CreateThumbnailPanelLayouts使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUIListItemLayout
的用法示例。
在下文中一共展示了CGUIListItemLayout::CreateThumbnailPanelLayouts方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CGUIBaseContainer
//#ifdef PRE_SKIN_VERSION_2_1_COMPATIBILITY
CGUIPanelContainer::CGUIPanelContainer(DWORD dwParentID, DWORD dwControlId, float posX, float posY, float width, float height,
const CImage& imageNoFocus, const CImage& imageFocus,
float itemWidth, float itemHeight,
float textureWidth, float textureHeight,
float thumbPosX, float thumbPosY, float thumbWidth, float thumbHeight, DWORD thumbAlign, const CGUIImage::CAspectRatio &thumbAspect,
const CLabelInfo& labelInfo, bool hideLabels,
CGUIControl *pSpin, CGUIControl *pPanel)
: CGUIBaseContainer(dwParentID, dwControlId, posX, posY, width, height, VERTICAL, 200)
{
CGUIListItemLayout layout;
layout.CreateThumbnailPanelLayouts(itemWidth, itemHeight, false, imageNoFocus, textureWidth, textureHeight, thumbPosX, thumbPosY, thumbWidth, thumbHeight, thumbAlign, thumbAspect, labelInfo, hideLabels);
m_layouts.push_back(layout);
CGUIListItemLayout focusedLayout;
focusedLayout.CreateThumbnailPanelLayouts(itemWidth, itemHeight, true, imageFocus, textureWidth, textureHeight, thumbPosX, thumbPosY, thumbWidth, thumbHeight, thumbAlign, thumbAspect, labelInfo, hideLabels);
m_focusedLayouts.push_back(focusedLayout);
m_height -= 5;
m_itemsPerPage = (int)(m_height / itemHeight);
if (m_itemsPerPage < 1) m_itemsPerPage = 1;
m_itemsPerRow = (int)(m_width / itemWidth);
if (m_itemsPerRow < 1) m_itemsPerRow = 1;
m_height = m_itemsPerPage * itemHeight;
m_spinControl = pSpin;
m_largePanel = pPanel;
ControlType = GUICONTAINER_PANEL;
}