2021-09-05 01:40:23 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
//
|
|
|
|
// EmulationStation Desktop Edition
|
|
|
|
// BadgesComponent.h
|
|
|
|
//
|
|
|
|
// Game badges icons.
|
|
|
|
// Used by gamelist views.
|
|
|
|
//
|
|
|
|
|
2021-09-27 20:18:19 +00:00
|
|
|
#ifndef ES_CORE_COMPONENTS_BADGES_COMPONENT_H
|
|
|
|
#define ES_CORE_COMPONENTS_BADGES_COMPONENT_H
|
2021-09-05 01:40:23 +00:00
|
|
|
|
2021-09-07 15:21:54 +00:00
|
|
|
#include "FlexboxComponent.h"
|
2021-09-05 01:40:23 +00:00
|
|
|
|
2021-09-07 15:21:54 +00:00
|
|
|
class BadgesComponent : public FlexboxComponent
|
2021-09-05 01:40:23 +00:00
|
|
|
{
|
|
|
|
public:
|
2021-09-27 19:06:07 +00:00
|
|
|
BadgesComponent(Window* window);
|
2021-09-27 20:18:19 +00:00
|
|
|
|
2021-10-11 19:28:37 +00:00
|
|
|
std::vector<std::string> getBadgeTypes() { return mBadgeTypes; }
|
|
|
|
void setBadges(const std::vector<std::string>& badges);
|
2021-09-05 01:40:23 +00:00
|
|
|
|
2021-09-27 19:06:07 +00:00
|
|
|
virtual void applyTheme(const std::shared_ptr<ThemeData>& theme,
|
|
|
|
const std::string& view,
|
|
|
|
const std::string& element,
|
2021-09-05 01:40:23 +00:00
|
|
|
unsigned int properties) override;
|
|
|
|
|
|
|
|
private:
|
2021-10-11 19:28:37 +00:00
|
|
|
std::vector<std::string> mBadgeTypes;
|
2021-09-26 22:41:53 +00:00
|
|
|
std::map<std::string, std::string> mBadgeIcons;
|
2021-10-11 19:28:37 +00:00
|
|
|
std::vector<std::pair<std::string, ImageComponent>> mBadgeImages;
|
2021-09-05 01:40:23 +00:00
|
|
|
};
|
|
|
|
|
2021-09-27 20:18:19 +00:00
|
|
|
#endif // ES_CORE_COMPONENTS_BADGES_COMPONENT_H
|