Panda3D
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
winGraphicsWindow.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "winGraphicsWindow.h"
#include "config_windisplay.h"
#include "winGraphicsPipe.h"
#include "graphicsPipe.h"
#include "keyboardButton.h"
#include "mouseButton.h"
#include "clockObject.h"
#include "config_putil.h"
#include "throw_event.h"
#include "nativeWindowHandle.h"
#include <tchar.h>

Go to the source code of this file.

Macros

#define ACCEPTABLE_REFRESH_RATE(RATE)   ((RATE >= MIN_REFRESH_RATE) || (RATE==0) || (RATE==1))
 
#define MIN_REFRESH_RATE   60
 
#define TOUCH_COORD_TO_PIXEL(l)   ((l) / 100)
 
#define WM_DPICHANGED   0x02E0
 
#define WM_MOUSEHWHEEL   0x020E
 
#define WM_TOUCH   0x0240
 

Typedefs

typedef BOOL(WINAPI * PFN_CLOSETOUCHINPUTHANDLE) (IN HTOUCHINPUT hTouchInput)
 
typedef BOOL(WINAPI * PFN_GETTOUCHINPUTINFO) (IN HTOUCHINPUT hTouchInput, IN UINT cInputs, OUT PTOUCHINPUT pInputs, IN int cbSize)
 
typedef BOOL(WINAPI * PFN_REGISTERTOUCHWINDOW) (IN HWND hWnd, IN ULONG ulFlags)
 

Functions

void ClearToBlack (HWND hWnd, const WindowProperties &props)
 
 DECLARE_HANDLE (HTOUCHINPUT)
 
void get_client_rect_screen (HWND hwnd, RECT *view_rect)
 Fills view_rect with the coordinates of the client area of the indicated window, converted to screen coordinates.
 
void PrintErrorMessage (DWORD msgID)
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2002-12-20

Definition in file winGraphicsWindow.cxx.

Macro Definition Documentation

◆ ACCEPTABLE_REFRESH_RATE

#define ACCEPTABLE_REFRESH_RATE ( RATE)    ((RATE >= MIN_REFRESH_RATE) || (RATE==0) || (RATE==1))

Definition at line 2428 of file winGraphicsWindow.cxx.

◆ MIN_REFRESH_RATE

#define MIN_REFRESH_RATE   60

Definition at line 2425 of file winGraphicsWindow.cxx.

◆ TOUCH_COORD_TO_PIXEL

#define TOUCH_COORD_TO_PIXEL ( l)    ((l) / 100)

Definition at line 42 of file winGraphicsWindow.cxx.

◆ WM_DPICHANGED

#define WM_DPICHANGED   0x02E0

Definition at line 29 of file winGraphicsWindow.cxx.

◆ WM_MOUSEHWHEEL

#define WM_MOUSEHWHEEL   0x020E

Definition at line 37 of file winGraphicsWindow.cxx.

◆ WM_TOUCH

#define WM_TOUCH   0x0240

Definition at line 33 of file winGraphicsWindow.cxx.

Typedef Documentation

◆ PFN_CLOSETOUCHINPUTHANDLE

typedef BOOL(WINAPI * PFN_CLOSETOUCHINPUTHANDLE) (IN HTOUCHINPUT hTouchInput)

Definition at line 81 of file winGraphicsWindow.cxx.

◆ PFN_GETTOUCHINPUTINFO

typedef BOOL(WINAPI * PFN_GETTOUCHINPUTINFO) (IN HTOUCHINPUT hTouchInput, IN UINT cInputs, OUT PTOUCHINPUT pInputs, IN int cbSize)

Definition at line 80 of file winGraphicsWindow.cxx.

◆ PFN_REGISTERTOUCHWINDOW

typedef BOOL(WINAPI * PFN_REGISTERTOUCHWINDOW) (IN HWND hWnd, IN ULONG ulFlags)

Definition at line 79 of file winGraphicsWindow.cxx.

Function Documentation

◆ ClearToBlack()

void ClearToBlack ( HWND hWnd,
const WindowProperties & props )

Definition at line 3126 of file winGraphicsWindow.cxx.

◆ get_client_rect_screen()

void get_client_rect_screen ( HWND hwnd,
RECT * view_rect )

Fills view_rect with the coordinates of the client area of the indicated window, converted to screen coordinates.

Definition at line 3155 of file winGraphicsWindow.cxx.

Referenced by WinGraphicsWindow::move_pointer().

◆ PrintErrorMessage()

void PrintErrorMessage ( DWORD msgID)

Definition at line 3109 of file winGraphicsWindow.cxx.