-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathControl.h
More file actions
28 lines (22 loc) · 788 Bytes
/
Control.h
File metadata and controls
28 lines (22 loc) · 788 Bytes
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
// ===========================================================================
// Control.h - Pimpl Idiom
// ===========================================================================
namespace PimplVariant {
class ControlPimpl;
class Control {
private:
// single property: opaque pointer / pointer to impl
std::unique_ptr<ControlPimpl> m_pimpl;
public:
// public class interface
Control();
~Control();
void setText(const std::string&);
void resize(const int width, const int height);
void show();
void hide();
};
}
// ===========================================================================
// End-of-File
// ===========================================================================