Fix UIWindowTitleBar
This commit is contained in:
parent
9034c26578
commit
26b532c926
@ -349,6 +349,11 @@ UIWindowTitleBar::UIWindowTitleBar(UIValue height)
|
||||
addChild(closeButton);
|
||||
}
|
||||
|
||||
UIWindowTitleBar::~UIWindowTitleBar() {
|
||||
delete text;
|
||||
delete closeButton;
|
||||
}
|
||||
|
||||
void UIWindowTitleBar::dragEnter(UIPoint pos, UIPoint screenPos) {
|
||||
// TODO
|
||||
}
|
||||
@ -380,6 +385,8 @@ UIWindow::UIWindow(UIValue x, UIValue y, UIValue w, UIValue h)
|
||||
}
|
||||
|
||||
UIWindow::~UIWindow() {
|
||||
delete background;
|
||||
delete titleBar;
|
||||
}
|
||||
|
||||
UIElementType UIWindow::getType() {
|
||||
|
@ -132,6 +132,8 @@ class UIWindowTitleBar: public RectangleElement {
|
||||
|
||||
UIWindowTitleBar(UIValue height);
|
||||
|
||||
virtual ~UIWindowTitleBar();
|
||||
|
||||
virtual void dragEnter(UIPoint pos, UIPoint screenPos);
|
||||
virtual void drag(UIPoint pos, UIPoint screenPos);
|
||||
virtual void dragExit(UIPoint pos, UIPoint screenPos);
|
||||
|
Loading…
Reference in New Issue
Block a user