diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-11-15 16:41:31 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-16 16:20:48 +0900 |
commit | 1b5f0d596802a7932450c26a02ad4eff7ddd3e38 (patch) | |
tree | a7bb737a3a9acd8a2ede5838173ceae5e54ea461 /gdk/gdkcursor.c | |
parent | e85c0f63fb06d7a036058218a24496a79bc8612d (diff) | |
download | gtk+-1b5f0d596802a7932450c26a02ad4eff7ddd3e38.tar.gz |
docs: Move documentation to inline comments: gdkcursor
Diffstat (limited to 'gdk/gdkcursor.c')
-rw-r--r-- | gdk/gdkcursor.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c index 0aabd5940a..475e96fbff 100644 --- a/gdk/gdkcursor.c +++ b/gdk/gdkcursor.c @@ -32,6 +32,28 @@ #include "gdkinternals.h" +/** + * SECTION:cursors + * @Short_description: Standard and pixmap cursors + * @Title: Cursors + * + * These functions are used to create and destroy cursors. + * There is a number of standard cursors, but it is also + * possible to construct new cursors from pixbufs. There + * may be limitations as to what kinds of cursors can be + * constructed on a given display, see + * gdk_display_supports_cursor_alpha(), + * gdk_display_supports_cursor_color(), + * gdk_display_get_default_cursor_size() and + * gdk_display_get_maximal_cursor_size(). + * + * Cursors by themselves are not very interesting, they must be be + * bound to a window for users to see them. This is done with + * gdk_window_set_cursor() or by setting the cursor member of the + * #GdkWindowAttr struct passed to gdk_window_new(). + */ + + G_DEFINE_BOXED_TYPE (GdkCursor, gdk_cursor, gdk_cursor_ref, gdk_cursor_unref) @@ -106,5 +128,6 @@ GdkCursorType gdk_cursor_get_cursor_type (GdkCursor *cursor) { g_return_val_if_fail (cursor != NULL, GDK_BLANK_CURSOR); + return cursor->type; } |