X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a660d684eda27638bca0384b2058911a31c8e845..b14391d1c8fde767eabedd2243dd6583f685f53f:/docs/latex/wx/cursor.tex?ds=inline diff --git a/docs/latex/wx/cursor.tex b/docs/latex/wx/cursor.tex index 59c61db2eb..40c5b81d20 100644 --- a/docs/latex/wx/cursor.tex +++ b/docs/latex/wx/cursor.tex @@ -20,6 +20,22 @@ global \helpref{::wxSetCursor}{wxsetcursor} is also available for MS Windows use \helpref{wxGDIObject}{wxgdiobject}\\ \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + +\wxheading{Predefined objects} + +Objects: + +{\bf wxNullCursor} + +Pointers: + +{\bf wxSTANDARD\_CURSOR\\ +wxHOURGLASS\_CURSOR\\ +wxCROSS\_CURSOR} + \wxheading{See also} \helpref{wxBitmap}{wxbitmap}, \helpref{wxIcon}{wxicon}, \helpref{wxWindow::SetCursor}{wxwindowsetcursor},\rtfsp @@ -33,21 +49,21 @@ global \helpref{::wxSetCursor}{wxsetcursor} is also available for MS Windows use Default constructor. -\func{}{wxCursor}{\param{const char}{ bits[]}, \param{const int }{width}, - \param{const int }{ height}, \param{const int }{hotSpotX=-1}, \param{const int }{hotSpotY=-1}, \param{const char }{maskBits[]=NULL}} +\func{}{wxCursor}{\param{const char}{ bits[]}, \param{int }{width}, + \param{int }{ height}, \param{int }{hotSpotX=-1}, \param{int }{hotSpotY=-1}, \param{const char }{maskBits[]=NULL}} Constructs a cursor by passing an array of bits (Motif and Xt only). {\it maskBits} is used only under Motif. If either {\it hotSpotX} or {\it hotSpotY} is -1, the hotspot will be the centre of the cursor image (Motif only). -\func{}{wxCursor}{\param{const wxString\& }{cursorName}, \param{const long }{type}, \param{const int }{hotSpotX=0}, \param{const int }{hotSpotY=0}} +\func{}{wxCursor}{\param{const wxString\& }{cursorName}, \param{long }{type}, \param{int }{hotSpotX=0}, \param{int }{hotSpotY=0}} Constructs a cursor by passing a string resource name or filename. {\it hotSpotX} and {\it hotSpotY} are currently only used under Windows when loading from an icon file, to specify the cursor hotspot relative to the top left of the image. -\func{}{wxCursor}{\param{const int}{ cursorId}} +\func{}{wxCursor}{\param{int}{ cursorId}} Constructs a cursor using a cursor identifier. @@ -55,10 +71,6 @@ Constructs a cursor using a cursor identifier. Copy constructor. This uses reference counting so is a cheap operation. -\func{}{wxCursor}{\param{const wxCursor*}{ cursor}} - -Copy constructor. This uses reference counting so is a cheap operation. - \wxheading{Parameters} \docparam{bits}{An array of bits.} @@ -88,10 +100,10 @@ Under Windows, the permitted types are: \twocolwidtha{6cm} \begin{twocollist}\itemsep=0pt \twocolitem{\windowstyle{wxBITMAP\_TYPE\_CUR}}{Load a cursor from a .cur cursor file (only if USE\_RESOURCE\_LOADING\_IN\_MSW -is enabled in wx\_setup.h).} +is enabled in setup.h).} \twocolitem{\windowstyle{wxBITMAP\_TYPE\_CUR\_RESOURCE}}{Load a Windows resource (as specified in the .rc file).} \twocolitem{\windowstyle{wxBITMAP\_TYPE\_ICO}}{Load a cursor from a .ico icon file (only if USE\_RESOURCE\_LOADING\_IN\_MSW -is enabled in wx\_setup.h). Specify {\it hotSpotX} and {\it hotSpotY}.} +is enabled in setup.h). Specify {\it hotSpotX} and {\it hotSpotY}.} \end{twocollist}} \docparam{cursorId}{A stock cursor identifier. May be one of: @@ -128,6 +140,14 @@ Note that not all cursors are available on all platforms.} \docparam{cursor}{Pointer or reference to a cursor to copy.} +\pythonnote{Constructors supported by wxPython are:\par +\indented{2cm}{\begin{twocollist} +\twocolitem{{\bf wxCursor(name, flags, hotSpotX=0, +hotSpotY=0)}}{Constructs a cursor from a filename} +\twocolitem{{\bf wxStockCursor(id)}}{Constructs a stock cursor } +\end{twocollist}} +} + \membersection{wxCursor::\destruct{wxCursor}} \func{}{\destruct{wxCursor}}{\void}