-
Notifications
You must be signed in to change notification settings - Fork 0
/
Panel.hpp
54 lines (44 loc) · 1.38 KB
/
Panel.hpp
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// AmigaOS MUI C++ wrapper
//
// (c) 2022-2024 TDolphin
//
#pragma once
#include "Group.hpp"
namespace MUI
{
class Panel : public Group
{
public:
explicit Panel(Object *pMuiObject)
: Group(pMuiObject)
{
}
// instanceOf
const static std::string className;
static inline bool instanceOf(Object *pMuiObject)
{
return MUI::instanceOf(pMuiObject, className.c_str());
}
// methods, some returns object reference
/// @brief [ @b MUIM_Panel_Run ]
/// This method opens the panel window and eventually "runs" the panel asynchronously to the main MUI application in a separate
/// process.
/// @param app the application object to let the panel run asynchronously to the main application
/// @param win the window object containing the panel object
Panel &Run(Object *app, Object *win);
};
template <typename T, typename U> class PanelBuilderTemplate : public GroupBuilderTemplate<T, U>
{
public:
PanelBuilderTemplate(const std::string &uniqueId = MUI::EmptyUniqueId, const std::string &muiClassName = MUIC_Panel)
: GroupBuilderTemplate<T, U>(uniqueId, muiClassName)
{
}
};
class PanelBuilder : public PanelBuilderTemplate<PanelBuilder, Panel>
{
public:
PanelBuilder();
};
}