本文整理汇总了C++中CGUIControl::SetColorDiffuse方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUIControl::SetColorDiffuse方法的具体用法?C++ CGUIControl::SetColorDiffuse怎么用?C++ CGUIControl::SetColorDiffuse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUIControl
的用法示例。
在下文中一共展示了CGUIControl::SetColorDiffuse方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Create
//.........这里部分代码省略.........
{
control = new CGUIEPGGridContainer(parentID, id, posX, posY, width, height, orientation, scrollTime, preloadItems, timeBlocks, rulerUnit);
((CGUIEPGGridContainer *)control)->LoadLayout(pControlNode);
((CGUIEPGGridContainer *)control)->SetRenderOffset(offset);
((CGUIEPGGridContainer *)control)->SetType(viewType, viewLabel);
}
else if (type == CGUIControl::GUICONTAINER_FIXEDLIST)
{
CScroller scroller;
GetScroller(pControlNode, "scrolltime", scroller);
control = new CGUIFixedListContainer(parentID, id, posX, posY, width, height, orientation, scroller, preloadItems, focusPosition, iMovementRange);
((CGUIFixedListContainer *)control)->LoadLayout(pControlNode);
((CGUIFixedListContainer *)control)->LoadContent(pControlNode);
((CGUIFixedListContainer *)control)->SetDefaultControl(defaultControl, defaultAlways);
((CGUIFixedListContainer *)control)->SetType(viewType, viewLabel);
((CGUIFixedListContainer *)control)->SetPageControl(pageControl);
((CGUIFixedListContainer *)control)->SetRenderOffset(offset);
}
else if (type == CGUIControl::GUICONTAINER_PANEL)
{
CScroller scroller;
GetScroller(pControlNode, "scrolltime", scroller);
control = new CGUIPanelContainer(parentID, id, posX, posY, width, height, orientation, scroller, preloadItems);
((CGUIPanelContainer *)control)->LoadLayout(pControlNode);
((CGUIPanelContainer *)control)->LoadContent(pControlNode);
((CGUIPanelContainer *)control)->SetDefaultControl(defaultControl, defaultAlways);
((CGUIPanelContainer *)control)->SetType(viewType, viewLabel);
((CGUIPanelContainer *)control)->SetPageControl(pageControl);
((CGUIPanelContainer *)control)->SetRenderOffset(offset);
}
else if (type == CGUIControl::GUICONTROL_TEXTBOX)
{
control = new CGUITextBox(
parentID, id, posX, posY, width, height,
labelInfo, scrollTime);
((CGUITextBox *)control)->SetPageControl(pageControl);
if (infoLabels.size())
((CGUITextBox *)control)->SetInfo(infoLabels[0]);
((CGUITextBox *)control)->SetAutoScrolling(pControlNode);
}
else if (type == CGUIControl::GUICONTROL_SELECTBUTTON)
{
control = new CGUISelectButtonControl(
parentID, id, posX, posY,
width, height, textureFocus, textureNoFocus,
labelInfo,
textureBackground, textureLeft, textureLeftFocus, textureRight, textureRightFocus);
((CGUISelectButtonControl *)control)->SetLabel(strLabel);
}
else if (type == CGUIControl::GUICONTROL_MOVER)
{
control = new CGUIMoverControl(
parentID, id, posX, posY, width, height,
textureFocus, textureNoFocus);
}
else if (type == CGUIControl::GUICONTROL_RESIZE)
{
control = new CGUIResizeControl(
parentID, id, posX, posY, width, height,
textureFocus, textureNoFocus);
}
else if (type == CGUIControl::GUICONTROL_SPINEX)
{
control = new CGUISpinControlEx(
parentID, id, posX, posY, width, height, spinWidth, spinHeight,
labelInfo, textureFocus, textureNoFocus, textureUp, textureDown, textureUpFocus, textureDownFocus,
labelInfo, iType);
((CGUISpinControlEx *)control)->SetSpinPosition(spinPosX);
((CGUISpinControlEx *)control)->SetText(strLabel);
((CGUISpinControlEx *)control)->SetReverse(bReverse);
}
else if (type == CGUIControl::GUICONTROL_VISUALISATION)
{
control = new CGUIVisualisationControl(parentID, id, posX, posY, width, height);
}
else if (type == CGUIControl::GUICONTROL_RENDERADDON)
{
control = new CGUIRenderingControl(parentID, id, posX, posY, width, height);
}
// things that apply to all controls
if (control)
{
control->SetHitRect(hitRect);
control->SetVisibleCondition(visibleCondition, allowHiddenFocus);
control->SetEnableCondition(enableCondition);
control->SetAnimations(animations);
control->SetColorDiffuse(colorDiffuse);
control->SetNavigationActions(upActions, downActions, leftActions, rightActions, backActions);
control->SetPulseOnSelect(bPulse);
if (hasCamera)
control->SetCamera(camera);
}
return control;
}