Example #1
0
        public void Open(string host, int port)
        {
            cpClient = new CPClient();
            cpClient.StateChanged += CpClient_StateChanged;

            cpClient.NotificationReceived += CpClient_NotificationReceived;

            cpClient.Connect(host, port);
        }
Example #2
0
 {    //ControlPoint Protocol Manual p.84
     /*
      * WindowState ( [in] TWindowState_array_t )
      *      ScreenConfigChanged ( [in] CPScreenConfig )
      */
     public Notify(CPClient c) : base(c)
     {
         base.client.NotificationReceived += Client_NotificationReceived;
     }
Example #3
0
    {     //ControlPoint Protocol Manual p.116
        /*
         *  DeleteWindow ( [in] WinId_t )
         * QueryAllWindows ( [out] TWindowState_array_t )
         * QueryWindows ( [in] WinId_t_array_t,
         * [out] TwindowState_array_t )
         * FindWindow ( [in,string] window_descriptor,
         * [out] WinId_t )
         * InvokeAppWindow ( [in,string] appWinName,
         * [out] WinId_t )
         * GetAppWinInfo ( [in] WinId_t winid,
         * [out,string] window_descriptor,
         * [out,string] cmdline,
         * [out_string] workDir )
         * RegisterNotifyTarget ( )
         * UnregisterNotifyTarget ( )
         * GetServerInfo ( [out] CPServerInfo )
         * GetScreenConfig ( [out] CPScreenConfig )
         * Quit ( )
         * QueryAllLayoutsCS ( [out, string] )
         * QueryLastSetLayout ( [out, string] )
         * SetLayout ( [in, string] )
         * SaveLayout ( [in, string],
         * [in] WinId_t_array_t )
         * DeleteLayout ( [in, string] )
         */

        public WinServer(CPClient c) : base(c)
        {
        }
Example #4
0
    {    //ControlPoint Protocol Manual p.90
         /*
          *
          *     SetChannel ( [out] WinId_t, [in] short nChannel )
          *     GetChannel ( [in] WinId_t, [out] short * pnChannel )
          *     GetChannelRange ( [out] short * FirstCh, [out] short * LastCh )
          *     SetTiming ( [in] WinId_t, [in] CPRGBTiming * pTiming )
          *     GetTiming ( [in] WinId_t, [out] CPRGBTiming ) * pTiming )
          *     DetectTiming ( [in] WinId_t, [out] CPRGBTiming ) * pTiming )
          *     SetAutoDetectTiming ( [in] WinId_t wid, [in] Boolean bEnable )
          *     GetAutoDetectTiming ( [in] WinId_t wid, [out] Boolean * bEnabled )
          *     SetRCServer ( [in] WinId_t wid, [in, string] wchar_t * serverName )
          *     GetRCServer ( [in] WinId_t wid, [out, string] wchar_t ** serverName )
          *     SetDualLink ( [in] WinId_t wid, [in] Boolean bEnable )
          *     GetDualLink ( [in] WinId_t wid, [out] Boolean * bEnabled )
          *     SetComponent ( [in] WinId_t wid, [in] Boolean bEnable )
          *     GetComponent ( [in] WinId_t wid, [out] Boolean * bEnabled )
          */

        public RGBSys(CPClient c) : base(c)
        {
        }
Example #5
0
    {    // ControlPoint Protocol Manual p.76
        /*
         *	GetKind ( [out] SubSystemKind_t )
         *      IsOfKind ( [in] WinId_t )
         *      QueryAllWindows ( [out] TWindowState_array_t )
         *      NewWindow ( [out] WinId_t )
         *      NewWindowWithId ( [in] WinId_t )
         *      Start ( [in] WinId_t )
         *      Stop ( [in] WinId_t )
         *      Freeze ( [in] WinId_t )
         *      SetCrop ( [in] WinId_t wid, [in] struct CPRect * pRect )
         *      SetOrigin ( [in] WinId_t wid, [in] long x, [in] long y )
         *      GetCrop ( [in] WinId_t wid, [out] struct CPRect * pRect )
         *      GetImgBalance ( [in] WinId_t, [out] ImgBalance )
         *      SetImgBalance ( [in] WinId_t, [in, out] ImgBalance )
         *      GetInputSize ( [in] WinId_t, [out] CPSize )
         *      ApplyDefaults ( [in] WinId_t)
         *      QueryAllInputsCS ( [out] )
         *      SelectInput ( [in] WinId_t wid, inputName )
         *      GetInput ( [in] WinId_t wid, [out, inputName] )
         */

        public GalWinSys(CPClient c) : base(c)
        {
        }
Example #6
0
    {     // ControlPoint Protocol Manual p.69
          /*
           *	GetServerInfo ( [out] CPPlatformInfo,[out,string] versionInfo )
           *            ListCfgGroup ( [in] group_code,[out,string] objNames )
           */

        public ConfigSys(CPClient c) : base(c)
        {
        }
Example #7
0
 public CPObjBase(CPClient c)
 {
     this.client = c;
 }
Example #8
0
    {    //ControlPoint Protocol Manual p.108
        /*
         *  GetState ( [in] WinId_t, [out] TWindowState )
         * SetState ( [in, out] TWindowState )
         * GetTitle ( [in] WinId_t, [out, string] title )
         * SetTitle ( [in] WinId_t, [in, string] title )
         * GetFrameInfo ([in] WinId_t wid, [out] struct CPWndFrameInfo * fi)
         * SetFrameInfo ([in] WinId_t wid, [in] struct CPWndFrameInfo * fi)
         * GetTitleInfo ( [in] WinId_t, [out] struct CPWndTitleInfo * ti)
         * SetTitleInfo ( [in] WinId_t, [in] struct CPWndTitleInfo * ti)
         * GetTitleFontInfo ([in] WinId_t wid, [out] struct CPWndTitleFontInfo * tfi)
         * SetTitleFontInfo ([in] WinId_t wid, [in] struct CPWndTitleFontInfo * tfi)
         * GrabImage ([in] WinId_t, [out,string] wchar_t ** )
         */

        public Window(CPClient c) : base(c)
        {
        }