mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-01-12 02:29:24 +01:00
20 lines
516 B
C++
20 lines
516 B
C++
#pragma once
|
|
#include "animation/Animator.h"
|
|
#include "gui/views/DialogView.h"
|
|
|
|
class BottomSheetView : public DialogView
|
|
{
|
|
public:
|
|
Rectangle GetBounds() const override
|
|
{
|
|
return Rectangle(_position.x, _position.y, 256 - _position.x, 192 - _position.y);
|
|
}
|
|
|
|
Rectangle GetFullyCoveredArea() const override
|
|
{
|
|
return Rectangle(_position.x, _position.y + 12, 256 - _position.x, 148);
|
|
}
|
|
|
|
constexpr DialogType GetDialogType() const override { return DialogType::BottomSheet; }
|
|
};
|