You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
554 B
36 lines
554 B
/*
|
|
* Copyright 2023 jacqueline <me@jacqueline.id.au>
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include "core/lv_group.h"
|
|
#include "core/lv_obj.h"
|
|
#include "core/lv_obj_tree.h"
|
|
#include "lvgl.h"
|
|
|
|
#include "screen.hpp"
|
|
|
|
namespace ui {
|
|
|
|
class Modal {
|
|
public:
|
|
Modal(Screen* host);
|
|
virtual ~Modal();
|
|
|
|
auto root() -> lv_obj_t* { return root_; }
|
|
auto group() -> lv_group_t* { return group_; }
|
|
|
|
protected:
|
|
lv_obj_t* const root_;
|
|
lv_group_t* const group_;
|
|
|
|
private:
|
|
Screen* host_;
|
|
};
|
|
|
|
} // namespace ui
|
|
|