ares-openbsd/hiro/windows/tool-tip.hpp

25 行
447 B
C++

namespace hiro {
struct pToolTip {
enum : u32 { Delay = 1000, Timeout = 10000 };
pToolTip(const string& text);
~pToolTip();
auto drawLayered() -> void;
auto drawOpaque() -> void;
auto show() -> void;
auto hide() -> void;
auto windowProc(HWND, UINT, WPARAM, LPARAM) -> maybe<LRESULT>;
HWND hwnd = nullptr;
HTHEME htheme = nullptr;
POINT position{};
SIZE size{};
POINT tracking{};
string text;
Timer timeout;
};
}