See \helpref{OnSysRead}{wxstreambaseonsysread}.
-\membersection{wxStreamBase::StreamSize}
+\membersection{wxStreamBase::GetSize}
-\constfunc{size\_t}{StreamSize}{\void}
+\constfunc{size\_t}{GetSize}{\void}
This function returns the size of the stream. For example, for a file it is the size of
the file).
\wxheading{Warning}
There are streams which do not have size by definition, such as socket streams.
-In that cases, StreamSize returns an invalid size represented by
+In that cases, GetSize returns an invalid size represented by
\begin{verbatim}
~(size_t)0
\func{void}{ToggleTool}{\param{int }{toolIndex}, \param{const bool}{ toggle}}
-Toggles a tool on or off.
+Toggles a tool on or off. This does not cause any event to get emitted.
\wxheading{Parameters}
return (const wxIcon &)m_bitmap;
}
+ // for compatibility with wxMSW
+ void SetIcon(const wxIcon& icon)
+ {
+ SetBitmap( icon );
+ }
+
private:
// creates the new pixmap widget
void CreatePixmapWidget();
return (const wxIcon &)m_bitmap;
}
+ // for compatibility with wxMSW
+ void SetIcon(const wxIcon& icon)
+ {
+ SetBitmap( icon );
+ }
+
private:
// creates the new pixmap widget
void CreatePixmapWidget();
m_pen = *wxBLACK_PEN;
m_font = *wxNORMAL_FONT;
- m_brush = *wxTRANSPARENT_BRUSH;
+ m_brush = *wxWHITE_BRUSH;
}
void wxDC::DoSetClippingRegion( long x, long y, long width, long height )
m_pen = *wxBLACK_PEN;
m_font = *wxNORMAL_FONT;
- m_brush = *wxTRANSPARENT_BRUSH;
+ m_brush = *wxWHITE_BRUSH;
}
void wxDC::DoSetClippingRegion( long x, long y, long width, long height )