mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 00:56:55 +02:00
27 lines
883 B
C++
27 lines
883 B
C++
#pragma once
|
|
#include "../../views/IconGridItemView.h"
|
|
|
|
class CustomThemeInfo;
|
|
|
|
class CustomIconGridItemView : public IconGridItemView
|
|
{
|
|
public:
|
|
CustomIconGridItemView(const CustomThemeInfo* customThemeInfo, u32 texVramOffset, u32 plttVramOffset,
|
|
u32 selectedTexVramOffset, u32 selectedPlttVramOffset)
|
|
: _customThemeInfo(customThemeInfo), _texVramOffset(texVramOffset), _plttVramOffset(plttVramOffset)
|
|
, _selectedTexVramOffset(selectedTexVramOffset), _selectedPlttVramOffset(selectedPlttVramOffset) { }
|
|
|
|
void Draw(GraphicsContext& graphicsContext) override;
|
|
|
|
Rectangle GetBounds() const override
|
|
{
|
|
return Rectangle(_position.x + 2, _position.y + 2, 40, 40);
|
|
}
|
|
|
|
private:
|
|
const CustomThemeInfo* _customThemeInfo;
|
|
u32 _texVramOffset;
|
|
u32 _plttVramOffset;
|
|
u32 _selectedTexVramOffset;
|
|
u32 _selectedPlttVramOffset;
|
|
}; |