From 2a138829cb011bc427b61d30eb85a6c3ff658455 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 27 Feb 2005 11:55:01 +0000 Subject: [PATCH] Added GetIcon, GetBitmap to wxImageList Tweaked DC and bitmap docs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 5 +++++ docs/latex/wx/bitmap.tex | 7 ++++--- docs/latex/wx/dc.tex | 9 ++++++--- docs/latex/wx/imaglist.tex | 12 ++++++++++++ 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 1e71392871..64bfe5d239 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -5,6 +5,11 @@ wxWidgets 2.5 Change Log - For more verbose changes, see the manual 2.5.5 ----- +All: + +- Added GetIcon, GetBitmap to wxImageList. wxGenericImageList's original + GetBitmap is renamed GetBitmapPtr. + wxPalmOS: - native wxRadioBox implementation diff --git a/docs/latex/wx/bitmap.tex b/docs/latex/wx/bitmap.tex index 3a22e05308..4e08167b27 100644 --- a/docs/latex/wx/bitmap.tex +++ b/docs/latex/wx/bitmap.tex @@ -119,11 +119,11 @@ Its meaning is determined by the {\it type} parameter.} \twocolwidtha{5cm} \begin{twocollist} \twocolitem{\indexit{wxBITMAP\_TYPE\_BMP}}{Load a Windows bitmap file.} -\twocolitem{\indexit{wxBITMAP\_TYPE\_BMP\_RESOURCE}}{Load a Windows bitmap from the resource database.} +\twocolitem{\indexit{wxBITMAP\_TYPE\_BMP\_RESOURCE}}{Load a Windows bitmap resource from the executable. Windows only.} +\twocolitem{\indexit{wxBITMAP\_TYPE\_PICT\_RESOURCE}}{Load a PICT image resource from the executable. Mac OS only.} \twocolitem{\indexit{wxBITMAP\_TYPE\_GIF}}{Load a GIF bitmap file.} \twocolitem{\indexit{wxBITMAP\_TYPE\_XBM}}{Load an X bitmap file.} \twocolitem{\indexit{wxBITMAP\_TYPE\_XPM}}{Load an XPM bitmap file.} -\twocolitem{\indexit{wxBITMAP\_TYPE\_RESOURCE}}{Load a Windows resource name.} \end{twocollist} The validity of these flags depends on the platform and wxWidgets configuration. @@ -422,7 +422,8 @@ The meaning of {\it name} is determined by the {\it type} parameter.} \twocolwidtha{5cm} \begin{twocollist} \twocolitem{{\bf wxBITMAP\_TYPE\_BMP}}{Load a Windows bitmap file.} -\twocolitem{{\bf wxBITMAP\_TYPE\_BMP\_RESOURCE}}{Load a Windows bitmap from the resource database.} +\twocolitem{{\bf wxBITMAP\_TYPE\_BMP\_RESOURCE}}{Load a Windows bitmap resource from the executable.} +\twocolitem{{\bf wxBITMAP\_TYPE\_PICT\_RESOURCE}}{Load a PICT image resource from the executable. Mac OS only.} \twocolitem{{\bf wxBITMAP\_TYPE\_GIF}}{Load a GIF bitmap file.} \twocolitem{{\bf wxBITMAP\_TYPE\_XBM}}{Load an X bitmap file.} \twocolitem{{\bf wxBITMAP\_TYPE\_XPM}}{Load an XPM bitmap file.} diff --git a/docs/latex/wx/dc.tex b/docs/latex/wx/dc.tex index ef70d00a79..8a4bf57e65 100644 --- a/docs/latex/wx/dc.tex +++ b/docs/latex/wx/dc.tex @@ -504,12 +504,15 @@ the rectangle. \membersection{wxDC::DrawSpline}\label{wxdcdrawspline} +\func{void}{DrawSpline}{\param{int }, \param{wxPoint }{points[]}} + +Draws a spline between all given control points, using the current +pen. + \func{void}{DrawSpline}{\param{wxList *}{points}} Draws a spline between all given control points, using the current -pen. Doesn't delete the wxList and contents. The spline is drawn -using a series of lines, using an algorithm taken from the X drawing -program `XFIG'. +pen. Doesn't delete the wxList and contents. \func{void}{DrawSpline}{\param{wxCoord}{ x1}, \param{wxCoord}{ y1}, \param{wxCoord}{ x2}, \param{wxCoord}{ y2}, \param{wxCoord}{ x3}, \param{wxCoord}{ y3}} diff --git a/docs/latex/wx/imaglist.tex b/docs/latex/wx/imaglist.tex index b38d24d9c7..96662824aa 100644 --- a/docs/latex/wx/imaglist.tex +++ b/docs/latex/wx/imaglist.tex @@ -125,6 +125,18 @@ Draws a specified image onto a device context. \docparam{solidBackground}{For optimisation - drawing can be faster if the function is told that the background is solid.} +\membersection{wxImageList::GetBitmap}\label{wximagelistgetbitmap} + +\constfunc{wxBitmap}{GetBitmap}{\param{int }{index}} + +Returns the bitmap corresponding to the given index. + +\membersection{wxImageList::GetIcon}\label{wximagelistgeticon} + +\constfunc{wxIcon}{GetIcon}{\param{int }{index}} + +Returns the icon corresponding to the given index. + \membersection{wxImageList::GetImageCount}\label{wximagelistgetimagecount} \constfunc{int}{GetImageCount}{\void} -- 2.45.2