2
// Generated by gtkmmproc -- DO NOT MODIFY!
3
#ifndef _GDKMM_CURSOR_H
4
#define _GDKMM_CURSOR_H
12
* Copyright (C) 1998-2002 The gtkmm Development Team
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.
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.
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.
29
#include <gdkmm/color.h>
30
#include <gdkmm/bitmap.h>
31
#include <gdkmm/display.h>
32
#include <gdkmm/pixbuf.h>
35
#ifndef DOXYGEN_SHOULD_SKIP_THIS
36
extern "C" { typedef struct _GdkCursor GdkCursor; }
43
/** @addtogroup gdkmmEnums Enums and Flags */
56
BOTTOM_LEFT_CORNER = 12,
57
BOTTOM_RIGHT_CORNER = 14,
104
SB_H_DOUBLE_ARROW = 108,
106
SB_RIGHT_ARROW = 112,
108
SB_V_DOUBLE_ARROW = 116,
116
TOP_LEFT_ARROW = 132,
117
TOP_LEFT_CORNER = 134,
118
TOP_RIGHT_CORNER = 136,
128
CURSOR_IS_PIXMAP = -1
134
#ifndef DOXYGEN_SHOULD_SKIP_THIS
139
class Value<Gdk::CursorType> : public Glib::Value_Enum<Gdk::CursorType>
142
static GType value_type() G_GNUC_CONST;
146
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
153
/** This represents a cursor.
158
#ifndef DOXYGEN_SHOULD_SKIP_THIS
159
typedef Cursor CppObjectType;
160
typedef GdkCursor BaseObjectType;
162
static GType get_type() G_GNUC_CONST;
163
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
167
explicit Cursor(GdkCursor* gobject, bool make_a_copy = true);
169
Cursor(const Cursor& other);
170
Cursor& operator=(const Cursor& other);
174
void swap(Cursor& other);
176
///Provides access to the underlying C instance.
177
GdkCursor* gobj() { return gobject_; }
179
///Provides access to the underlying C instance.
180
const GdkCursor* gobj() const { return gobject_; }
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;
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,
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);
200
/** Returns the display on which the Gdk::Cursor is defined.
201
* @return The Gdk::Display associated to @a cursor
205
Glib::RefPtr<Display> get_display();
207
/** Returns the display on which the Gdk::Cursor is defined.
208
* @return The Gdk::Display associated to @a cursor
212
Glib::RefPtr<const Display> get_display() const;
223
/** @relates Gdk::Cursor
224
* @param lhs The left-hand side
225
* @param rhs The right-hand side
227
inline void swap(Cursor& lhs, Cursor& rhs)
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.
240
Gdk::Cursor wrap(GdkCursor* object, bool take_copy = false);
242
#ifndef DOXYGEN_SHOULD_SKIP_THIS
244
class Value<Gdk::Cursor> : public Glib::Value_Boxed<Gdk::Cursor>
246
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
250
#endif /* _GDKMM_CURSOR_H */