本文整理汇总了C++中CGUIRadioButtonControl::SetLabel方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUIRadioButtonControl::SetLabel方法的具体用法?C++ CGUIRadioButtonControl::SetLabel怎么用?C++ CGUIRadioButtonControl::SetLabel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUIRadioButtonControl
的用法示例。
在下文中一共展示了CGUIRadioButtonControl::SetLabel方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Create
CGUIControl* ControlRadioButton::Create()
{
CLabelInfo label;
label.font = g_fontManager.GetFont(strFont);
label.textColor = textColor;
label.disabledColor = disabledColor;
label.shadowColor = shadowColor;
label.focusedColor = focusedColor;
label.align = align;
label.offsetX = (float)textOffsetX;
label.offsetY = (float)textOffsetY;
label.angle = (float)-iAngle;
pGUIControl = new CGUIRadioButtonControl(
iParentId,
iControlId,
(float)dwPosX,
(float)dwPosY,
(float)dwWidth,
(float)dwHeight,
CTextureInfo(strTextureFocus),
CTextureInfo(strTextureNoFocus),
label,
CTextureInfo(strTextureRadioOnFocus),
CTextureInfo(strTextureRadioOnNoFocus),
CTextureInfo(strTextureRadioOffFocus),
CTextureInfo(strTextureRadioOffNoFocus));
CGUIRadioButtonControl* pGuiButtonControl =
(CGUIRadioButtonControl*)pGUIControl;
pGuiButtonControl->SetLabel(strText);
return pGUIControl;
}
示例2: ControlRadioButton_Create
CGUIControl* ControlRadioButton_Create(ControlRadioButton* pControl)
{
CLabelInfo label;
label.font = g_fontManager.GetFont(pControl->strFont);
label.textColor = pControl->dwTextColor;
label.disabledColor = pControl->dwDisabledColor;
label.shadowColor = pControl->dwShadowColor;
label.focusedColor = pControl->dwFocusedColor;
label.align = pControl->dwAlign;
label.offsetX = (float)pControl->dwTextXOffset;
label.offsetY = (float)pControl->dwTextYOffset;
label.angle = (float)-pControl->iAngle;
pControl->pGUIControl = new CGUIRadioButtonControl(
pControl->iParentId,
pControl->iControlId,
(float)pControl->dwPosX,
(float)pControl->dwPosY,
(float)pControl->dwWidth,
(float)pControl->dwHeight,
(CStdString)pControl->strTextureFocus,
(CStdString)pControl->strTextureNoFocus,
label,
(CStdString)pControl->strTextureRadioFocus,
(CStdString)pControl->strTextureRadioNoFocus);
CGUIRadioButtonControl* pGuiButtonControl =
(CGUIRadioButtonControl*)pControl->pGUIControl;
pGuiButtonControl->SetLabel(pControl->strText);
return pControl->pGUIControl;
}