GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
IStyles.cpp
Go to the documentation of this file.
1#include "IStyles.h"
2
3using namespace std;
4
5namespace gui_framework
6{
7 namespace interfaces
8 {
10 styles(NULL),
11 extendedStyles(NULL)
12 {
13
14 }
15
16 IStyles::IStyles(LONG_PTR styles, LONG_PTR extendedStyles) :
17 styles(styles),
18 extendedStyles(extendedStyles)
19 {
20
21 }
22
23 void IStyles::appendStyle(LONG_PTR style)
24 {
25 styles |= style;
26 }
27
28 void IStyles::appendExtendedStyle(LONG_PTR extendedStyle)
29 {
30 extendedStyles |= extendedStyle;
31 }
32
33 LONG_PTR IStyles::getStyles() const
34 {
35 return styles;
36 }
37
39 {
40 return extendedStyles;
41 }
42
43 bool IStyles::operator == (const IStyles& other) const
44 {
45 return styles == styles || extendedStyles == extendedStyles;
46 }
47
48 istream& IStyles::operator >> (istream& stream)
49 {
50 return stream >> styles >> extendedStyles;
51 }
52
53 ostream& IStyles::operator << (ostream& stream) const
54 {
55 return stream << styles << ' ' << extendedStyles;
56 }
57 }
58}
Provides styles for other classes.
Definition IStyles.h:11
virtual LONG_PTR getStyles() const final
Definition IStyles.cpp:33
virtual LONG_PTR getExtendedStyles() const final
Definition IStyles.cpp:38
virtual bool operator==(const IStyles &other) const final
Definition IStyles.cpp:43
void appendStyle(LONG_PTR style)
Append new WinAPI style.
Definition IStyles.cpp:23
virtual std::ostream & operator<<(std::ostream &stream) const final
Definition IStyles.cpp:53
void appendExtendedStyle(LONG_PTR extendedStyle)
Append new WinAPI extended style.
Definition IStyles.cpp:28
virtual std::istream & operator>>(std::istream &stream) final
Definition IStyles.cpp:48