Renamed wxStream::StreamSize() to wxStream::GetSize()

Add wxStream bool operator !().
  Made wxTextStream safe for conversion from/to Mac/DOS/Unix
  Added wxFrame::Iconize()
  Applied patch for stippled brushes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-07-24 10:50:13 +00:00
parent 5a96d2f45f
commit cd25b18c8e
14 changed files with 384 additions and 198 deletions

View File

@@ -55,8 +55,9 @@ class WXDLLEXPORT wxStreamBase {
wxStreamBase();
virtual ~wxStreamBase();
bool operator!() const { return (LastError() != wxSTR_NOERROR); }
wxStreamError LastError() const { return m_lasterror; }
virtual size_t StreamSize() const { return ~((size_t)0); }
virtual size_t GetSize() const { return ~((size_t)0); }
protected:
@@ -147,7 +148,7 @@ class WXDLLEXPORT wxFilterInputStream: public wxInputStream {
char Peek() { return m_parent_i_stream->Peek(); }
wxStreamError LastError() const { return m_parent_i_stream->LastError(); }
size_t StreamSize() const { return m_parent_i_stream->StreamSize(); }
size_t GetSize() const { return m_parent_i_stream->GetSize(); }
protected:
wxInputStream *m_parent_i_stream;
@@ -160,7 +161,7 @@ class WXDLLEXPORT wxFilterOutputStream: public wxOutputStream {
~wxFilterOutputStream();
wxStreamError LastError() const { return m_parent_o_stream->LastError(); }
size_t StreamSize() const { return m_parent_o_stream->StreamSize(); }
size_t GetSize() const { return m_parent_o_stream->GetSize(); }
protected:
wxOutputStream *m_parent_o_stream;