13#include <AUI/Platform/AWindow.h>
21class API_AUI_VIEWS ACustomWindow:
public AWindow
23 friend class AWindowManager;
25 ACustomWindow(
const AString& name,
int width,
int height);
26 ACustomWindow() =
default;
27 ~ACustomWindow()
override =
default;
29 void setTitleHeight(uint32_t height) {
30 mTitleHeight = height;
36 virtual bool isCaptionAt(
const glm::ivec2& pos);
38 void setSize(glm::ivec2
size)
override;
45 bool mDragging =
false;
46 glm::ivec2 mDragPos{};
47 uint32_t mTitleHeight = 30;
49 void handleXConfigureNotify();
53 LRESULT winProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
noexcept override;
54 void doDrawWindow()
override;
Represents a Unicode character string.
Definition AString.h:37
auto size() const
Size, including content area, border and padding.
Definition AView.h:114
void onPointerPressed(const APointerPressedEvent &event) override
Called on pointer (mouse) released event.
Definition AWindowBase.cpp:211
void onPointerReleased(const APointerReleasedEvent &event) override
Called on pointer (mouse) released event.
Definition AWindowBase.cpp:284
ASignal< Args... > emits
A signal declaration.
Definition ASignal.h:348
Pointing method press event.
Definition APointerPressedEvent.h:21
Pointing method press event.
Definition APointerReleasedEvent.h:19