Move some things to wxBitmapBase to avoid much duplication.
Use proper const for XPM data, and const void* for arbitary bitmap data. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -48,7 +48,7 @@ use:
|
||||
wxRect(0, 0, oldBitmap.GetWidth(), oldBitmap.GetHeight()));
|
||||
\end{verbatim}
|
||||
|
||||
\func{}{wxBitmap}{\param{void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
|
||||
\func{}{wxBitmap}{\param{const void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
|
||||
|
||||
Creates a bitmap from the given data which is interpreted in platform-dependent
|
||||
manner.
|
||||
@@ -75,7 +75,7 @@ or visual. Some platforms only support 1 for monochrome and -1 for the current
|
||||
colour setting. Beginning with version 2.5.4 of wxWidgets a depth of 32 including
|
||||
an alpha channel is supported under MSW, Mac and GTK+.
|
||||
|
||||
\func{}{wxBitmap}{\param{const char**}{ bits}}
|
||||
\func{}{wxBitmap}{\param{const char* const*}{ bits}}
|
||||
|
||||
Creates a bitmap from XPM data.
|
||||
|
||||
@@ -260,7 +260,7 @@ Creates the bitmap from an icon.
|
||||
Creates a fresh bitmap. If the final argument is omitted, the display depth of
|
||||
the screen is used.
|
||||
|
||||
\func{virtual bool}{Create}{\param{void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
|
||||
\func{virtual bool}{Create}{\param{const void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
|
||||
|
||||
Creates a bitmap from the given data, which can be of arbitrary type.
|
||||
|
||||
|
@@ -38,7 +38,7 @@ Destroys the wxBitmapHandler object.
|
||||
|
||||
\membersection{wxBitmapHandler::Create}\label{wxbitmaphandlercreate}
|
||||
|
||||
\func{virtual bool}{Create}{\param{wxBitmap* }{bitmap}, \param{void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
|
||||
\func{virtual bool}{Create}{\param{wxBitmap* }{bitmap}, \param{const void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
|
||||
|
||||
Creates a bitmap from the given data, which can be of arbitrary type. The wxBitmap object {\it bitmap} is
|
||||
manipulated by this function.
|
||||
@@ -64,13 +64,13 @@ true if the call succeeded, false otherwise (the default).
|
||||
|
||||
\membersection{wxBitmapHandler::GetName}\label{wxbitmaphandlergetname}
|
||||
|
||||
\constfunc{wxString}{GetName}{\void}
|
||||
\constfunc{const wxString\&}{ GetName}{\void}
|
||||
|
||||
Gets the name of this handler.
|
||||
|
||||
\membersection{wxBitmapHandler::GetExtension}\label{wxbitmaphandlergetextension}
|
||||
|
||||
\constfunc{wxString}{GetExtension}{\void}
|
||||
\constfunc{const wxString\&}{ GetExtension}{\void}
|
||||
|
||||
Gets the file extension associated with this handler.
|
||||
|
||||
|
@@ -128,7 +128,7 @@ Loads an image from a file.
|
||||
|
||||
Loads an image from an input stream.
|
||||
|
||||
\func{}{wxImage}{\param{const char** }{xpmData}}
|
||||
\func{}{wxImage}{\param{const char* const* }{xpmData}}
|
||||
|
||||
Creates an image from XPM data.
|
||||
|
||||
@@ -1383,14 +1383,14 @@ Destroys the wxImageHandler object.
|
||||
|
||||
\membersection{wxImageHandler::GetName}\label{wximagehandlergetname}
|
||||
|
||||
\constfunc{wxString}{GetName}{\void}
|
||||
\constfunc{const wxString\&}{GetName}{\void}
|
||||
|
||||
Gets the name of this handler.
|
||||
|
||||
|
||||
\membersection{wxImageHandler::GetExtension}\label{wximagehandlergetextension}
|
||||
|
||||
\constfunc{wxString}{GetExtension}{\void}
|
||||
\constfunc{const wxString\&}{GetExtension}{\void}
|
||||
|
||||
Gets the file extension associated with this handler.
|
||||
|
||||
@@ -1420,7 +1420,7 @@ Gets the image type associated with this handler.
|
||||
|
||||
\membersection{wxImageHandler::GetMimeType}\label{wximagehandlergetmimetype}
|
||||
|
||||
\constfunc{wxString}{GetMimeType}{\void}
|
||||
\constfunc{const wxString\&}{GetMimeType}{\void}
|
||||
|
||||
Gets the MIME type associated with this handler.
|
||||
|
||||
|
Reference in New Issue
Block a user