wxDC now inits with a WHITE_BRUSH as wxMSW seems to
do the same
small doc updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3134
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
See \helpref{OnSysRead}{wxstreambaseonsysread}.
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).
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.
\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
\begin{verbatim}
~(size_t)0
\func{void}{ToggleTool}{\param{int }{toolIndex}, \param{const bool}{ toggle}}
\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.
return (const wxIcon &)m_bitmap;
}
return (const wxIcon &)m_bitmap;
}
+ // for compatibility with wxMSW
+ void SetIcon(const wxIcon& icon)
+ {
+ SetBitmap( icon );
+ }
+
private:
// creates the new pixmap widget
void CreatePixmapWidget();
private:
// creates the new pixmap widget
void CreatePixmapWidget();
return (const wxIcon &)m_bitmap;
}
return (const wxIcon &)m_bitmap;
}
+ // for compatibility with wxMSW
+ void SetIcon(const wxIcon& icon)
+ {
+ SetBitmap( icon );
+ }
+
private:
// creates the new pixmap widget
void CreatePixmapWidget();
private:
// creates the new pixmap widget
void CreatePixmapWidget();
m_pen = *wxBLACK_PEN;
m_font = *wxNORMAL_FONT;
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 )
}
void wxDC::DoSetClippingRegion( long x, long y, long width, long height )
m_pen = *wxBLACK_PEN;
m_font = *wxNORMAL_FONT;
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 )
}
void wxDC::DoSetClippingRegion( long x, long y, long width, long height )