blob: 2ccb671a0c4bcf3f6abf857913cd33a64825dc6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Copyright 2023 jacqueline <me@jacqueline.id.au>
*
* SPDX-License-Identifier: GPL-3.0-only
*/
#pragma once
#include <memory>
#include <vector>
#include "index.hpp"
#include "lvgl.h"
#include "modal.hpp"
namespace ui {
namespace modals {
class Progress : public Modal {
public:
Progress(Screen*, std::pmr::string title, std::pmr::string subtitle = "");
void title(const std::pmr::string&);
void subtitle(const std::pmr::string&);
private:
lv_obj_t* container_;
lv_obj_t* title_;
lv_obj_t* subtitle_;
};
} // namespace modals
} // namespace ui
|