8 : type(L
"None", L
"WindowType")
9 , area(0, 0, 1024, L
"Area")
10 , top(0, 0, 10000, L
"Top")
11 , left(0, 0, 10000, L
"Left")
12 , bottom(100, 0, 10000, L
"Bottom")
13 , right(100, 0, 10000, L
"Right") {
34 WindowCollection::WindowCollection(
void)
43 GetWindowRect(_hwnd, &rect);
47 wnd.
right = rect.right;
54 for ( uint32_t w = 0 ; w < 100 ; w++ ) {
56 wnd.
Load(pt.get_child(boost::str(boost::wformat(L
"Window%d") % w)));
64 for ( uint32_t w = 0 ; w <
collection.size() ; w++ ) {
67 pt.add_child(boost::str(boost::wformat(L
"Window%d") % w), wt);
void Save(wptree &pt) const override
save parameters into a boost:property_tree
void Load(const wptree &pt) override
load parameters from a boost::property_tree
ScopeNumber< uint32_t > right
right coordinate
void AddToPropertyTree(boost::property_tree::wptree &pt) const
Adds the value to a Boost property tree, using its name and value.
Parameters for all frames/windows on screen.
ScopeNumber< uint32_t > bottom
bottom coordinate
ScopeNumber< uint32_t > top
top coordinate
void Save(wptree &pt) const override
save parameters into a boost:property_tree
void Load(const wptree &pt) override
load parameters from a boost::property_tree
void AddWindow(const std::wstring &_type, const uint32_t &_area, HWND _hwnd)
Add a window to the collection.
This is the include file for standard system include files, or project specific include files that ar...
ScopeString type
Type of window, e.g.
ScopeNumber< uint32_t > left
left coordinate
std::vector< Window > collection
Vector with Window.
void SetFromPropertyTree(const boost::property_tree::wptree &pt)
Set value from a Boost property, using its name as a key.
ScopeNumber< uint32_t > area
For which area that window is.