Docstring fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -76,8 +76,8 @@ file.","
|
|||||||
wxCursor(const wxString& cursorName, long type, int hotSpotX=0, int hotSpotY=0) {
|
wxCursor(const wxString& cursorName, long type, int hotSpotX=0, int hotSpotY=0) {
|
||||||
%#ifdef __WXGTK__
|
%#ifdef __WXGTK__
|
||||||
wxImage img(cursorName, type);
|
wxImage img(cursorName, type);
|
||||||
img.SetOptionInt(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
|
img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
|
||||||
img.SetOptionInt(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
|
img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
|
||||||
return new wxCursor(img);
|
return new wxCursor(img);
|
||||||
%#else
|
%#else
|
||||||
return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
|
return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
|
||||||
@@ -96,19 +96,14 @@ stock cursors are available on all platforms.", "",
|
|||||||
|
|
||||||
DocCtorStrName(
|
DocCtorStrName(
|
||||||
wxCursor(const wxImage& image),
|
wxCursor(const wxImage& image),
|
||||||
"Constructs a cursor from a wxImage. The cursor is monochrome, colors
|
"Constructs a cursor from a `wx.Image`. The mask (if any) will be used
|
||||||
with the RGB elements all greater than 127 will be foreground, colors
|
as transparent.",
|
||||||
less than this background. The mask (if any) will be used as
|
|
||||||
transparent.",
|
|
||||||
"
|
"
|
||||||
In MSW the foreground will be white and the background
|
In MSW the cursor is resized to 32x32.
|
||||||
black. The cursor is resized to 32x32.
|
|
||||||
|
|
||||||
In GTK, the two most frequent colors will be used for foreground and
|
In GTK the cursor will be displayed at the size of the image.
|
||||||
background. The cursor will be displayed at the size of the image.
|
|
||||||
|
|
||||||
On MacOS the cursor is resized to 16x16 and currently only shown as
|
On MacOS the cursor is resized to 16x16.",
|
||||||
black/white (mask respected).",
|
|
||||||
CursorFromImage);
|
CursorFromImage);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user