2013-12-29 04:53:12 +00:00
|
|
|
/*
|
2016-03-25 19:59:40 +00:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
* or more contributor license agreements. See the NOTICE file
|
|
|
|
* distributed with this work for additional information
|
|
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
|
|
* to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at
|
2013-12-29 04:53:12 +00:00
|
|
|
*
|
2016-03-25 19:59:40 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2013-12-29 04:53:12 +00:00
|
|
|
*
|
2016-03-25 19:59:40 +00:00
|
|
|
* Unless required by applicable law or agreed to in writing,
|
|
|
|
* software distributed under the License is distributed on an
|
|
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
* KIND, either express or implied. See the License for the
|
|
|
|
* specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2013-12-29 04:53:12 +00:00
|
|
|
*/
|
2013-08-27 04:50:54 +00:00
|
|
|
|
|
|
|
|
2014-01-07 00:18:54 +00:00
|
|
|
#ifndef _GUAC_COMMON_DOT_CURSOR_H
|
|
|
|
#define _GUAC_COMMON_DOT_CURSOR_H
|
2013-08-27 04:50:54 +00:00
|
|
|
|
2014-01-01 22:44:28 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2013-08-27 04:50:54 +00:00
|
|
|
#include <cairo/cairo.h>
|
2016-03-01 05:38:51 +00:00
|
|
|
#include <guacamole/user.h>
|
2013-08-27 04:50:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Width of the embedded mouse cursor graphic.
|
|
|
|
*/
|
2014-01-07 00:18:54 +00:00
|
|
|
extern const int guac_common_dot_cursor_width;
|
2013-08-27 04:50:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Height of the embedded mouse cursor graphic.
|
|
|
|
*/
|
2014-01-07 00:18:54 +00:00
|
|
|
extern const int guac_common_dot_cursor_height;
|
2013-08-27 04:50:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Number of bytes in each row of the embedded mouse cursor graphic.
|
|
|
|
*/
|
2014-01-07 00:18:54 +00:00
|
|
|
extern const int guac_common_dot_cursor_stride;
|
2013-08-27 04:50:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The Cairo grapic format of the mouse cursor graphic.
|
|
|
|
*/
|
2014-01-07 00:18:54 +00:00
|
|
|
extern const cairo_format_t guac_common_dot_cursor_format;
|
2013-08-27 04:50:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Embedded mouse cursor graphic.
|
|
|
|
*/
|
2014-01-07 00:18:54 +00:00
|
|
|
extern unsigned char guac_common_dot_cursor[];
|
2013-08-27 04:50:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the cursor of the remote display to the embedded cursor graphic.
|
|
|
|
*
|
2016-03-01 05:38:51 +00:00
|
|
|
* @param user The guac_user to send the cursor to.
|
2013-08-27 04:50:54 +00:00
|
|
|
*/
|
2016-03-01 05:38:51 +00:00
|
|
|
void guac_common_set_dot_cursor(guac_user* user);
|
2013-08-27 04:50:54 +00:00
|
|
|
|
|
|
|
#endif
|