rodecomp/Source/UI/Window/UIFrameWnd.h
ragnarok-clanker a47d20f8be Reconstruct readable C++ and organize cohesive source subsystems
Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.

Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
2026-10-25 07:42:41 +00:00

57 lines
1.6 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_WINDOW_UIFRAMEWND_H
#define RAGNAROK_SOURCE_UI_WINDOW_UIFRAMEWND_H
#include "UI/Window/FrameTextCache.h"
#include "UI/Window/UIWindow.h"
struct FrameFocus;
struct WindowSnapping;
class WindowManagerWindows;
class UIBitmapButton;
struct UIButtonContext;
struct UIFrameContext {
FrameFocus& focus;
WindowSnapping& snapping;
WindowManagerWindows& windows;
const int& dragLimitX;
const int& dragLimitY;
};
class UIFrameWnd : public UIWindow {
public:
UIFrameWnd(UIWindowContext& windowContext, UIFrameContext& frameContext, unsigned char cached);
~UIFrameWnd() override;
bool Slot02() override;
void Move(int x, int y) override;
void Slot12() override;
void Slot13(int dx, int dy) override;
void Slot25(int x, int y) override;
void Slot27(int x, int y) override;
void Slot28(int x, int y) override;
void Slot31(int x, int y) override;
void Slot36() override;
int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;
std::vector<std::uint32_t> Slot44() override;
int Slot46() override;
UIBitmapButton* AddCloseButton(UIButtonContext& controls, const char* tooltip, int width);
protected:
/* 007C */ int m_dragX;
/* 0080 */ int m_dragY;
/* 0084 */ int m_originX;
/* 0088 */ int m_originY;
/* 008C */ int m_message0;
/* 0090 */ int m_message1;
/* 0094 */ FrameTextCache m_textCache;
UIFrameContext* m_frameContext;
protected:
void ToScreen(int& x, int& y) const;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(UIFrameWnd) == 188);
#endif
#endif