Changeset 2755 for trunk/synergy/lib/platform/CPMScreen.h
- Timestamp:
- Jul 31, 2006, 5:21:38 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/synergy/lib/platform/CPMScreen.h
r2752 r2755 3 3 * Copyright (C) 2002 Chris Schoeneman 4 4 * Copyright (C) 2006 Knut St. Osmundsen 5 * 5 * 6 6 * This package is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU General Public License 8 8 * found in the file COPYING that should have accompanied this file. 9 * 9 * 10 10 * This package is distributed in the hope that it will be useful, 11 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of … … 98 98 HMODULE openHookLibrary(const char* name); 99 99 void closeHookLibrary(HMODULE hookLibrary) const; 100 ATOM createWindowClass() const; 101 ATOM createDeskWindowClass(bool isPrimary) const; 102 void destroyClass(ATOM windowClass) const; 103 HWND createWindow(ATOM windowClass, const char* name) const; 100 HWND createWindow(const char* name); 104 101 void destroyWindow(HWND) const; 105 102 … … 122 119 // message handlers 123 120 bool onMark(UInt32 mark); 124 bool onKey( MPARAM, MPARAM);121 bool onKey(USHORT fsFlags, UCHAR ucRepeat, UCHAR ucScanCode, USHORT usch, USHORT usvk); 125 122 bool onHotKey(MPARAM, MPARAM); 126 bool onMouseButton(MPARAM, MPARAM); 127 bool onMouseMove(SInt32 x, SInt32 y); 128 bool onMouseWheel(SInt32 xDelta, SInt32 yDelta); 129 bool onScreensaver(bool activated); 130 bool onDisplayChange(); 123 bool onMouseButton(ULONG msg, SInt32 ax, SInt32 ay); 124 bool onMouseMove(ULONG msg, SInt32 ax, SInt32 ay); 131 125 bool onClipboardChange(); 132 126 … … 150 144 151 145 // map a button event to a button ID 152 ButtonID mapButtonFromEvent(ULONG msg , MPARAM button) const;146 ButtonID mapButtonFromEvent(ULONG msg) const; 153 147 154 148 // map a button event to a press (true) or release (false) 155 bool mapPressFromEvent(ULONG msg , MPARAM button) const;149 bool mapPressFromEvent(ULONG msg) const; 156 150 157 151 // job to update the key state … … 192 186 bool m_isOnScreen; 193 187 194 // our resources195 ATOM m_class;196 197 188 // screen shape stuff 198 189 SInt32 m_x, m_y; … … 213 204 UInt32 m_markReceived; 214 205 215 // the main loop's thread id 206 // the main loop's thread id, anchor block and message queue. 216 207 int m_threadID; 217 218 // timer for periodically checking stuff that requires polling 219 CEventQueueTimer* m_fixTimer; 208 HAB m_hab; 209 HMQ m_hmq; 220 210 221 211 // screen saver stuff 222 CPMScreenSaver* m_screensaver;223 bool 224 bool 212 CPMScreenSaver* m_screensaver; 213 bool m_screensaverNotify; 214 bool m_screensaverActive; 225 215 226 216 // clipboard stuff. our window is used mainly as a clipboard … … 255 245 }; 256 246 247 /* 248 * Local Variables: 249 * mode: c 250 * c-file-style: "k&r" 251 * c-basic-offset: 4 252 * tab-width: 4 253 * indent-tabs-mode: t 254 * End: 255 */ 256 257 257 #endif
Note:
See TracChangeset
for help on using the changeset viewer.