Files
MuditaOS/module-gui/gui/widgets/SideListView.hpp
Lefucjusz 773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00

41 lines
1.1 KiB
C++

// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
#pragma once
#include "ListViewEngine.hpp"
#include "ListItemProvider.hpp"
#include "BoxLayout.hpp"
#include <apps-common/widgets/BarGraph.hpp>
namespace gui
{
enum class PageBarType
{
None,
Round,
};
class SideListView : public Rect, public ListViewEngine
{
protected:
HBarGraph *pageBar = nullptr;
VBox *bodyOverlay = nullptr;
auto createPageBar() -> void;
auto setFocus() -> void override;
auto applyScrollCallbacks() -> void;
public:
SideListView(Item *parent,
unsigned int x,
unsigned int y,
unsigned int w,
unsigned int h,
std::shared_ptr<ListItemProvider> prov,
PageBarType pageBarType = PageBarType::None);
auto onInput(const InputEvent &inputEvent) -> bool override;
};
} /* namespace gui */