2013-12-29 04:53:12 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 Glyptodon LLC
|
2011-12-22 02:35:42 +00:00
|
|
|
*
|
2013-12-29 04:53:12 +00:00
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
2011-12-22 02:35:42 +00:00
|
|
|
*
|
2013-12-29 04:53:12 +00:00
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
2011-12-22 02:35:42 +00:00
|
|
|
*
|
2013-12-29 04:53:12 +00:00
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2016-03-03 20:27:59 +00:00
|
|
|
#ifndef GUAC_VNC_CURSOR_H
|
|
|
|
#define GUAC_VNC_CURSOR_H
|
2011-12-22 02:35:42 +00:00
|
|
|
|
2014-01-01 22:44:28 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2016-03-01 05:42:57 +00:00
|
|
|
#include <rfb/rfbclient.h>
|
|
|
|
#include <rfb/rfbproto.h>
|
2011-12-22 02:35:42 +00:00
|
|
|
|
2016-03-03 20:27:59 +00:00
|
|
|
/**
|
|
|
|
* Callback invoked by libVNCServer when it receives a new cursor image from
|
|
|
|
* the VNC server. The cursor image itself will be split across
|
|
|
|
* client->rcSource and client->rcMask, where rcSource is an image buffer of
|
|
|
|
* the format natively used by the current VNC connection, and rcMask is an
|
|
|
|
* array if bitmasks. Each bit within rcMask corresponds to a pixel within
|
|
|
|
* rcSource, where a 0 denotes full transparency and a 1 denotes full opacity.
|
|
|
|
*
|
|
|
|
* @param client
|
|
|
|
* The VNC client associated with the VNC session in which the new cursor
|
|
|
|
* image was received.
|
|
|
|
*
|
|
|
|
* @param x
|
|
|
|
* The X coordinate of the new cursor image's hotspot, in pixels.
|
|
|
|
*
|
|
|
|
* @param y
|
|
|
|
* The Y coordinate of the new cursor image's hotspot, in pixels.
|
|
|
|
*
|
|
|
|
* @param w
|
|
|
|
* The width of the cursor image, in pixels.
|
|
|
|
*
|
|
|
|
* @param h
|
|
|
|
* The height of the cursor image, in pixels.
|
|
|
|
*
|
|
|
|
* @param bpp
|
|
|
|
* The number of bytes in each pixel, which must be either 4, 2, or 1.
|
|
|
|
*/
|
2016-03-01 05:42:57 +00:00
|
|
|
void guac_vnc_cursor(rfbClient* client, int x, int y, int w, int h, int bpp);
|
2011-12-22 02:35:42 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|