Document wxIMAGE_OPTION_CUR_HOTSPOT_[XY] in wxCursor ctor.
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
This commit is contained in:
@@ -179,6 +179,14 @@ public:
|
|||||||
at the size of the image.
|
at the size of the image.
|
||||||
|
|
||||||
Under wxMac (Cocoa), large cursors are supported.
|
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);
|
wxCursor(const wxImage& image);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user