34 #ifndef VP_WIN32_WINDOW_H
35 #define VP_WIN32_WINDOW_H
37 #include <visp3/core/vpConfig.h>
39 #if (defined(VISP_HAVE_GDI) || defined(VISP_HAVE_D3D9))
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
46 #include <visp3/core/vpDisplay.h>
47 #include <visp3/core/vpDisplayException.h>
48 #include <visp3/gui/vpGDIRenderer.h>
49 #include <visp3/gui/vpWin32Renderer.h>
55 #define vpWM_GETCLICK WM_USER + 1
56 #define vpWM_DISPLAY WM_USER + 2
57 #define vpWM_GETCLICKUP WM_USER + 3
58 #define vpWM_CLOSEDISPLAY WM_USER + 4
59 #define vpWM_GETPOINTERMOTIONEVENT WM_USER + 5
60 #define vpWM_DISPLAY_ROI WM_USER + 6
63 #define vpNO_BUTTON_QUERY -1
67 class VISP_EXPORT vpWin32Window
106 static bool registered;
109 vpWin32Renderer *renderer;
112 VP_EXPLICIT vpWin32Window(vpWin32Renderer *rend =
nullptr);
113 virtual ~vpWin32Window();
115 HWND getHWnd() {
return hWnd; }
118 bool isInitialized() {
return initialized; }
121 void initWindow(
const char *title,
int posx,
int posy,
unsigned int w,
unsigned int h);
123 void setScale(
unsigned int scale) { renderer->setScale(scale); };
131 friend LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
Display for windows using Direct3D 3rd party. Thus to enable this class Direct3D should be installed....
Display for windows using GDI (available on any windows 32 platform).
Base abstract class for Windows 32 displays. Implements the window creation in a separate thread and ...