2016-10-08 18:28:43 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2016-10-08 18:28:43 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2016-10-08 18:28:43 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2019-09-13 12:22:54 +00:00
|
|
|
#include "ui/rp_widget.h"
|
|
|
|
|
2016-11-04 08:23:50 +00:00
|
|
|
namespace Window {
|
|
|
|
|
|
|
|
enum class HitTestResult {
|
|
|
|
None = 0,
|
|
|
|
Client,
|
|
|
|
SysButton,
|
|
|
|
Caption,
|
|
|
|
Top,
|
|
|
|
TopRight,
|
|
|
|
Right,
|
|
|
|
BottomRight,
|
|
|
|
Bottom,
|
|
|
|
BottomLeft,
|
|
|
|
Left,
|
|
|
|
TopLeft,
|
|
|
|
};
|
2016-10-08 18:28:43 +00:00
|
|
|
|
2020-06-19 17:13:43 +00:00
|
|
|
class TitleWidget : public Ui::RpWidget {
|
2016-10-08 18:28:43 +00:00
|
|
|
public:
|
2020-06-19 17:13:43 +00:00
|
|
|
using RpWidget::RpWidget;
|
2016-11-07 15:24:28 +00:00
|
|
|
|
|
|
|
virtual void init() {
|
|
|
|
}
|
2016-11-04 08:23:50 +00:00
|
|
|
virtual HitTestResult hitTest(const QPoint &p) const {
|
|
|
|
return HitTestResult::None;
|
|
|
|
}
|
|
|
|
virtual QRect iconRect() const {
|
|
|
|
return QRect();
|
|
|
|
}
|
2016-10-08 18:28:43 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2016-11-04 08:23:50 +00:00
|
|
|
} // namespace Window
|