first commit
This commit is contained in:
21
component.hh
Normal file
21
component.hh
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <modern-qt/utility/theme/theme.hh>
|
||||
#include <qwidget.h>
|
||||
|
||||
template <typename T>
|
||||
using raw_pointer = T*;
|
||||
|
||||
struct NavComponentState {
|
||||
creeper::ThemeManager& manager;
|
||||
std::function<void(int, const std::string_view&)> switch_callback;
|
||||
|
||||
std::vector<std::tuple<std::string_view, std::string_view>> buttons_context;
|
||||
};
|
||||
|
||||
auto NavComponent(NavComponentState&) noexcept -> raw_pointer<QWidget>;
|
||||
|
||||
struct ViewComponentState {
|
||||
creeper::ThemeManager& manager;
|
||||
};
|
||||
auto ViewComponent(ViewComponentState&) noexcept -> raw_pointer<QWidget>;
|
||||
Reference in New Issue
Block a user