~ubuntu-branches/ubuntu/vivid/ardour/vivid-proposed

« back to all changes in this revision

Viewing changes to libs/gtkmm2/gdk/gdkmm/cursor.h

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler, Jaromír Mikeš, Felipe Sateler
  • Date: 2014-05-22 14:39:25 UTC
  • mfrom: (29 sid)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: package-import@ubuntu.com-20140522143925-vwqfo9287pmkrroe
Tags: 1:2.8.16+git20131003-3
* Team upload

[ Jaromír Mikeš ]
* Add -dbg package

[ Felipe Sateler ]
* Upload to experimental

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- c++ -*-
 
2
// Generated by gtkmmproc -- DO NOT MODIFY!
 
3
#ifndef _GDKMM_CURSOR_H
 
4
#define _GDKMM_CURSOR_H
 
5
 
 
6
#include <glibmm.h>
 
7
 
 
8
/* $Id$ */
 
9
 
 
10
/* drawable.h
 
11
 *
 
12
 * Copyright (C) 1998-2002 The gtkmm Development Team
 
13
 *
 
14
 * This library is free software; you can redistribute it and/or
 
15
 * modify it under the terms of the GNU Library General Public
 
16
 * License as published by the Free Software Foundation; either
 
17
 * version 2 of the License, or (at your option) any later version.
 
18
 *
 
19
 * This library is distributed in the hope that it will be useful,
 
20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
22
 * Library General Public License for more details.
 
23
 *
 
24
 * You should have received a copy of the GNU Library General Public
 
25
 * License along with this library; if not, write to the Free
 
26
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
27
 */
 
28
 
 
29
#include <gdkmm/color.h>
 
30
#include <gdkmm/bitmap.h>
 
31
#include <gdkmm/display.h>
 
32
#include <gdkmm/pixbuf.h>
 
33
 
 
34
 
 
35
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
36
extern "C" { typedef struct _GdkCursor GdkCursor; }
 
37
#endif
 
38
 
 
39
namespace Gdk
 
40
{
 
41
 
 
42
 
 
43
/** @addtogroup gdkmmEnums Enums and Flags */
 
44
 
 
45
/**
 
46
 * @ingroup gdkmmEnums
 
47
 */
 
48
enum CursorType
 
49
{
 
50
  X_CURSOR = 0,
 
51
  ARROW = 2,
 
52
  BASED_ARROW_DOWN = 4,
 
53
  BASED_ARROW_UP = 6,
 
54
  BOAT = 8,
 
55
  BOGOSITY = 10,
 
56
  BOTTOM_LEFT_CORNER = 12,
 
57
  BOTTOM_RIGHT_CORNER = 14,
 
58
  BOTTOM_SIDE = 16,
 
59
  BOTTOM_TEE = 18,
 
60
  BOX_SPIRAL = 20,
 
61
  CENTER_PTR = 22,
 
62
  CIRCLE = 24,
 
63
  CLOCK = 26,
 
64
  COFFEE_MUG = 28,
 
65
  CROSS = 30,
 
66
  CROSS_REVERSE = 32,
 
67
  CROSSHAIR = 34,
 
68
  DIAMOND_CROSS = 36,
 
69
  DOT = 38,
 
70
  DOTBOX = 40,
 
71
  DOUBLE_ARROW = 42,
 
72
  DRAFT_LARGE = 44,
 
73
  DRAFT_SMALL = 46,
 
74
  DRAPED_BOX = 48,
 
75
  EXCHANGE = 50,
 
76
  FLEUR = 52,
 
77
  GOBBLER = 54,
 
78
  GUMBY = 56,
 
79
  HAND1 = 58,
 
80
  HAND2 = 60,
 
81
  HEART = 62,
 
82
  ICON = 64,
 
83
  IRON_CROSS = 66,
 
84
  LEFT_PTR = 68,
 
85
  LEFT_SIDE = 70,
 
86
  LEFT_TEE = 72,
 
87
  LEFTBUTTON = 74,
 
88
  LL_ANGLE = 76,
 
89
  LR_ANGLE = 78,
 
90
  MAN = 80,
 
91
  MIDDLEBUTTON = 82,
 
92
  MOUSE = 84,
 
93
  PENCIL = 86,
 
94
  PIRATE = 88,
 
95
  PLUS = 90,
 
96
  QUESTION_ARROW = 92,
 
97
  RIGHT_PTR = 94,
 
98
  RIGHT_SIDE = 96,
 
99
  RIGHT_TEE = 98,
 
100
  RIGHTBUTTON = 100,
 
101
  RTL_LOGO = 102,
 
102
  SAILBOAT = 104,
 
103
  SB_DOWN_ARROW = 106,
 
104
  SB_H_DOUBLE_ARROW = 108,
 
105
  SB_LEFT_ARROW = 110,
 
106
  SB_RIGHT_ARROW = 112,
 
107
  SB_UP_ARROW = 114,
 
108
  SB_V_DOUBLE_ARROW = 116,
 
109
  SHUTTLE = 118,
 
110
  SIZING = 120,
 
111
  SPIDER = 122,
 
112
  SPRAYCAN = 124,
 
113
  STAR = 126,
 
114
  TARGET = 128,
 
115
  TCROSS = 130,
 
116
  TOP_LEFT_ARROW = 132,
 
117
  TOP_LEFT_CORNER = 134,
 
118
  TOP_RIGHT_CORNER = 136,
 
119
  TOP_SIDE = 138,
 
120
  TOP_TEE = 140,
 
121
  TREK = 142,
 
122
  UL_ANGLE = 144,
 
123
  UMBRELLA = 146,
 
124
  UR_ANGLE = 148,
 
125
  WATCH = 150,
 
126
  XTERM = 152,
 
127
  LAST_CURSOR = 153,
 
128
  CURSOR_IS_PIXMAP = -1
 
129
};
 
130
 
 
131
} // namespace Gdk
 
132
 
 
133
 
 
134
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
135
namespace Glib
 
136
{
 
137
 
 
138
template <>
 
139
class Value<Gdk::CursorType> : public Glib::Value_Enum<Gdk::CursorType>
 
140
{
 
141
public:
 
142
  static GType value_type() G_GNUC_CONST;
 
143
};
 
144
 
 
145
} // namespace Glib
 
146
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
147
 
 
148
 
 
149
namespace Gdk
 
150
{
 
151
 
 
152
 
 
153
/** This represents a cursor.
 
154
 */
 
155
class Cursor
 
156
{
 
157
  public:
 
158
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
159
  typedef Cursor CppObjectType;
 
160
  typedef GdkCursor BaseObjectType;
 
161
 
 
162
  static GType get_type() G_GNUC_CONST;
 
163
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
164
 
 
165
  Cursor();
 
166
 
 
167
  explicit Cursor(GdkCursor* gobject, bool make_a_copy = true);
 
168
 
 
169
  Cursor(const Cursor& other);
 
170
  Cursor& operator=(const Cursor& other);
 
171
 
 
172
  ~Cursor();
 
173
 
 
174
  void swap(Cursor& other);
 
175
 
 
176
  ///Provides access to the underlying C instance.
 
177
  GdkCursor*       gobj()       { return gobject_; }
 
178
 
 
179
  ///Provides access to the underlying C instance.
 
180
  const GdkCursor* gobj() const { return gobject_; }
 
181
 
 
182
  ///Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
 
183
  GdkCursor* gobj_copy() const;
 
184
 
 
185
protected:
 
186
  GdkCursor* gobject_;
 
187
 
 
188
private:
 
189
 
 
190
  
 
191
public:
 
192
  explicit Cursor(CursorType cursor_type);
 
193
  Cursor(const Glib::RefPtr<Pixmap>& source, const Glib::RefPtr<Pixmap>& mask,
 
194
         const Color& fg, const Color& bg,
 
195
         int x, int y);
 
196
  explicit Cursor(const Glib::RefPtr<Display>& display, CursorType cursor_type);
 
197
  Cursor(const Glib::RefPtr<Display>& display, const Glib::RefPtr<Pixbuf>& pixbuf, int x, int y);
 
198
 
 
199
  
 
200
  /** Returns the display on which the Gdk::Cursor is defined.
 
201
   * @return The Gdk::Display associated to @a cursor 
 
202
   * 
 
203
   * Since: 2.2.
 
204
   */
 
205
  Glib::RefPtr<Display> get_display();
 
206
  
 
207
  /** Returns the display on which the Gdk::Cursor is defined.
 
208
   * @return The Gdk::Display associated to @a cursor 
 
209
   * 
 
210
   * Since: 2.2.
 
211
   */
 
212
  Glib::RefPtr<const Display> get_display() const;
 
213
 
 
214
 
 
215
};
 
216
 
 
217
} //namespace Gdk
 
218
 
 
219
 
 
220
namespace Gdk
 
221
{
 
222
 
 
223
/** @relates Gdk::Cursor
 
224
 * @param lhs The left-hand side
 
225
 * @param rhs The right-hand side
 
226
 */
 
227
inline void swap(Cursor& lhs, Cursor& rhs)
 
228
  { lhs.swap(rhs); }
 
229
 
 
230
} // namespace Gdk
 
231
 
 
232
namespace Glib
 
233
{
 
234
 
 
235
/** @relates Gdk::Cursor
 
236
 * @param object The C instance
 
237
 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
 
238
 * @result A C++ instance that wraps this C instance.
 
239
 */
 
240
Gdk::Cursor wrap(GdkCursor* object, bool take_copy = false);
 
241
 
 
242
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
243
template <>
 
244
class Value<Gdk::Cursor> : public Glib::Value_Boxed<Gdk::Cursor>
 
245
{};
 
246
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
247
 
 
248
} // namespace Glib
 
249
 
 
250
#endif /* _GDKMM_CURSOR_H */
 
251