summaryrefslogtreecommitdiff
path: root/alf/alf.h
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2019-04-29 22:10:17 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2019-04-29 22:10:17 +0200
commitac07e9afb9ef67ae227966425f85c26613b7ea94 (patch)
tree34e6307dc2d40366214de873a9f6689849226c2c /alf/alf.h
parentd64290aaffd4721518747713929d79a78ba963f4 (diff)
remove app, use global variables instead
also some unrelated combobox fixes
Diffstat (limited to 'alf/alf.h')
-rw-r--r--alf/alf.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/alf/alf.h b/alf/alf.h
index f5e3b26..b9fe0be 100644
--- a/alf/alf.h
+++ b/alf/alf.h
@@ -48,7 +48,6 @@ typedef struct {
#define ALF_WM_GETMODALRESULT (ALF_WM__BASE + 8)
#define ALF_WM_CENTIPOINTTOPX (ALF_WM__BASE + 9)
#define ALF_WM_SETFOCUS (ALF_WM__BASE + 10)
-#define ALF_WM_GETAPPLICATION (ALF_WM__BASE + 11)
#define ALF_WM_APPLYSIZE (ALF_WM__BASE + 12)
#define ALF_WM_GETLAYOUTPARAMS (ALF_WM__BASE + 13)
#define ALF_WM_SETLAYOUTPARAMS (ALF_WM__BASE + 14)
@@ -72,8 +71,6 @@ typedef struct {
UINT margins[4];
} ALFWidgetLayoutParams;
-typedef struct ALFAppPriv *ALFAPP;
-
typedef enum {
ALF_DPI_AWARENESS_UNAWARE,
ALF_DPI_AWARENESS_SYSTEM_AWARE,
@@ -83,11 +80,11 @@ typedef enum {
void
ALF_SetDpiAwareness(ALFDpiAwareness awareness);
-ALFAPP
-ALF_CreateApplication(HINSTANCE hInstance);
+void
+ALF_Initialize(void);
void
-ALF_TeardownApplication(ALFAPP app);
+ALF_UnInitialize(void);
void *
ALF_Alloc(SIZE_T nmemb, SIZE_T size);
@@ -102,20 +99,17 @@ void
ALF_Free(const void *p);
LPTSTR
-ALF_RegisterWindowClass(ALFAPP app, const ALFWindowClassParams *params);
+ALF_RegisterWindowClass(HINSTANCE instance, const ALFWindowClassParams *params);
void
-ALF_UnregisterWindowClass(ALFAPP app, LPCTSTR className);
+ALF_UnregisterWindowClass(HINSTANCE instance, LPCTSTR className);
HWND
-ALF_InstantiateWindow(ALFAPP app, LPCTSTR className, HWND hwndParent, void *closure);
+ALF_InstantiateWindow(HINSTANCE instance, LPCTSTR className, HWND hwndParent, void *closure);
void
ALF_DestroyWindow(HWND win);
-ALFAPP
-ALF_ApplicationFromWindow(HWND hwnd);
-
BOOL
ALF_PreTranslateMessage(HWND hwnd, MSG *message);