| 1 |
/* |
| 2 |
* Copyright (C) 2016-2018 Team Kodi |
| 3 |
* This file is part of Kodi - https://kodi.tv |
| 4 |
* |
| 5 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 6 |
* See LICENSES/README.md for more information. |
| 7 |
*/ |
| 8 |
|
| 9 |
#include "GUIFeatureControls.h" |
| 10 |
|
| 11 |
#include "games/controllers/windows/GUIControllerDefines.h" |
| 12 |
|
| 13 |
using namespace KODI; |
| 14 |
using namespace GAME; |
| 15 |
|
| 16 |
CGUIFeatureGroupTitle::CGUIFeatureGroupTitle(const CGUILabelControl& groupTitleTemplate, |
| 17 |
const std::string& groupName, |
| 18 |
unsigned int buttonIndex) |
| 19 |
: CGUILabelControl(groupTitleTemplate) |
| 20 |
{ |
| 21 |
// Initialize CGUILabelControl |
| 22 |
SetLabel(groupName); |
| 23 |
SetID(CONTROL_FEATURE_GROUPS_START + buttonIndex); |
| 24 |
SetVisible(true); |
| 25 |
AllocResources(); |
| 26 |
} |
| 27 |
|
| 28 |
CGUIFeatureSeparator::CGUIFeatureSeparator(const CGUIImage& separatorTemplate, |
| 29 |
unsigned int buttonIndex) |
| 30 |
: CGUIImage(separatorTemplate) |
| 31 |
{ |
| 32 |
// Initialize CGUIImage |
| 33 |
SetID(CONTROL_FEATURE_SEPARATORS_START + buttonIndex); |
| 34 |
SetVisible(true); |
| 35 |
AllocResources(); |
| 36 |
} |