Screen interface. More...
#include <IScreen.h>
Inherits IInterface.
Inherited by CScreen, IClient, and IPlatformScreen.
Classes | |
| struct | CClipboardInfo |
accessors | |
|
| |
| virtual void * | getEventTarget () const =0 |
| Get event target. | |
| virtual bool | getClipboard (ClipboardID id, IClipboard *) const =0 |
| Get clipboard. | |
| virtual void | getShape (SInt32 &x, SInt32 &y, SInt32 &width, SInt32 &height) const =0 |
| Get screen shape. | |
| virtual void | getCursorPos (SInt32 &x, SInt32 &y) const =0 |
| Get cursor position. | |
| static CEvent::Type | getErrorEvent () |
| Get error event type. | |
| static CEvent::Type | getShapeChangedEvent () |
| Get shape changed event type. | |
| static CEvent::Type | getClipboardGrabbedEvent () |
| Get clipboard grabbed event type. | |
| static CEvent::Type | getSuspendEvent () |
| Get suspend event type. | |
| static CEvent::Type | getResumeEvent () |
| Get resume event type. | |
Screen interface.
This interface defines the methods common to all screens.
Definition at line 32 of file IScreen.h.
| virtual bool IScreen::getClipboard | ( | ClipboardID | id, | |
| IClipboard * | ||||
| ) | const [pure virtual] |
Get clipboard.
Save the contents of the clipboard indicated by id and return true iff successful.
Implemented in CBaseClientProxy, CClientProxy, CClientProxy1_0, CPrimaryClient, CScreen, and IClient.
| CEvent::Type IScreen::getClipboardGrabbedEvent | ( | ) | [static] |
Get clipboard grabbed event type.
Returns the clipboard grabbed event type. This is sent whenever the clipboard is grabbed by some other application so we don't own it anymore. The data is a pointer to a CClipboardInfo.
Definition at line 47 of file IScreen.cpp.
Referenced by COSXScreen::checkClipboards(), CMSWindowsScreen::checkClipboards(), and CXWindowsScreen::handleSystemEvent().
| virtual void IScreen::getCursorPos | ( | SInt32 & | x, | |
| SInt32 & | y | |||
| ) | const [pure virtual] |
Get cursor position.
Return the current position of the cursor in x and y.
Implemented in CBaseClientProxy, CClientProxy, CClientProxy1_0, CPrimaryClient, CScreen, and IClient.
| CEvent::Type IScreen::getErrorEvent | ( | ) | [static] |
Get error event type.
Returns the error event type. This is sent whenever the screen has failed for some reason (e.g. the X Windows server died).
Definition at line 33 of file IScreen.cpp.
| virtual void* IScreen::getEventTarget | ( | ) | const [pure virtual] |
Get event target.
Returns the target used for events created by this object.
Implemented in CBaseClientProxy, CClientProxy, CPrimaryClient, CScreen, and IClient.
| CEvent::Type IScreen::getResumeEvent | ( | ) | [static] |
Get resume event type.
Returns the suspend event type. This is sent whenever the system wakes up or a user session is activated (fast user switching).
Definition at line 61 of file IScreen.cpp.
Referenced by CClient::CClient().
| virtual void IScreen::getShape | ( | SInt32 & | x, | |
| SInt32 & | y, | |||
| SInt32 & | width, | |||
| SInt32 & | height | |||
| ) | const [pure virtual] |
Get screen shape.
Return the position of the upper-left corner of the screen in x and y and the size of the screen in width and height.
Implemented in CBaseClientProxy, CClientProxy, CClientProxy1_0, CPrimaryClient, CScreen, and IClient.
| CEvent::Type IScreen::getShapeChangedEvent | ( | ) | [static] |
Get shape changed event type.
Returns the shape changed event type. This is sent whenever the screen's shape changes.
Definition at line 40 of file IScreen.cpp.
| CEvent::Type IScreen::getSuspendEvent | ( | ) | [static] |
Get suspend event type.
Returns the suspend event type. This is sent whenever the system goes to sleep or a user session is deactivated (fast user switching).
Definition at line 54 of file IScreen.cpp.
Referenced by CClient::CClient().
1.7.1