]> git.saurik.com Git - wxWidgets.git/commitdiff
Document wxIMAGE_OPTION_CUR_HOTSPOT_[XY] in wxCursor ctor.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 3 Jan 2012 00:40:27 +0000 (00:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 3 Jan 2012 00:40:27 +0000 (00:40 +0000)
These options were already mentioned in wxCursor documentation but not
prominently enough, so mention them explicitly in the documentation of
wxCursor ctor from wxImage.

Closes #13820.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/cursor.h

index 4be8f0555ebc0209352d5654a5328ad29d2bb217..67714c5a877c4e5b141b24e0351f6932c89946b3 100644 (file)
@@ -179,6 +179,14 @@ public:
         at the size of the image.
 
         Under wxMac (Cocoa), large cursors are supported.
+
+        Notice that the @a image can define the cursor hot spot. To set it you
+        need to use wxImage::SetOption() with @c wxIMAGE_OPTION_CUR_HOTSPOT_X
+        or @c wxIMAGE_OPTION_CUR_HOTSPOT_Y, e.g.
+        @code
+            image.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
+            image.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotY);
+        @endcode
     */
     wxCursor(const wxImage& image);