wxPerl docs updates
some minor fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14242
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
# the following syntax is valud only under Windows
UserData = %windir%\\data.dat
\end{verbatim}
# the following syntax is valud only under Windows
UserData = %windir%\\data.dat
\end{verbatim}
+% $ % help EMACS syntax highlighting...
the call to \tt{config->Read("UserData")} will return something like
\tt{"/home/zeitlin/data"} if you're lucky enough to run a Linux system ;-)
the call to \tt{config->Read("UserData")} will return something like
\tt{"/home/zeitlin/data"} if you're lucky enough to run a Linux system ;-)
consisting of the continue flag, the value string, and the index for
the next call.}
consisting of the continue flag, the value string, and the index for
the next call.}
+\perlnote{In wxPerl this method takes no arguments and returns a 3-element
+list {\tt ( continue, str, index )}.}
+
\membersection{wxConfigBase::GetFirstEntry}\label{wxconfigbasegetfirstentry}
\constfunc{bool}{GetFirstEntry}{\param{wxString\& }{str}, \param{long\&}{ index}}
\membersection{wxConfigBase::GetFirstEntry}\label{wxconfigbasegetfirstentry}
\constfunc{bool}{GetFirstEntry}{\param{wxString\& }{str}, \param{long\&}{ index}}
consisting of the continue flag, the value string, and the index for
the next call.}
consisting of the continue flag, the value string, and the index for
the next call.}
+\perlnote{In wxPerl this method takes no arguments and returns a 3-element
+list {\tt ( continue, str, index )}.}
+
\membersection{wxConfigBase::GetNextGroup}\label{wxconfigbasegetnextgroup}
\constfunc{bool}{GetNextGroup}{\param{wxString\& }{str}, \param{long\&}{ index}}
\membersection{wxConfigBase::GetNextGroup}\label{wxconfigbasegetnextgroup}
\constfunc{bool}{GetNextGroup}{\param{wxString\& }{str}, \param{long\&}{ index}}
consisting of the continue flag, the value string, and the index for
the next call.}
consisting of the continue flag, the value string, and the index for
the next call.}
+\perlnote{In wxPerl this method only takes the {\tt index} parameter
+and returns a 3-element list {\tt ( continue, str, index )}.}
+
\membersection{wxConfigBase::GetNextEntry}\label{wxconfigbasegetnextentry}
\constfunc{bool}{GetNextEntry}{\param{wxString\& }{str}, \param{long\&}{ index}}
\membersection{wxConfigBase::GetNextEntry}\label{wxconfigbasegetnextentry}
\constfunc{bool}{GetNextEntry}{\param{wxString\& }{str}, \param{long\&}{ index}}
consisting of the continue flag, the value string, and the index for
the next call.}
consisting of the continue flag, the value string, and the index for
the next call.}
+\perlnote{In wxPerl this method only takes the {\tt index} parameter
+and returns a 3-element list {\tt ( continue, str, index )}.}
+
\membersection{wxConfigBase::GetNumberOfEntries}\label{wxconfigbasegetnumberofentries}
\constfunc{uint }{GetNumberOfEntries}{\param{bool }{bRecursive = FALSE}}
\membersection{wxConfigBase::GetNumberOfEntries}\label{wxconfigbasegetnumberofentries}
\constfunc{uint }{GetNumberOfEntries}{\param{bool }{bRecursive = FALSE}}
+\perlnote{In place of a single overloaded method, wxPerl uses:\par
+\indented{2cm}{\begin{twocollist}
+\twocolitem{{\bf Read(key, default="")}}{Returns a string}
+\twocolitem{{\bf ReadInt(key, default=0)}}{Returns an integer}
+\twocolitem{{\bf ReadFloat(key, default=0.0)}}{Returns a floating point number}
+\twocolitem{{\bf ReadBool(key, default=0)}}{Returns a boolean}
+\end{twocollist}
+}}
+
\membersection{wxConfigBase::RenameEntry}\label{wxconfigbaserenameentry}
\func{bool}{RenameEntry}{\param{const wxString\& }{ oldName}, \param{const wxString\& }{ newName}}
\membersection{wxConfigBase::RenameEntry}\label{wxconfigbaserenameentry}
\func{bool}{RenameEntry}{\param{const wxString\& }{ oldName}, \param{const wxString\& }{ newName}}
+\perlnote{In place of a single overloaded method, wxPerl uses:\par
+\indented{2cm}{\begin{twocollist}
+\twocolitem{{\bf Write(key, value)}}{Writes a string}
+\twocolitem{{\bf WriteInt(key, value)}}{Writes an integer}
+\twocolitem{{\bf WriteFloat(key, value)}}{Writes a floating point number}
+\twocolitem{{\bf WriteBool(key, value)}}{Writes a boolean}
+\end{twocollist}
+}}
\func{long}{wxExecute}{\param{const wxString\& }{command}, \param{wxArrayString\& }{output}}
\func{long}{wxExecute}{\param{const wxString\& }{command}, \param{wxArrayString\& }{output}}
+\perlnote{In wxPerl this function only takes the {\tt command} argument,
+and returns a 2-element list {\tt ( status, output )}, where {\tt output} is
+an array reference.}
+
\func{long}{wxExecute}{\param{const wxString\& }{command}, \param{wxArrayString\& }{output}, \param{wxArrayString\& }{errors}}
\func{long}{wxExecute}{\param{const wxString\& }{command}, \param{wxArrayString\& }{output}, \param{wxArrayString\& }{errors}}
+\perlnote{In wxPerl this function only takes the {\tt command} argument,
+and returns a 3-element list {\tt ( status, output, errors )}, where
+{\tt output} and {\tt errors} are array references.}
+
Executes another program in Unix or Windows.
The first form takes a command string, such as {\tt "emacs file.txt"}.
Executes another program in Unix or Windows.
The first form takes a command string, such as {\tt "emacs file.txt"}.
\func{}{wxASSERT\_MIN\_BITSIZE}{\param{}{type}, \param{}{size}}
This macro results in a
\func{}{wxASSERT\_MIN\_BITSIZE}{\param{}{type}, \param{}{size}}
This macro results in a
-\helpref{compile time assertion failure}{wxCOMPILE\_TIME\_ASSERT} if the size
+\helpref{compile time assertion failure}{wxcompiletimeassert} if the size
of the given type {\it type} is less than {\it size} bits.
You may use it like this, for example:
of the given type {\it type} is less than {\it size} bits.
You may use it like this, for example:
\func{}{wxCOMPILE\_TIME\_ASSERT}{\param{}{condition}, \param{}{msg}}
Using {\tt wxCOMPILE\_TIME\_ASSERT} results in a compilation error if the
\func{}{wxCOMPILE\_TIME\_ASSERT}{\param{}{condition}, \param{}{msg}}
Using {\tt wxCOMPILE\_TIME\_ASSERT} results in a compilation error if the
-specified {\it condition| is false. The compiler error message should include
+specified {\it condition} is false. The compiler error message should include
the {\it msg} identifier - please note that it must be a valid C++ identifier
and not a string unlike in the other cases.
the {\it msg} identifier - please note that it must be a valid C++ identifier
and not a string unlike in the other cases.
Horizontal alignment will be one of wxALIGN\_LEFT, wxALIGN\_CENTRE or wxALIGN\_RIGHT. \\
Vertical alignment will be one of wxALIGN\_TOP, wxALIGN\_CENTRE or wxALIGN\_BOTTOM.
Horizontal alignment will be one of wxALIGN\_LEFT, wxALIGN\_CENTRE or wxALIGN\_RIGHT. \\
Vertical alignment will be one of wxALIGN\_TOP, wxALIGN\_CENTRE or wxALIGN\_BOTTOM.
+\perlnote{This method only takes the parameters {\tt row} and {\tt col} and
+returns a 2-element list {\tt ( horiz, vert )}.}
+
\membersection{wxGrid::GetCellBackgroundColour}\label{wxgridgetcellbackgroundcolour}
\func{wxColour}{GetCellBackgroundColour}{\param{int }{row}, \param{int }{col}}
\membersection{wxGrid::GetCellBackgroundColour}\label{wxgridgetcellbackgroundcolour}
\func{wxColour}{GetCellBackgroundColour}{\param{int }{row}, \param{int }{col}}
Horizontal alignment will be one of wxLEFT, wxCENTRE or wxRIGHT. \\
Vertical alignment will be one of wxTOP, wxCENTRE or wxBOTTOM.
Horizontal alignment will be one of wxLEFT, wxCENTRE or wxRIGHT. \\
Vertical alignment will be one of wxTOP, wxCENTRE or wxBOTTOM.
+\perlnote{This method takes no parameters and
+returns a 2-element list {\tt ( horiz, vert )}.}
+
\membersection{wxGrid::GetColLabelSize}\label{wxgridgetcollabelsize}
\func{int}{GetColLabelSize}{\void}
\membersection{wxGrid::GetColLabelSize}\label{wxgridgetcollabelsize}
\func{int}{GetColLabelSize}{\void}
Horizontal alignment will be one of wxLEFT, wxCENTRE or wxRIGHT. \\
Vertical alignment will be one of wxTOP, wxCENTRE or wxBOTTOM.
Horizontal alignment will be one of wxLEFT, wxCENTRE or wxRIGHT. \\
Vertical alignment will be one of wxTOP, wxCENTRE or wxBOTTOM.
+\perlnote{This method takes no parameters and
+returns a 2-element list {\tt ( horiz, vert )}.}
+
\membersection{wxGrid::GetRowLabelSize}\label{wxgridgetrowlabelsize}
\func{int}{GetRowLabelSize}{\void}
\membersection{wxGrid::GetRowLabelSize}\label{wxgridgetrowlabelsize}
\func{int}{GetRowLabelSize}{\void}
\constfunc{void}{GetAlignment}{\param{int* }{hAlign}, \param{int* }{vAlign}}
\constfunc{void}{GetAlignment}{\param{int* }{hAlign}, \param{int* }{vAlign}}
+\perlnote{This method takes no parameters and
+returns a 2-element list {\tt ( hAlign, vAlign )}.}
\membersection{wxGridCellAttr::GetRenderer}\label{wxgridcellattrgetrenderer}
\membersection{wxGridCellAttr::GetRenderer}\label{wxgridcellattrgetrenderer}
flags value mentioned above.}
\perlnote{In wxPerl this method only takes the {\bf point} parameter
flags value mentioned above.}
\perlnote{In wxPerl this method only takes the {\bf point} parameter
- and returns a 2-element list ( item, flags ).}
+ and returns a 2-element list {\tt ( item, flags )}.}
\membersection{wxListCtrl::InsertColumn}\label{wxlistctrlinsertcolumn}
\membersection{wxListCtrl::InsertColumn}\label{wxlistctrlinsertcolumn}
\perlnote{In wxPerl this method takes just the {\tt id} parameter;
in scalar context it returns the associated {\tt Wx::MenuItem}, in list
\perlnote{In wxPerl this method takes just the {\tt id} parameter;
in scalar context it returns the associated {\tt Wx::MenuItem}, in list
-context it returns a 2-element list ( item, submenu )}
+context it returns a 2-element list {\tt ( item, submenu )}}
the streams corresponding to the child process stdandard output, input and
error output respectively.
the streams corresponding to the child process stdandard output, input and
error output respectively.
+\perlnote{In wxPerl this class has an additional {\tt Destroy} method,
+for explicit destruction.}
+
\wxheading{Derived from}
\helpref{wxEvtHandler}{wxevthandler}
\wxheading{Derived from}
\helpref{wxEvtHandler}{wxevthandler}
\helpref{wxKill}{wxkill},\rtfsp
\helpref{Exec sample}{sampleexec}
\helpref{wxKill}{wxkill},\rtfsp
\helpref{Exec sample}{sampleexec}
-\membersection{wxProcess::Kill}\label{wxprocessexists}
+\membersection{wxProcess::Exists}\label{wxprocessexists}
\func{static bool}{Exists}{\param{int}{ pid}}
\func{static bool}{Exists}{\param{int}{ pid}}
\membersection{wxProcessEvent::wxProcessEvent}
\membersection{wxProcessEvent::wxProcessEvent}
-\func{}{wxProcessEvent}{\param{int }{id = 0}, \param{int }{pid = 0}}
+\func{}{wxProcessEvent}{\param{int }{id = 0}, \param{int }{pid = 0}, \param{int }{exitcode = 0}}
-Constructor. Takes a wxProcessObject or window id, and a process id.
-
-\membersection{wxProcessEvent::m\_pid}
-
-\member{int}{m\_pid}
-
-Contains the process id.
+Constructor. Takes a wxProcessObject or window id, a process id and an
+exit status.
+%\membersection{wxProcessEvent::m\_pid}
+%
+%\member{int}{m\_pid}
+%
+%Contains the process id.
+%
\membersection{wxProcessEvent::GetPid}\label{wxprocesseventgetpid}
\constfunc{int}{GetPid}{\void}
Returns the process id.
\membersection{wxProcessEvent::GetPid}\label{wxprocesseventgetpid}
\constfunc{int}{GetPid}{\void}
Returns the process id.
-\membersection{wxProcessEvent::SetPid}\label{wxprocesseventsetpid}
-
-\func{void}{SetPid}{\param{int}{ pid}}
+\membersection{wxProcessEvent::GetExitCode}\label{wxprocesseventgetexitcode}
+\func{int}{GetExitCode}{\void}
+Returns the exist status.
value are both returned as a tuple containing the two values.}
\perlnote{In wxPerl this method only takes the {\tt item} parameter, and
value are both returned as a tuple containing the two values.}
\perlnote{In wxPerl this method only takes the {\tt item} parameter, and
- returns a 2-element list ( item, cookie ).}
+ returns a 2-element list {\tt ( item, cookie )}.}
\membersection{wxTreeCtrl::GetFirstVisibleItem}\label{wxtreectrlgetfirstvisibleitem}
\membersection{wxTreeCtrl::GetFirstVisibleItem}\label{wxtreectrlgetfirstvisibleitem}
value are both returned as a tuple containing the two values.}
\perlnote{In wxPerl this method returns a 2-element list
value are both returned as a tuple containing the two values.}
\perlnote{In wxPerl this method returns a 2-element list
- ( item, cookie ), instead of modifying its parameters.}
+ {\tt ( item, cookie )}, instead of modifying its parameters.}
\membersection{wxTreeCtrl::GetNextSibling}\label{wxtreectrlgetnextsibling}
\membersection{wxTreeCtrl::GetNextSibling}\label{wxtreectrlgetnextsibling}
returned as a tuple.}
\perlnote{In wxPerl this method only takes the {\tt point} parameter
returned as a tuple.}
\perlnote{In wxPerl this method only takes the {\tt point} parameter
- and returns a 2-element list ( item, flags ).}
+ and returns a 2-element list {\tt ( item, flags )}.}
\membersection{wxTreeCtrl::InsertItem}\label{wxtreectrlinsertitem}
\membersection{wxTreeCtrl::InsertItem}\label{wxtreectrlinsertitem}