X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e72403492b3e78f8114d89baae6f81ea24c74647..85136e3bf5dadf921652519e71da5db351fb3194:/docs/latex/wx/fs_mem.tex?ds=inline
diff --git a/docs/latex/wx/fs_mem.tex b/docs/latex/wx/fs_mem.tex
index 1b9f8d61bc..288929a427 100644
--- a/docs/latex/wx/fs_mem.tex
+++ b/docs/latex/wx/fs_mem.tex
@@ -22,7 +22,7 @@ Example:
void MyFrame::OnAbout(wxCommandEvent&)
{
wxBusyCursor bcur;
-
+ wxFileSystem::AddHandler(new wxMemoryFSHandler);
wxMemoryFSHandler::AddFile("logo.pcx", wxBITMAP(logo), wxBITMAP_TYPE_PCX);
wxMemoryFSHandler::AddFile("about.htm",
"
About: "
@@ -56,12 +56,17 @@ void MyFrame::OnAbout(wxCommandEvent&)
\wxheading{Derived from}
-\helpref{wxFileSystemHandler}{wxfilesystemhandler}
+\helpref{wxFileSystemHandler}{wxfilesystemhandler}\\
+\helpref{wxObject}{wxobject}
\wxheading{Include files}
+\wxheading{Library}
+
+\helpref{wxBase}{librarieslist}
+
\latexignore{\rtfignore{\wxheading{Members}}}
@@ -78,18 +83,36 @@ Constructor.
\func{static void}{AddFile}{\param{const wxString\& }{filename}, \param{const wxBitmap\& }{bitmap}, \param{long }{type}}
-\func{static void}{AddFile}{\param{const wxString\& }{filename}, \param{const wxString\& }{textdata}}
-
-\func{static void}{AddFile}{\param{const wxString\& }{filename}, \param{const void* }{binarydata}, \param{size\_t }{size}}
-
Add file to list of files stored in memory. Stored
data (bitmap, text or raw data)
will be copied into private memory stream and available under
-name "memory:" + filename.
+name "memory:" + \arg{filename}.
+
+The \arg{type} argument is one of {\tt wxBITMAP\_TYPE\_XXX} constants.
+Note that you must use a \arg{type} value (aka image format)
+that wxWidgets can save (e.g. JPG, PNG, see \helpref{wxImage
+documentation}{wximage})!
+
+\wxheading{See also}
+
+\helpref{AddFileWithMimeType}{wxmemoryfshandleraddfilewithmimetype}
+
+
+\membersection{wxMemoryFSHandler::AddFileWithMimeType}\label{wxmemoryfshandleraddfilewithmimetype}
+
+\func{static void}{AddFileWithMimeType}{\param{const wxString\& }{filename}, \param{const wxString\& }{textdata}, \param{const wxString\& }{mimetype}}
+
+\func{static void}{AddFileWithMimeType}{\param{const wxString\& }{filename}, \param{const void* }{binarydata}, \param{size\_t }{size}, \param{const wxString\& }{mimetype}}
+
+Like \helpref{AddFile}{wxmemoryfshandleraddfile}, but lets you explicitly
+specify added file's MIME type. This version should be used whenever you know
+the MIME type, because it makes accessing the files faster.
+
+\newsince{2.8.5}
-Note that when storing image/bitmap, you must use image format that wxWindows
-can write (e.g. JPG, PNG, see \helpref{wxImage documentation}{wximage})!
+\wxheading{See also}
+\helpref{AddFile}{wxmemoryfshandleraddfile}
\membersection{wxMemoryFSHandler::RemoveFile}\label{wxmemoryfshandlerremovefile}