#include <winGraphicsWindow.h>
Inheritance diagram for WinGraphicsWindow:

Public Member Functions | |
| WinGraphicsWindow (GraphicsPipe *pipe, GraphicsStateGuardian *gsg) | |
| virtual | ~WinGraphicsWindow () |
| virtual void | begin_flip () |
| virtual void | process_events () |
| virtual void | set_properties_now (WindowProperties &properties) |
| virtual LONG | window_proc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) |
| virtual bool | handle_mouse_motion (int x, int y) |
| virtual void | handle_mouse_exit (void) |
| virtual TypeHandle | get_type () const |
| virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
| LONG WINAPI | static_window_proc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) |
| TypeHandle | get_class_type () |
| void | init_type () |
Protected Member Functions | |
| virtual void | close_window () |
| virtual bool | open_window () |
| virtual void | fullscreen_minimized (WindowProperties &properties) |
| virtual void | fullscreen_restored (WindowProperties &properties) |
| virtual bool | do_reshape_request (int x_origin, int y_origin, int x_size, int y_size) |
| virtual void | handle_reshape () |
| virtual bool | do_fullscreen_resize (int x_size, int y_size) |
| virtual void | reconsider_fullscreen_size (DWORD &x_size, DWORD &y_size, DWORD &bitdepth) |
Protected Attributes | |
| HWND | _hWnd |
Static Protected Attributes | |
| bool | _loaded_custom_cursor |
| HCURSOR | _mouse_cursor |
| const char *const | _window_class_name = "WinGraphicsWindow" |
| bool | _window_class_registered = false |
Private Types | |
| typedef map< HWND, WinGraphicsWindow * > | WindowHandles |
Private Member Functions | |
| bool | open_fullscreen_window () |
| bool | open_regular_window () |
| void | track_mouse_leaving (HWND hwnd) |
| INLINE void | handle_keypress (ButtonHandle key, int x, int y) |
| INLINE void | handle_keyresume (ButtonHandle key) |
| INLINE void | handle_keyrelease (ButtonHandle key) |
| ButtonHandle | lookup_key (WPARAM wparam) const |
| INLINE int | translate_mouse (int pos) const |
| INLINE void | set_cursor_in_window () |
| INLINE void | set_cursor_out_of_window () |
Static Private Member Functions | |
| void | process_1_event () |
| void | update_cursor_window (WinGraphicsWindow *to_window) |
| void | register_window_class () |
| bool | find_acceptable_display_mode (DWORD dwWidth, DWORD dwHeight, DWORD bpp, DEVMODE &dm) |
| void | show_error_message (DWORD message_id=0) |
Private Attributes | |
| bool | _ime_open |
| bool | _ime_active |
| bool | _ime_composition_w |
| bool | _tracking_mouse_leaving |
| bool | _maximized |
| bool | _bCursor_in_WindowClientArea |
| DEVMODE | _fullscreen_display_mode |
| BYTE | _keyboard_state [num_virtual_keys] |
Static Private Attributes | |
| const int | num_virtual_keys = 256 |
| WindowHandles | _window_handles |
| WinGraphicsWindow * | _creating_window = NULL |
| WinGraphicsWindow * | _cursor_window = NULL |
| bool | _cursor_hidden = false |
| bool | _got_saved_params = false |
| int | _saved_mouse_trails |
| BOOL | _saved_cursor_shadow |
| BOOL | _saved_mouse_vanish |
| TypeHandle | _type_handle |
|
|
Definition at line 125 of file winGraphicsWindow.h. |
|
||||||||||||
|
Definition at line 59 of file winGraphicsWindow.cxx. References _hWnd, _ime_active, _ime_composition_w, _ime_open, GraphicsWindow::_input_devices, _keyboard_state, _maximized, _tracking_mouse_leaving, num_virtual_keys, and GraphicsWindowInputDevice::pointer_and_keyboard(). |
|
|
Definition at line 80 of file winGraphicsWindow.cxx. |
|
|
Reimplemented from GraphicsWindow. Reimplemented in wglGraphicsWindow. Definition at line 98 of file winGraphicsWindow.cxx. |
|
|
Reimplemented from GraphicsWindow. Reimplemented in wglGraphicsWindow. Definition at line 175 of file winGraphicsWindow.cxx. References _hWnd, _window_handles, GraphicsWindow::is_fullscreen(), NULL, and set_cursor_out_of_window(). Referenced by wglGraphicsWindow::close_window(). |
|
||||||||||||
|
Reimplemented in wdxGraphicsWindow7, and wdxGraphicsWindow8. Definition at line 384 of file winGraphicsWindow.cxx. References _fullscreen_display_mode, _hWnd, find_acceptable_display_mode(), HDC(), and NULL. Referenced by do_reshape_request(). |
|
||||||||||||||||||||
|
Reimplemented from GraphicsWindow. Definition at line 315 of file winGraphicsWindow.cxx. References _hWnd, do_fullscreen_resize(), handle_reshape(), GraphicsWindow::is_fullscreen(), and NULL. |
|
||||||||||||||||||||
|
Definition at line 1244 of file winGraphicsWindow.cxx. References ACCEPTABLE_REFRESH_RATE, and NULL. Referenced by do_fullscreen_resize(), and open_fullscreen_window(). |
|
|
Reimplemented from GraphicsWindow. Reimplemented in wdxGraphicsWindow7, wdxGraphicsWindow8, and wglGraphicsWindow. Definition at line 160 of file winGraphicsWindow.h. References GraphicsWindow::get_class_type(), and GraphicsWindow::init_type(). |
|
|
Definition at line 289 of file winGraphicsWindow.cxx. Referenced by window_proc(). |
|
|
Reimplemented in wdxGraphicsWindow7, and wdxGraphicsWindow8. Definition at line 302 of file winGraphicsWindow.cxx. Referenced by window_proc(). |
|
|
Reimplemented from GraphicsWindow. Reimplemented in wdxGraphicsWindow7, wdxGraphicsWindow8, and wglGraphicsWindow. Definition at line 149 of file winGraphicsWindow.h. Referenced by wglGraphicsWindow::force_init_type(), wdxGraphicsWindow8::force_init_type(), wdxGraphicsWindow7::force_init_type(), wglGraphicsWindow::get_type(), wdxGraphicsWindow8::get_type(), wdxGraphicsWindow7::get_type(), wglGraphicsWindow::init_type(), wdxGraphicsWindow8::init_type(), and wdxGraphicsWindow7::init_type(). |
|
|
Reimplemented from GraphicsWindow. Reimplemented in wdxGraphicsWindow7, wdxGraphicsWindow8, and wglGraphicsWindow. Definition at line 157 of file winGraphicsWindow.h. References GraphicsWindow::get_class_type(). |
|
||||||||||||||||
|
Referenced by window_proc(). |
|
|
Referenced by window_proc(). |
|
|
Referenced by window_proc(). |
|
|
Definition at line 1396 of file winGraphicsWindow.cxx. References GraphicsWindow::_input_devices. Referenced by window_proc(). |
|
||||||||||||
|
Reimplemented in wdxGraphicsWindow8. Definition at line 1385 of file winGraphicsWindow.cxx. References GraphicsWindow::_input_devices, x, and y. Referenced by wdxGraphicsWindow8::handle_mouse_motion(), and window_proc(). |
|
|
Reimplemented in wdxGraphicsWindow7, and wdxGraphicsWindow8. Definition at line 354 of file winGraphicsWindow.cxx. References _hWnd, WindowProperties::get_x_origin(), WindowProperties::get_x_size(), WindowProperties::get_y_origin(), WindowProperties::get_y_size(), WindowProperties::set_origin(), WindowProperties::set_size(), and GraphicsWindow::system_changed_properties(). Referenced by do_reshape_request(), wdxGraphicsWindow8::handle_reshape(), wdxGraphicsWindow7::handle_reshape(), and window_proc(). |
|
|
Reimplemented from GraphicsWindow. Reimplemented in wdxGraphicsWindow7, wdxGraphicsWindow8, and wglGraphicsWindow. Definition at line 152 of file winGraphicsWindow.h. References GraphicsWindow::get_class_type(), GraphicsWindow::init_type(), and register_type(). Referenced by wglGraphicsWindow::force_init_type(), wdxGraphicsWindow8::force_init_type(), wdxGraphicsWindow7::force_init_type(), init_libwindisplay(), wglGraphicsWindow::init_type(), wdxGraphicsWindow8::init_type(), and wdxGraphicsWindow7::init_type(). |
|
|
|
|
|
Reimplemented from GraphicsWindow. Reimplemented in wdxGraphicsWindow7, wdxGraphicsWindow8, and wglGraphicsWindow. Definition at line 197 of file winGraphicsWindow.cxx. References _creating_window, _hWnd, _ime_active, _ime_composition_w, _ime_open, _window_handles, ime_composition_w, GraphicsWindow::is_fullscreen(), NULL, open_fullscreen_window(), and open_regular_window(). Referenced by wglGraphicsWindow::open_window(), wdxGraphicsWindow8::open_window(), and wdxGraphicsWindow7::open_window(). |
|
|
Definition at line 1054 of file winGraphicsWindow.cxx. References NULL. Referenced by process_events(). |
|
|
Reimplemented from GraphicsWindow. Definition at line 112 of file winGraphicsWindow.cxx. References NULL, process_1_event(), and GraphicsWindow::process_events(). |
|
||||||||||||||||
|
Reimplemented in wglGraphicsWindow. Definition at line 437 of file winGraphicsWindow.cxx. Referenced by open_fullscreen_window(). |
|
|
Definition at line 1141 of file winGraphicsWindow.cxx. References _loaded_custom_cursor, _mouse_cursor, _window_class_name, _window_class_registered, get_icon_filename(), get_mono_cursor_filename(), NULL, and static_window_proc(). Referenced by open_fullscreen_window(), and open_regular_window(). |
|
|
Referenced by window_proc(). |
|
|
Referenced by close_window(), and window_proc(). |
|
|
Reimplemented from GraphicsWindow. Definition at line 160 of file winGraphicsWindow.cxx. References WindowProperties::is_any_specified(), and GraphicsWindow::set_properties_now(). |
|
|
Definition at line 1275 of file winGraphicsWindow.cxx. References errorbox_title, and NULL. Referenced by open_fullscreen_window(), open_regular_window(), and window_proc(). |
|
||||||||||||||||||||
|
Definition at line 1029 of file winGraphicsWindow.cxx. References _creating_window, _window_handles, NULL, and window_proc(). Referenced by register_window_class(). |
|
|
Definition at line 603 of file winGraphicsWindow.cxx. References WinGraphicsPipe::_pfnTrackMouseEvent, _tracking_mouse_leaving, BOOL(), DCAST_INTO_V, and NULL. Referenced by window_proc(). |
|
|
Referenced by window_proc(). |
|
|
Definition at line 1077 of file winGraphicsWindow.cxx. References _cursor_hidden, _cursor_window, _got_saved_params, _saved_cursor_shadow, _saved_mouse_trails, _saved_mouse_vanish, WindowProperties::get_cursor_hidden(), and NULL. |
|
||||||||||||||||||||
|
|
Definition at line 109 of file winGraphicsWindow.h. Referenced by window_proc(). |
|
|
Definition at line 38 of file winGraphicsWindow.cxx. Referenced by open_window(), and static_window_proc(). |
|
|
Definition at line 41 of file winGraphicsWindow.cxx. Referenced by update_cursor_window(). |
|
|
Definition at line 40 of file winGraphicsWindow.cxx. Referenced by update_cursor_window(). |
|
|
Definition at line 110 of file winGraphicsWindow.h. Referenced by do_fullscreen_resize(), open_fullscreen_window(), and window_proc(). |
|
|
Definition at line 46 of file winGraphicsWindow.cxx. Referenced by update_cursor_window(). |
|
|
|
Definition at line 105 of file winGraphicsWindow.h. Referenced by lookup_key(), open_window(), window_proc(), and WinGraphicsWindow(). |
|
|
Definition at line 106 of file winGraphicsWindow.h. Referenced by open_window(), and WinGraphicsWindow(). |
|
|
Definition at line 104 of file winGraphicsWindow.h. Referenced by open_window(), window_proc(), and WinGraphicsWindow(). |
|
|
Definition at line 115 of file winGraphicsWindow.h. Referenced by window_proc(), and WinGraphicsWindow(). |
|
|
Definition at line 32 of file winGraphicsWindow.cxx. Referenced by register_window_class(). |
|
|
Definition at line 108 of file winGraphicsWindow.h. Referenced by window_proc(), and WinGraphicsWindow(). |
|
|
Definition at line 33 of file winGraphicsWindow.cxx. Referenced by wdxGraphicsWindow8::init_resized_window(), and register_window_class(). |
|
|
Definition at line 48 of file winGraphicsWindow.cxx. Referenced by update_cursor_window(). |
|
|
Definition at line 47 of file winGraphicsWindow.cxx. Referenced by update_cursor_window(). |
|
|
Definition at line 49 of file winGraphicsWindow.cxx. Referenced by update_cursor_window(). |
|
|
Definition at line 107 of file winGraphicsWindow.h. Referenced by track_mouse_leaving(), window_proc(), and WinGraphicsWindow(). |
|
|
Reimplemented from GraphicsWindow. Reimplemented in wdxGraphicsWindow7, wdxGraphicsWindow8, and wglGraphicsWindow. Definition at line 30 of file winGraphicsWindow.cxx. |
|
|
Definition at line 34 of file winGraphicsWindow.cxx. Referenced by open_fullscreen_window(), open_regular_window(), and register_window_class(). |
|
|
Definition at line 35 of file winGraphicsWindow.cxx. Referenced by register_window_class(). |
|
|
Definition at line 37 of file winGraphicsWindow.cxx. Referenced by close_window(), open_window(), and static_window_proc(). |
|
|
Definition at line 114 of file winGraphicsWindow.h. Referenced by window_proc(), and WinGraphicsWindow(). |
1.3