mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-26 22:03:24 +08:00
Initial commit of the synergy trunk sources from sf.net
This commit is contained in:
60
lib/synergy/IScreen.cpp
Normal file
60
lib/synergy/IScreen.cpp
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* synergy -- mouse and keyboard sharing utility
|
||||
* Copyright (C) 2004 Chris Schoeneman
|
||||
*
|
||||
* This package is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* found in the file COPYING that should have accompanied this file.
|
||||
*
|
||||
* This package is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "IScreen.h"
|
||||
|
||||
//
|
||||
// IScreen
|
||||
//
|
||||
|
||||
CEvent::Type IScreen::s_errorEvent = CEvent::kUnknown;
|
||||
CEvent::Type IScreen::s_shapeChangedEvent = CEvent::kUnknown;
|
||||
CEvent::Type IScreen::s_clipboardGrabbedEvent = CEvent::kUnknown;
|
||||
CEvent::Type IScreen::s_suspendEvent = CEvent::kUnknown;
|
||||
CEvent::Type IScreen::s_resumeEvent = CEvent::kUnknown;
|
||||
|
||||
CEvent::Type
|
||||
IScreen::getErrorEvent()
|
||||
{
|
||||
return CEvent::registerTypeOnce(s_errorEvent,
|
||||
"IScreen::error");
|
||||
}
|
||||
|
||||
CEvent::Type
|
||||
IScreen::getShapeChangedEvent()
|
||||
{
|
||||
return CEvent::registerTypeOnce(s_shapeChangedEvent,
|
||||
"IScreen::shapeChanged");
|
||||
}
|
||||
|
||||
CEvent::Type
|
||||
IScreen::getClipboardGrabbedEvent()
|
||||
{
|
||||
return CEvent::registerTypeOnce(s_clipboardGrabbedEvent,
|
||||
"IScreen::clipboardGrabbed");
|
||||
}
|
||||
|
||||
CEvent::Type
|
||||
IScreen::getSuspendEvent()
|
||||
{
|
||||
return CEvent::registerTypeOnce(s_suspendEvent,
|
||||
"IScreen::suspend");
|
||||
}
|
||||
|
||||
CEvent::Type
|
||||
IScreen::getResumeEvent()
|
||||
{
|
||||
return CEvent::registerTypeOnce(s_resumeEvent,
|
||||
"IScreen::resume");
|
||||
}
|
||||
Reference in New Issue
Block a user