Photon microGUI widgets library 0.6.0
Disjoint.h
1#ifndef PHWIDGETS_DISJOINT_H
2#define PHWIDGETS_DISJOINT_H
3
4#include <photon/PtDisjoint.h>
5
6#include "./Container.h"
7
8
9namespace PhWidgets
10{
17
23 class Disjoint:
24 public Container
25 {
26 public:
27
29 struct ThisArgs
30 {
33 {
35
55 {
56 sysinfo = Pt_ARG_SYSINFO
57 };
58 };
59 };
60
63 {
65 struct Callback
66 {
68
77 {
78 sysinfo = Pt_CB_SYSINFO
79 };
80 };
81 };
82
86 { };
87
89 struct Callback:
90 public ArgumentsEx<ThisCallbacks::Callback>,
92 {
94 };
95
97 struct Arguments:
98 public ArgPSysInfo,
100 { };
101
103 struct Callbacks:
104 public Callback,
106 { };
107
108 protected:
109 typedef ResourceFrom<Container::WidgetResourcesSingleton>::
110 Define::Struct<ThisArgs::ArgPSysInfo::eArgPSysInfo, PhSysInfo_t>::
111
112 Define::Link<ThisCallbacks::Callback::eCallback, PtCallback_t*>::
113
114 resource_type WidgetResourcesSingleton;
115
116 virtual void check();
117
118 public:
120
124 WidgetResourcesSingleton resource;
125
127
131 explicit Disjoint(int abn);
132
134
138 explicit Disjoint(PtWidget_t *wdg);
139
141
145 Disjoint(const Disjoint &other);
146
148
153
156
157
159
161
164 };
165} // namespace PhWidgets
166
167
168#endif // PHWIDGETS_DISJOINT_H
Layout and geometry management for all container widgets.
Definition: Container.h:24
Superclass for disjoint widgets.
Definition: Disjoint.h:25
WidgetResourcesSingleton resource
Resources of the Disjoint.
Definition: Disjoint.h:124
Disjoint & operator=(const Disjoint &other)
Assigns value in Disjoint widget.
Disjoint(PtWidget_t *wdg)
(constructor)
Disjoint(int abn)
(constructor)
Disjoint(const Disjoint &other)
(copy constructor)
An event, which raise a notification to registered subscribers (event handlers) that something of int...
Definition: Widget.h:132
The main namespace for all widgets.
Definition: Basic.h:11
Contains resource IDs for all Container arguments.
Definition: Container.h:303
Contains resource IDs for callbacks of type PtCallback_t.
Definition: Container.h:288
Contains resource IDs for all Container callbacks.
Definition: Container.h:309
eCallback
Resource IDs for Container arguments of type PtCallback_t.
Definition: Container.h:223
Contains resource IDs for Disjoint arguments of type PhSysInfo_t.
Definition: Disjoint.h:86
Contains resource IDs for all Disjoint arguments.
Definition: Disjoint.h:100
Contains resource IDs for Disjoint callbacks of type PtCallback_t.
Definition: Disjoint.h:92
Contains resource IDs for all Disjoint callbacks.
Definition: Disjoint.h:106
Contains resource IDs for Disjoint arguments of type PhSysInfo_t.
Definition: Disjoint.h:33
eArgPSysInfo
Resource IDs for Disjoint arguments of type PhSysInfo_t.
Definition: Disjoint.h:55
@ sysinfo
A PhSysInfo_t structure that contains system information.
Definition: Disjoint.h:56
Contains resource IDs for Disjoint arguments.
Definition: Disjoint.h:30
Contains resource IDs for Disjoint callbacks of type PtCallback_t.
Definition: Disjoint.h:66
eCallback
Resource IDs for Disjoint arguments of type PtCallback_t.
Definition: Disjoint.h:77
Contains resource IDs for Disjoint callbacks.
Definition: Disjoint.h:63