本文整理汇总了C++中CGUISettingsSliderControl::GetID方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUISettingsSliderControl::GetID方法的具体用法?C++ CGUISettingsSliderControl::GetID怎么用?C++ CGUISettingsSliderControl::GetID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUISettingsSliderControl
的用法示例。
在下文中一共展示了CGUISettingsSliderControl::GetID方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: reset
void Interface_GUIControlSettingsSlider::reset(void* kodiBase, void* handle)
{
CAddonDll* addon = static_cast<CAddonDll*>(kodiBase);
CGUISettingsSliderControl* control = static_cast<CGUISettingsSliderControl*>(handle);
if (!addon || !control)
{
CLog::Log(LOGERROR, "Interface_GUIControlSettingsSlider::%s - invalid handler data (kodiBase='%p', handle='%p') on addon '%s'",
__FUNCTION__, addon, control, addon ? addon->ID().c_str() : "unknown");
return;
}
CGUIMessage msg(GUI_MSG_LABEL_RESET, control->GetParentID(), control->GetID());
g_windowManager.SendThreadMessage(msg, control->GetParentID());
}
示例2: Reset
void Interface_GUIControlSettingsSlider::Reset(void* kodiBase, void* handle)
{
CAddonDll* addon = static_cast<CAddonDll*>(kodiBase);
if (!addon)
{
CLog::Log(LOGERROR, "ADDON::Interface_GUIControlSettingsSlider::%s - invalid data", __FUNCTION__);
return;
}
if (!handle)
{
CLog::Log(LOGERROR, "ADDON::Interface_GUIControlSettingsSlider::%s - invalid handler data on addon '%s'", __FUNCTION__, addon->ID().c_str());
return;
}
CGUISettingsSliderControl* pControl = static_cast<CGUISettingsSliderControl*>(handle);
CGUIMessage msg(GUI_MSG_LABEL_RESET, pControl->GetParentID(), pControl->GetID());
g_windowManager.SendThreadMessage(msg, pControl->GetParentID());
}
示例3: SetText
void Interface_GUIControlSettingsSlider::SetText(void* kodiBase, void* handle, const char *text)
{
CAddonDll* addon = static_cast<CAddonDll*>(kodiBase);
if (!addon)
{
CLog::Log(LOGERROR, "ADDON::Interface_GUIControlSettingsSlider::%s - invalid data", __FUNCTION__);
return;
}
if (!handle || !text)
{
CLog::Log(LOGERROR, "ADDON::Interface_GUIControlSettingsSlider::%s - invalid handler data on addon '%s'", __FUNCTION__, addon->ID().c_str());
return;
}
CGUISettingsSliderControl* pControl = static_cast<CGUISettingsSliderControl*>(handle);
// create message
CGUIMessage msg(GUI_MSG_LABEL_SET, pControl->GetParentID(), pControl->GetID());
msg.SetLabel(text);
// send message
g_windowManager.SendThreadMessage(msg, pControl->GetParentID());
}