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