-
Notifications
You must be signed in to change notification settings - Fork 388
Expand file tree
/
Copy pathStdLayoutImpl.h
More file actions
42 lines (30 loc) · 861 Bytes
/
StdLayoutImpl.h
File metadata and controls
42 lines (30 loc) · 861 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// This may look like C code, but it's really -*- C++ -*-
/*
* Copyright (C) 2008 Emweb bv, Herent, Belgium.
*
* See the LICENSE file for terms of use.
*/
#ifndef STD_LAYOUT_IMPL_H_
#define STD_LAYOUT_IMPL_H_
#include "StdLayoutItemImpl.h"
#include "Wt/WLayoutImpl.h"
namespace Wt {
class WLayout;
class StdLayoutImpl : public StdLayoutItemImpl, public WLayoutImpl
{
public:
StdLayoutImpl(WLayout *layout);
virtual ~StdLayoutImpl();
virtual void updateDom(DomElement& parent) = 0;
// Returns whether updateDom() is needed
virtual bool itemResized(WLayoutItem *item) = 0;
virtual bool parentResized() = 0;
virtual WLayoutItem *layoutItem() const override;
protected:
WLayout *layout() const { return layout_; }
static StdLayoutItemImpl *getImpl(WLayoutItem *item);
private:
WLayout *layout_;
};
}
#endif // STD_LAYOUT_IMPL_H_