]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/cursor.h
Make the CreateTool factories be public so they can be used from application code
[wxWidgets.git] / 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);