From 50b1e15e0cc8d18d0e0cc1d0973ae0ea27a070b8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 6 Jun 2009 12:09:30 +0000 Subject: [PATCH] document effect of loading an icon bundle on stream position git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/iconbndl.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/interface/wx/iconbndl.h b/interface/wx/iconbndl.h index aecfe287f5..49609c12f7 100644 --- a/interface/wx/iconbndl.h +++ b/interface/wx/iconbndl.h @@ -34,6 +34,10 @@ public: /** Initializes the bundle with the icon(s) found in the stream. + Notice that the @a stream must be seekable, at least if it contains + more than one icon. The stream pointer is positioned after the last + icon read from the stream when this function returns. + @since 2.9.0 */ wxIconBundle(wxInputStream& stream, wxBitmapType type = wxBITMAP_TYPE_ANY); @@ -65,6 +69,10 @@ public: collection already contains icons with the same width and height, they are replaced by the new ones. + Notice that, as well as in the constructor loading the icon bundle from + stream, the @a stream must be seekable, at least if more than one icon + is to be loaded from it. + @since 2.9.0 */ void AddIcon(wxInputStream& stream, wxBitmapType type = wxBITMAP_TYPE_ANY); -- 2.45.2