~ubuntu-branches/ubuntu/vivid/gtk-vnc/vivid

« back to all changes in this revision

Viewing changes to src/vnccursor.h

  • Committer: Bazaar Package Importer
  • Author(s): Guido Günther
  • Date: 2010-07-16 17:55:31 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100716175531-vnolppaqgmo3rqij
Tags: 0.4.1-1
* [2703df5] Imported Upstream version 0.4.1
* [5a5910e] Drop patches applied upstream 
      0001-say-disconnected-from-server-only-once-connected.patch
      0002-remove-WERROR_CFLAGS.patch
      0004-Don-t-use-PATH_MAX.patch
      0005-Drop-space-after-Wl-in-libgtk_vnc_1_0_la_LDFLAGS.patch
      0006-Add-Wl-since-no-undefined-is-a-linker-option.patch
      0007-Explicitly-link-against-X11-libs-for-XkbGetKeyboard.patch
      0008-Add-missing-symbols.patch
      0009-Fix-missing-intialisation-of-sysdir-and-uderdir.patch
* [e3ed1d0] No need to run autoreconf anymore
* [1529b9a] No static libs built
* [15068ef] Update symbols file with new symbols
* [337c397] Bump standards version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * GTK VNC Widget
 
3
 *
 
4
 * Copyright (C) 2009-2010 Daniel P. Berrange <dan@berrange.com>
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Lesser General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2.0 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with this library; if not, write to the Free Software
 
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
 
19
 */
 
20
 
 
21
#ifndef VNC_CURSOR_H
 
22
#define VNC_CURSOR_H
 
23
 
 
24
#include <glib-object.h>
 
25
 
 
26
#include <vncutil.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define VNC_TYPE_CURSOR            (vnc_cursor_get_type())
 
31
#define VNC_CURSOR(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), VNC_TYPE_CURSOR, VncCursor))
 
32
#define VNC_CURSOR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), VNC_TYPE_CURSOR, VncCursorClass))
 
33
#define VNC_IS_CURSOR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), VNC_TYPE_CURSOR))
 
34
#define VNC_IS_CURSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), VNC_TYPE_CURSOR))
 
35
#define VNC_CURSOR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), VNC_TYPE_CURSOR, VncCursorClass))
 
36
 
 
37
 
 
38
typedef struct _VncCursor VncCursor;
 
39
typedef struct _VncCursorClass VncCursorClass;
 
40
typedef struct _VncCursorPrivate VncCursorPrivate;
 
41
 
 
42
struct _VncCursor
 
43
{
 
44
        GObject parent;
 
45
 
 
46
        VncCursorPrivate *priv;
 
47
 
 
48
        /* Do not add fields to this struct */
 
49
};
 
50
 
 
51
struct _VncCursorClass
 
52
{
 
53
        GObjectClass parent_class;
 
54
 
 
55
        /*
 
56
         * If adding fields to this struct, remove corresponding
 
57
         * amount of padding to avoid changing overall struct size
 
58
         */
 
59
        gpointer _vnc_reserved[VNC_PADDING];
 
60
};
 
61
 
 
62
 
 
63
GType vnc_cursor_get_type(void);
 
64
VncCursor *vnc_cursor_new(guint8 *rgba24data,
 
65
                          guint16 hotx, guint16 hoty,
 
66
                          guint16 width, guint16 height);
 
67
 
 
68
const guint8 *vnc_cursor_get_data(VncCursor *cursor);
 
69
 
 
70
guint16 vnc_cursor_get_hotx(VncCursor *cursor);
 
71
guint16 vnc_cursor_get_hoty(VncCursor *cursor);
 
72
 
 
73
guint16 vnc_cursor_get_width(VncCursor *cursor);
 
74
guint16 vnc_cursor_get_height(VncCursor *cursor);
 
75
 
 
76
G_END_DECLS
 
77
 
 
78
#endif /* VNC_CURSOR_H */
 
79
/*
 
80
 * Local variables:
 
81
 *  c-indent-level: 8
 
82
 *  c-basic-offset: 8
 
83
 *  tab-width: 8
 
84
 * End:
 
85
 */