source/Platform/PlatformWindow.h: rename parent to owner as the generic window is not really a parent to the platform one.
This commit is contained in:
parent
45d3bff620
commit
afc0845006
2 changed files with 5 additions and 5 deletions
|
|
@ -14,10 +14,10 @@ typedef sp::X11Window WindowType;
|
||||||
|
|
||||||
namespace sp {
|
namespace sp {
|
||||||
|
|
||||||
PlatformWindow* PlatformWindow::make(Window* parent)
|
PlatformWindow* PlatformWindow::make(Window* owner)
|
||||||
{
|
{
|
||||||
WindowType* disp = new WindowType();
|
WindowType* disp = new WindowType();
|
||||||
disp->m_parent = parent;
|
disp->m_owner = owner;
|
||||||
return disp;
|
return disp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -33,7 +33,7 @@ PlatformWindow::~PlatformWindow()
|
||||||
void PlatformWindow::onReshape(int width, int height)
|
void PlatformWindow::onReshape(int width, int height)
|
||||||
{
|
{
|
||||||
// Forward to parent.
|
// Forward to parent.
|
||||||
m_parent->onReshape(width, height);
|
m_owner->onReshape(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace sp
|
} // namespace sp
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class PlatformWindow
|
||||||
{
|
{
|
||||||
public :
|
public :
|
||||||
// Factory method.
|
// Factory method.
|
||||||
static PlatformWindow* make(Window* parent);
|
static PlatformWindow* make(Window* owner);
|
||||||
|
|
||||||
virtual ~PlatformWindow();
|
virtual ~PlatformWindow();
|
||||||
|
|
||||||
|
|
@ -66,7 +66,7 @@ protected :
|
||||||
|
|
||||||
private :
|
private :
|
||||||
|
|
||||||
Window * m_parent;
|
Window * m_owner;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace sp
|
} // namespace sp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue