mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Add new shared pointer and make use of it
This commit is contained in:
@@ -14,8 +14,6 @@ public:
|
||||
Vertical
|
||||
};
|
||||
|
||||
virtual ~AppBarView();
|
||||
|
||||
void SetButtonIcon(int button, u32 vramOffset)
|
||||
{
|
||||
_buttons[button]->SetIconVramOffset(vramOffset);
|
||||
@@ -28,14 +26,14 @@ public:
|
||||
|
||||
Rectangle GetBounds() const override;
|
||||
void Update() override;
|
||||
View* MoveFocus(View* currentFocus, FocusMoveDirection direction, View* source) override;
|
||||
SharedPtr<View> MoveFocus(const SharedPtr<View>& currentFocus, FocusMoveDirection direction, View* source) override;
|
||||
void Focus(FocusManager& focusManager, int button);
|
||||
|
||||
constexpr Orientation GetOrientation() const { return _orientation; }
|
||||
|
||||
protected:
|
||||
Orientation _orientation;
|
||||
std::unique_ptr<IconButtonView*[]> _buttons;
|
||||
std::unique_ptr<SharedPtr<IconButtonView>[]> _buttons;
|
||||
int _startButtonCount;
|
||||
int _endButtonCount;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user