#include <CPrimaryClient.h>
Inherits CBaseClientProxy.
Inheritance diagram for CPrimaryClient:
Public Member Functions | |
CPrimaryClient (const CString &name, CScreen *screen) | |
virtual void | enable () |
virtual void | disable () |
virtual void * | getEventTarget () const |
Get event target. | |
virtual bool | getClipboard (ClipboardID id, IClipboard *) const |
Get clipboard. | |
virtual void | getShape (SInt32 &x, SInt32 &y, SInt32 &width, SInt32 &height) const |
Get screen shape. | |
virtual void | getCursorPos (SInt32 &x, SInt32 &y) const |
Get cursor position. | |
virtual void | enter (SInt32 xAbs, SInt32 yAbs, UInt32 seqNum, KeyModifierMask mask, bool forScreensaver) |
Enter screen. | |
virtual bool | leave () |
Leave screen. | |
virtual void | setClipboard (ClipboardID, const IClipboard *) |
Set clipboard. | |
virtual void | grabClipboard (ClipboardID) |
Grab clipboard. | |
virtual void | setClipboardDirty (ClipboardID, bool) |
Mark clipboard dirty. | |
virtual void | keyDown (KeyID, KeyModifierMask, KeyButton) |
Notify of key press. | |
virtual void | keyRepeat (KeyID, KeyModifierMask, SInt32 count, KeyButton) |
Notify of key repeat. | |
virtual void | keyUp (KeyID, KeyModifierMask, KeyButton) |
Notify of key release. | |
virtual void | mouseDown (ButtonID) |
Notify of mouse press. | |
virtual void | mouseUp (ButtonID) |
Notify of mouse release. | |
virtual void | mouseMove (SInt32 xAbs, SInt32 yAbs) |
Notify of mouse motion. | |
virtual void | mouseRelativeMove (SInt32 xRel, SInt32 yRel) |
Notify of mouse motion. | |
virtual void | mouseWheel (SInt32 xDelta, SInt32 yDelta) |
Notify of mouse wheel motion. | |
virtual void | screensaver (bool activate) |
Notify of screen saver change. | |
virtual void | resetOptions () |
Notify of options changes. | |
virtual void | setOptions (const COptionsList &options) |
Notify of options changes. | |
manipulators | |
void | reconfigure (UInt32 activeSides) |
Update configuration. | |
UInt32 | registerHotKey (KeyID key, KeyModifierMask mask) |
Register a system hotkey. | |
void | unregisterHotKey (UInt32 id) |
Unregister a system hotkey. | |
void | fakeInputBegin () |
Prepare to synthesize input on primary screen. | |
void | fakeInputEnd () |
Done synthesizing input on primary screen. | |
accessors | |
SInt32 | getJumpZoneSize () const |
Get jump zone size. | |
void | getCursorCenter (SInt32 &x, SInt32 &y) const |
Get cursor center position. | |
KeyModifierMask | getToggleMask () const |
Get toggle key state. | |
bool | isLockedToScreen () const |
Get screen lock state. |
The primary screen does not have a client associated with it. This class provides a pseudo-client to allow the primary screen to be treated as if it was a client.
Definition at line 29 of file CPrimaryClient.h.
|
Definition at line 24 of file CPrimaryClient.cpp. |
|
Enter screen.
Enter the screen. The cursor should be warped to Implements CBaseClientProxy. Definition at line 136 of file CPrimaryClient.cpp. References CScreen::enter(), CScreen::setSequenceNumber(), and CScreen::warpCursor(). |
|
Prepare to synthesize input on primary screen.
Prepares the primary screen to receive synthesized input. We do not want to receive this synthesized input as user input so this method ensures that we ignore it. Calls to Definition at line 59 of file CPrimaryClient.cpp. References CScreen::fakeInputBegin(). |
|
Done synthesizing input on primary screen.
Undoes whatever Definition at line 67 of file CPrimaryClient.cpp. References CScreen::fakeInputEnd(). |
|
Get clipboard.
Save the contents of the clipboard indicated by Implements CBaseClientProxy. Definition at line 105 of file CPrimaryClient.cpp. References CScreen::getClipboard(). |
|
Get cursor center position. Return the cursor center position which is where we park the cursor to compute cursor motion deltas and should be far from the edges of the screen, typically the center. Definition at line 81 of file CPrimaryClient.cpp. References CScreen::getCursorCenter(). |
|
Get cursor position.
Return the current position of the cursor in Implements CBaseClientProxy. Definition at line 118 of file CPrimaryClient.cpp. References CScreen::getCursorPos(). |
|
Get event target. Returns the target used for events created by this object. Implements CBaseClientProxy. Definition at line 99 of file CPrimaryClient.cpp. References CScreen::getEventTarget(). Referenced by CServer::adoptClient(), and CServer::CServer(). |
|
Get jump zone size. Return the jump zone size, the size of the regions on the edges of the screen that cause the cursor to jump to another screen. Definition at line 75 of file CPrimaryClient.cpp. References CScreen::getJumpZoneSize(). |
|
Get screen shape.
Return the position of the upper-left corner of the screen in Implements CBaseClientProxy. Definition at line 111 of file CPrimaryClient.cpp. References CScreen::getShape(). |
|
Get toggle key state. Returns the primary screen's current toggle modifier key state. Definition at line 87 of file CPrimaryClient.cpp. References CScreen::pollActiveModifiers(). |
|
Grab clipboard. Grab (i.e. take ownership of) the client's clipboard. Since this is called when another client takes ownership of the clipboard it implies that the client's clipboard is out of date. Implements CBaseClientProxy. Definition at line 166 of file CPrimaryClient.cpp. References CScreen::grabClipboard(). |
|
Get screen lock state. Returns true if the user is locked to the screen. Definition at line 93 of file CPrimaryClient.cpp. References CScreen::isLockedToScreen(). |
|
Notify of key press.
Synthesize key events to generate a press of key Implements CBaseClientProxy. Definition at line 182 of file CPrimaryClient.cpp. |
|
Notify of key repeat.
Synthesize key events to generate a press and release of key Implements CBaseClientProxy. Definition at line 194 of file CPrimaryClient.cpp. |
|
Notify of key release.
Synthesize key events to generate a release of key Implements CBaseClientProxy. Definition at line 200 of file CPrimaryClient.cpp. |
|
Leave screen. Leave the screen. Return false iff the user may not leave the client's screen (because, for example, a button is down). Implements CBaseClientProxy. Definition at line 147 of file CPrimaryClient.cpp. References CScreen::leave(). |
|
Notify of mouse press.
Synthesize mouse events to generate a press of mouse button Implements CBaseClientProxy. Definition at line 212 of file CPrimaryClient.cpp. |
|
Notify of mouse motion.
Synthesize mouse events to generate mouse motion to the absolute screen position Implements CBaseClientProxy. Definition at line 224 of file CPrimaryClient.cpp. References CScreen::warpCursor(). |
|
Notify of mouse motion.
Synthesize mouse events to generate mouse motion by the relative amount Implements CBaseClientProxy. Definition at line 230 of file CPrimaryClient.cpp. |
|
Notify of mouse release.
Synthesize mouse events to generate a release of mouse button Implements CBaseClientProxy. Definition at line 218 of file CPrimaryClient.cpp. |
|
Notify of mouse wheel motion.
Synthesize mouse events to generate mouse wheel motion of Implements CBaseClientProxy. Definition at line 236 of file CPrimaryClient.cpp. |
|
Update configuration. Handles reconfiguration of jump zones. Definition at line 41 of file CPrimaryClient.cpp. References CScreen::reconfigure(). Referenced by CServer::setConfig(). |
|
Register a system hotkey.
Registers a system-wide hotkey for key Definition at line 47 of file CPrimaryClient.cpp. References CScreen::registerHotKey(). |
|
Notify of options changes. Reset all options to their default values. Implements CBaseClientProxy. Definition at line 248 of file CPrimaryClient.cpp. References CScreen::resetOptions(). |
|
Set clipboard.
Update the client's clipboard. This implies that the client's clipboard is now up to date. If the client's clipboard was already known to be up to date then this may do nothing. Implements CBaseClientProxy. Definition at line 153 of file CPrimaryClient.cpp. References CScreen::setClipboard(). |
|
Mark clipboard dirty. Mark the client's clipboard as dirty (out of date) or clean (up to date). Implements CBaseClientProxy. Definition at line 176 of file CPrimaryClient.cpp. |
|
Notify of options changes.
Set options to given values. Ignore unknown options and don't modify our options that aren't given in Implements CBaseClientProxy. Definition at line 254 of file CPrimaryClient.cpp. References CScreen::setOptions(). |
|
Unregister a system hotkey. Unregisters a previously registered hot key. Definition at line 53 of file CPrimaryClient.cpp. References CScreen::unregisterHotKey(). |