LMMS
Loading...
Searching...
No Matches
win.h
Go to the documentation of this file.
1// Copyright 2012-2022 David Robillard <d@drobilla.net>
2// SPDX-License-Identifier: ISC
3
4#ifndef PUGL_SRC_WIN_H
5#define PUGL_SRC_WIN_H
6
7#include "internal.h"
8
9#include "pugl/pugl.h"
10
11#include <windows.h>
12
13#include <stdbool.h>
14
15typedef PIXELFORMATDESCRIPTOR PuglWinPFD;
16
19};
20
21struct PuglInternalsImpl {
23 int pfId;
31 bool mouseTracked;
32};
33
37
41puglWinCreateWindow(PuglView* view, const char* title, HWND* hwnd, HDC* hdc);
42
47
51puglWinEnter(PuglView* view, const PuglExposeEvent* expose);
52
56puglWinLeave(PuglView* view, const PuglExposeEvent* expose);
57
58#endif // PUGL_SRC_WIN_H
#define PUGL_WARN_UNUSED_RESULT
Definition attributes.h:18
static const char * title
Definition pugl.h:1747
PuglStatus
Return status code.
Definition pugl.h:627
struct PuglViewImpl PuglView
A drawable region that receives events.
Definition pugl.h:810
#define PUGL_API
Definition pugl.h:22
Blob of arbitrary data.
Definition types.h:31
Definition pugl.h:326
Definition mac.h:32
PuglWinPFD pfd
Definition win.h:22
bool mouseTracked
Definition mac.h:39
int pfId
Definition win.h:23
PuglBlob clipboard
Definition win.h:27
HWND hwnd
Definition win.h:24
HDC hdc
Definition win.h:26
PuglSurface * surface
Definition wasm.h:23
double scaleFactor
Definition win.h:29
bool flashing
Definition win.h:30
NSCursor * cursor
Definition mac.h:36
Definition mac.h:27
double timerFrequency
Definition win.h:18
RECT const char void HWND hwnd
Definition swell-functions.h:1066
struct HCURSOR__ * HCURSOR
Definition swell-types.h:264
struct HWND__ * HWND
Definition swell-types.h:210
struct HDC__ * HDC
Definition swell-types.h:263
void PuglSurface
Opaque surface used by graphics backend.
Definition types.h:64
int PuglHints[PUGL_NUM_VIEW_HINTS]
View hints.
Definition types.h:22
PUGL_WARN_UNUSED_RESULT PUGL_API PuglStatus puglWinEnter(PuglView *view, const PuglExposeEvent *expose)
Definition win.c:1449
PIXELFORMATDESCRIPTOR PuglWinPFD
Definition win.h:15
PUGL_WARN_UNUSED_RESULT PUGL_API PuglStatus puglWinConfigure(PuglView *view)
Definition win.c:1425
PUGL_WARN_UNUSED_RESULT PUGL_API PuglStatus puglWinCreateWindow(PuglView *view, const char *title, HWND *hwnd, HDC *hdc)
Definition win.c:1359
PUGL_API PuglWinPFD puglWinGetPixelFormatDescriptor(const PuglHints hints)
Definition win.c:1333
PUGL_WARN_UNUSED_RESULT PUGL_API PuglStatus puglWinLeave(PuglView *view, const PuglExposeEvent *expose)
Definition win.c:1460