-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIElement.h
More file actions
52 lines (36 loc) · 1.07 KB
/
Copy pathUIElement.h
File metadata and controls
52 lines (36 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/** $VER: UIElement.h (2026.08.10) P. Stuer **/
#pragma once
#include "pch.h"
#include "Resources.h"
#include <sdk/coreDarkMode.h>
/// <summary>
/// Implements the user interface element base class.
/// </summary>
class uielement_t : public CWindowImpl<uielement_t>
{
public:
uielement_t();
uielement_t(const uielement_t &) = delete;
uielement_t & operator=(const uielement_t &) = delete;
uielement_t(uielement_t &&) = delete;
uielement_t & operator=(uielement_t &&) = delete;
virtual ~uielement_t();
#pragma region CWindowImpl<UIElement>
static CWndClassInfo & GetWndClassInfo();
#pragma endregion
virtual void OnColorsChanged() noexcept;
virtual void OnFontsChanged() noexcept;
protected:
/// <summary>
/// Retrieves the GUID of the element.
/// </summary>
static const GUID & GetGUID() noexcept
{
static const GUID guid = GUID_UI_ELEMENT;
return guid;
}
virtual void GetColors() noexcept = 0;
virtual void GetFonts() noexcept = 0;
protected:
fb2k::CCoreDarkModeHooks _DarkMode;
};