mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
34 lines
877 B
C++
34 lines
877 B
C++
#pragma once
|
|
#include "gui/views/LabelView.h"
|
|
#include "../../views/BannerListItemView.h"
|
|
|
|
class MaterialColorScheme;
|
|
class IFontRepository;
|
|
|
|
class MaterialBannerListItemView : public BannerListItemView
|
|
{
|
|
SHARED_ONLY(MaterialBannerListItemView)
|
|
|
|
public:
|
|
void Draw(GraphicsContext& graphicsContext) override;
|
|
|
|
Rectangle GetBounds() const override
|
|
{
|
|
return Rectangle(_position, 203, 44);
|
|
}
|
|
|
|
void SetGraphics(const VramToken& vramToken) override
|
|
{
|
|
_bgVramOffset = vramToken.GetVramOffset();
|
|
}
|
|
|
|
static VramToken UploadGraphics(const VramContext& vramContext);
|
|
|
|
private:
|
|
const MaterialColorScheme* _materialColorScheme;
|
|
u32 _bgVramOffset;
|
|
|
|
MaterialBannerListItemView(std::unique_ptr<RomBrowserItemViewModel> viewModel,
|
|
const MaterialColorScheme* materialColorScheme, const IFontRepository* fontRepository);
|
|
};
|