X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ecb578aa9b6ae8917f53028219ae35c4ab86d13..bf973818a376aea7edf29ec264982fcde7423c78:/interface/wx/cursor.h?ds=sidebyside diff --git a/interface/wx/cursor.h b/interface/wx/cursor.h index 4be8f0555e..67714c5a87 100644 --- a/interface/wx/cursor.h +++ b/interface/wx/cursor.h @@ -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);