Fixed wxScrolledWindow references to properly link (and appropriately changed others to wxScrolled).

Initial reviews of a few d* interface headers in this commit as well.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2008-04-17 07:06:20 +00:00
parent 7e38638c34
commit f09b568121
18 changed files with 902 additions and 783 deletions

View File

@@ -160,9 +160,9 @@ ALIASES += itemdef{10}="<tr><td><span class='itemdef'>\1</span></td> <td>\2,\3,\
ALIASES += endDefList="</table>"
# See ENABLED_SECTIONS configuration key for more info about these:
ALIASES += beginWxPerlOnly="\if WXPERL_MANUAL \n <b>wxPerl Note:</b>\n\n"
ALIASES += beginWxPerlOnly="\if WXPERL_MANUAL <b>wxPerl Note:</b> "
ALIASES += endWxPerlOnly="\endif"
ALIASES += beginWxPythonOnly="\if WXPYTHON_MANUAL \n <b>wxPython Note:</b>\n\n"
ALIASES += beginWxPythonOnly="\if WXPYTHON_MANUAL <b>wxPython Note:</b> "
ALIASES += endWxPythonOnly="\endif"
# This is to get around a bug in Doxygen that prevents use of '{' or '}'

View File

@@ -71,9 +71,8 @@ The following are the most important window classes
@li wxWindow: base class for all windows and controls
@li wxControl: base class (mostly) for native controls/widgets
@li wxPanel: window which can smartly manage child windows
@li wxScrolledWindow: Window with automatically managed scrollbars (see wxScrolled)
@li wxVScrolledWindow: As wxScrolledWindow but supports lines of variable
height
@li ::wxScrolledWindow: Window with automatically managed scrollbars (see
wxScrolled)
@li wxTopLevelWindow: Any top level window, dialog or frame
@@ -208,7 +207,14 @@ platform-dependent.
The following are a variety of classes that are derived from wxWindow.
@li wxPanel: A window whose colour changes according to current user settings
@li wxScrolledWindow: Window with automatically managed scrollbars
@li ::wxScrolledWindow: Window with automatically managed scrollbars (see
wxScrolled)
@li wxHScrolledWindow: As ::wxScrolledWindow but supports columns of variable
widths
@li wxVScrolledWindow: As ::wxScrolledWindow but supports rows of variable
heights
@li wxHVScrolledWindow: As ::wxScrolledWindow but supports scroll units of
variable sizes.
@li wxGrid: A grid (table) window
@li wxSplitterWindow: Window which can be split vertically or horizontally
@li wxStatusBar: Implements the status bar on a frame
@@ -220,8 +226,6 @@ The following are a variety of classes that are derived from wxWindow.
@li wxSashWindow: Window with four optional sashes that can be dragged
@li wxSashLayoutWindow: Window that can be involved in an IDE-like layout
arrangement
@li wxVScrolledWindow: As wxScrolledWindow but supports lines of variable
height
@li wxWizardPage: A base class for the page in wizard dialog.
@li wxWizardPageSimple: A page in wizard dialog.

View File

@@ -462,7 +462,7 @@ renderer and also how to write a shared library
@section page_samples_scrollsub Scroll subwindow sample
This sample demonstrates use of the wxScrolledWindow
This sample demonstrates use of the ::wxScrolledWindow
class including placing subwindows into it and drawing simple graphics. It uses the
SetTargetWindow method and thus the effect
of scrolling does not show in the scrolled window itself, but in one of its subwindows.

View File

@@ -67,7 +67,7 @@ within wxDialog::Show or wxDialog::ShowModal:
@li If that search failed too, wxWidgets finds 'loose' standard buttons (in any kind of sizer)
and adds them to a wxStdDialogButtonSizer.
If no standard buttons were found, the whole dialog content will scroll.
@li All the children apart from standard buttons are reparented onto a new wxScrolledWindow
@li All the children apart from standard buttons are reparented onto a new ::wxScrolledWindow
object, using the old top-level sizer for the scrolled window and creating a new top-level
sizer to lay out the scrolled window and standard button sizer.

View File

@@ -45,7 +45,7 @@ There is a generic wxHtmlParser class, independent of wxHtmlWindow.
First of all, you must include @c wx/wxhtml.h.
Class wxHtmlWindow (derived from wxScrolledWindow) is used to display HTML documents.
Class wxHtmlWindow (derived from ::wxScrolledWindow) is used to display HTML documents.
It has two important methods: wxHtmlWindow::LoadPage and wxHtmlWindow::SetPage.
LoadPage loads and displays HTML file while SetPage displays directly the
@@ -65,7 +65,7 @@ See wxHtmlHelpController.
@subsection overview_html_quickstart_settingup Setting up wxHtmlWindow
Because wxHtmlWindow is derived from wxScrolledWindow and not from
Because wxHtmlWindow is derived from ::wxScrolledWindow and not from
wxFrame, it doesn't have visible frame. But the user usually wants to see
the title of HTML page displayed somewhere and the frame's titlebar is
the ideal place for it.

View File

@@ -415,7 +415,7 @@ spec over time.
@li wxScreenDC
@li wxScrollBar
@li wxScrollEvent
@li wxScrolledWindow
@li ::wxScrolledWindow
@li wxScrollWinEvent
@li wxShowEvent
@li wxSingleChoiceDialog

View File

@@ -12,7 +12,7 @@
Classes:
@li wxWindow
@li wxScrolledWindow
@li ::wxScrolledWindow
@li wxScrollBar
@li @ref overview_scrolling_model
@@ -35,7 +35,7 @@ events. If you created a wxWindow object with scrollbars, and then clicked on
the scrollbars, nothing at all would happen. This is deliberate, because the
@e interpretation of scroll events varies from one window class to another.
wxScrolledWindow (formerly wxCanvas) is an example of a window that adds
::wxScrolledWindow (formerly wxCanvas) is an example of a window that adds
functionality to make scrolling really work. It assumes that scrolling happens
in consistent units, not different-sized jumps, and that page size is
represented by the visible portion of the window. It is suited to drawing

View File

@@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
// Name: datstrm.h
// Purpose: interface of wxDataOutputStream
// Purpose: interface of wxDataInputStream and wxDataOutputStream
// Author: wxWidgets team
// RCS-ID: $Id$
// Licence: wxWindows license
@@ -10,44 +10,48 @@
@class wxDataOutputStream
@wxheader{datstrm.h}
This class provides functions that write binary data types in a
portable way. Data can be written in either big-endian or little-endian
format, little-endian being the default on all architectures.
This class provides functions that write binary data types in a portable
way. Data can be written in either big-endian or little-endian format,
little-endian being the default on all architectures.
If you want to write data to text files (or streams) use
wxTextOutputStream instead.
If you want to write data to text files (or streams) use wxTextOutputStream
instead.
The operator is overloaded and you can use this class like a standard
C++ iostream. See wxDataInputStream for its
usage and caveats.
See also wxDataInputStream.
The "<<" operator is overloaded and you can use this class like a standard
C++ iostream. See wxDataInputStream for its usage and caveats.
@library{wxbase}
@category{streams}
@see wxDataInputStream
*/
class wxDataOutputStream
{
public:
//@{
/**
)
Constructs a datastream object from an output stream. Only write methods will
be available. The second form is only available in Unicode build of wxWidgets.
Constructs a datastream object from an output stream. Only write
methods will be available.
@param stream
The output stream.
*/
wxDataOutputStream(wxOutputStream& stream);
/**
Constructs a datastream object from an output stream. Only write
methods will be available. This constructor is only available in
Unicode builds of wxWidgets.
@param stream
The output stream.
@param conv
Charset conversion object object used to encoding Unicode
strings before writing them to the stream
in Unicode mode (see WriteString()
documentation for detailed description). Note that you must not destroy
conv before you destroy this wxDataOutputStream instance! It is
recommended to use default value (UTF-8).
Charset conversion object object used to encoding Unicode strings
before writing them to the stream in Unicode mode (see
WriteString() for a detailed description). Note that you must not
destroy @a conv before you destroy this wxDataOutputStream
instance! It is recommended to use the default value (UTF-8).
*/
wxDataOutputStream(wxOutputStream& stream);
wxDataOutputStream(wxOutputStream& stream);
//@}
wxDataOutputStream(wxOutputStream& stream,
const wxMBConv& conv = wxConvAuto());
/**
Destroys the wxDataOutputStream object.
@@ -55,67 +59,74 @@ public:
~wxDataOutputStream();
/**
If @a be_order is @true, all data will be written in big-endian
order, e.g. for reading on a Sparc or from Java-Streams (which
always use big-endian order), otherwise data will be written in
little-endian order.
If @a be_order is @true, all data will be written in big-endian order,
e.g. for reading on a Sparc or from Java-Streams (which always use
big-endian order), otherwise data will be written in little-endian
order.
*/
void BigEndianOrdered(bool be_order);
//@{
/**
Writes an array of 16 bit unsigned integer to the stream. The amount of
16 bit unsigned integer to write is specified with the @a size variable.
Writes the single byte @a i8 to the stream.
*/
void Write16(wxUint16 i16);
void Write16(const wxUint16* buffer, size_t size);
//@}
//@{
/**
Writes an array of 32 bit unsigned integer to the stream. The amount of
32 bit unsigned integer to write is specified with the @a size variable.
*/
void Write32(wxUint32 i32);
void Write32(const wxUint32* buffer, size_t size);
//@}
//@{
/**
Writes an array of 64 bit unsigned integer to the stream. The amount of
64 bit unsigned integer to write is specified with the @a size variable.
*/
void Write64(wxUint64 i64);
void Write64(const wxUint64* buffer, size_t size);
//@}
//@{
void Write8(wxUint8 i8);
/**
Writes an array of bytes to the stream. The amount of bytes to write is
specified with the @a size variable.
*/
void Write8(wxUint8 i8);
void Write8(const wxUint8* buffer, size_t size);
//@}
//@{
/**
Writes the 16 bit unsigned integer @a i16 to the stream.
*/
void Write16(wxUint16 i16);
/**
Writes an array of 16 bit unsigned integer to the stream. The amount of
16 bit unsigned integer to write is specified with the @a size variable.
*/
void Write16(const wxUint16* buffer, size_t size);
/**
Writes the 32 bit unsigned integer @a i32 to the stream.
*/
void Write32(wxUint32 i32);
/**
Writes an array of 32 bit unsigned integer to the stream. The amount of
32 bit unsigned integer to write is specified with the @a size variable.
*/
void Write32(const wxUint32* buffer, size_t size);
/**
Writes the 64 bit unsigned integer @a i64 to the stream.
*/
void Write64(wxUint64 i64);
/**
Writes an array of 64 bit unsigned integer to the stream. The amount of
64 bit unsigned integer to write is specified with the @a size variable.
*/
void Write64(const wxUint64* buffer, size_t size);
/**
Writes the double @a f to the stream using the IEEE format.
*/
void WriteDouble(double f);
/**
Writes an array of double to the stream. The amount of double to write is
specified with the @a size variable.
*/
void WriteDouble(double f);
void WriteDouble(const double* buffer, size_t size);
//@}
/**
Writes @a string to the stream. Actually, this method writes the size of
the string before writing @a string itself.
In ANSI build of wxWidgets, the string is written to the stream in exactly
same way it is represented in memory. In Unicode build, however, the string
is first converted to multibyte representation with @e conv object passed
to stream's constructor (consequently, ANSI application can read data
written by Unicode application, as long as they agree on encoding) and this
representation is written to the stream. UTF-8 is used by default.
Writes @a string to the stream. Actually, this method writes the size
of the string before writing @a string itself.
In ANSI build of wxWidgets, the string is written to the stream in
exactly same way it is represented in memory. In Unicode build,
however, the string is first converted to multibyte representation with
@e conv object passed to stream's constructor (consequently, ANSI
applications can read data written by Unicode application, as long as
they agree on encoding) and this representation is written to the
stream. UTF-8 is used by default.
*/
void WriteString(const wxString& string);
};
@@ -126,21 +137,19 @@ public:
@class wxDataInputStream
@wxheader{datstrm.h}
This class provides functions that read binary data types in a
portable way. Data can be read in either big-endian or little-endian
format, little-endian being the default on all architectures.
This class provides functions that read binary data types in a portable
way. Data can be read in either big-endian or little-endian format,
little-endian being the default on all architectures.
If you want to read data from text files (or streams) use
wxTextInputStream instead.
If you want to read data from text files (or streams) use wxTextInputStream
instead.
The operator is overloaded and you can use this class like a standard C++
iostream.
Note, however, that the arguments are the fixed size types wxUint32, wxInt32 etc
and on a typical 32-bit computer, none of these match to the "long" type
(wxInt32
is defined as signed int on 32-bit architectures) so that you cannot use long.
To avoid
problems (here and elsewhere), make use of the wxInt32, wxUint32, etc types.
The ">>" operator is overloaded and you can use this class like a standard
C++ iostream. Note, however, that the arguments are the fixed size types
wxUint32, wxInt32 etc and on a typical 32-bit computer, none of these match
to the "long" type (wxInt32 is defined as signed int on 32-bit
architectures) so that you cannot use long. To avoid problems (here and
elsewhere), make use of the wxInt32, wxUint32, etc types.
For example:
@@ -151,36 +160,42 @@ public:
float f2;
wxString line;
store i1; // read a 8 bit integer.
store i1 f2; // read a 8 bit integer followed by float.
store line; // read a text line
store >> i1; // read a 8 bit integer.
store >> i1 >> f2; // read a 8 bit integer followed by float.
store >> line; // read a text line
@endcode
See also wxDataOutputStream.
@library{wxbase}
@category{streams}
@see wxDataOutputStream
*/
class wxDataInputStream
{
public:
//@{
/**
)
Constructs a datastream object from an input stream. Only read methods will
be available. The second form is only available in Unicode build of wxWidgets.
Constructs a datastream object from an input stream. Only read methods
will be available.
@param stream
The input stream.
*/
wxDataInputStream(wxInputStream& stream);
/**
Constructs a datastream object from an input stream. Only read methods
will be available. This constructor is only available in Unicode builds
of wxWidgets.
@param stream
The input stream.
@param conv
Charset conversion object object used to decode strings in Unicode
mode (see ReadString()
documentation for detailed description). Note that you must not destroy
conv before you destroy this wxDataInputStream instance!
mode (see ReadString() for a detailed description). Note that you
must not destroy @a conv before you destroy this wxDataInputStream
instance!
*/
wxDataInputStream(wxInputStream& stream);
wxDataInputStream(wxInputStream& stream);
//@}
wxDataInputStream(wxInputStream& stream,
const wxMBConv& conv = wxConvAuto());
/**
Destroys the wxDataInputStream object.
@@ -188,70 +203,77 @@ public:
~wxDataInputStream();
/**
If @a be_order is @true, all data will be read in big-endian
order, such as written by programs on a big endian architecture
(e.g. Sparc) or written by Java-Streams (which always use
big-endian order).
If @a be_order is @true, all data will be read in big-endian order,
such as written by programs on a big endian architecture (e.g. Sparc)
or written by Java-Streams (which always use big-endian order).
*/
void BigEndianOrdered(bool be_order);
//@{
/**
Reads 16 bit unsigned integers from the stream in a specified buffer. the
amount of 16 bit unsigned integer to read is specified by the @a size variable.
*/
wxUint16 Read16();
void Read16(wxUint16* buffer, size_t size);
//@}
//@{
/**
Reads 32 bit unsigned integers from the stream in a specified buffer. the
amount of
32 bit unsigned integer to read is specified by the @a size variable.
*/
wxUint32 Read32();
void Read32(wxUint32* buffer, size_t size);
//@}
//@{
/**
Reads 64 bit unsigned integers from the stream in a specified buffer. the
amount of
64 bit unsigned integer to read is specified by the @a size variable.
*/
wxUint64 Read64();
void Read64(wxUint64* buffer, size_t size);
//@}
//@{
/**
Reads bytes from the stream in a specified buffer. The amount of
bytes to read is specified by the @a size variable.
Reads a single byte from the stream.
*/
wxUint8 Read8();
void Read8(wxUint8* buffer, size_t size);
//@}
//@{
/**
Reads double data (IEEE encoded) from the stream in a specified buffer. the
amount of
double to read is specified by the @a size variable.
Reads bytes from the stream in a specified buffer. The amount of bytes
to read is specified by the @a size variable.
*/
void Read8(wxUint8* buffer, size_t size);
/**
Reads a 16 bit unsigned integer from the stream.
*/
wxUint16 Read16();
/**
Reads 16 bit unsigned integers from the stream in a specified buffer.
The amount of 16 bit unsigned integers to read is specified by the
@a size variable.
*/
void Read16(wxUint16* buffer, size_t size);
/**
Reads a 32 bit unsigned integer from the stream.
*/
wxUint32 Read32();
/**
Reads 32 bit unsigned integers from the stream in a specified buffer.
The amount of 32 bit unsigned integers to read is specified by the
@a size variable.
*/
void Read32(wxUint32* buffer, size_t size);
/**
Reads a 64 bit unsigned integer from the stream.
*/
wxUint64 Read64();
/**
Reads 64 bit unsigned integers from the stream in a specified buffer.
The amount of 64 bit unsigned integers to read is specified by the
@a size variable.
*/
void Read64(wxUint64* buffer, size_t size);
/**
Reads a double (IEEE encoded) from the stream.
*/
double ReadDouble();
/**
Reads double data (IEEE encoded) from the stream in a specified buffer.
The amount of doubles to read is specified by the @a size variable.
*/
void ReadDouble(double* buffer, size_t size);
//@}
/**
Reads a string from a stream. Actually, this function first reads a long
integer specifying the length of the string (without the last null character)
and then reads the string.
In Unicode build of wxWidgets, the fuction first reads multibyte (char*)
string from the stream and then converts it to Unicode using the @e conv
object passed to constructor and returns the result as wxString. You are
responsible for using the same convertor as when writing the stream.
See also wxDataOutputStream::WriteString.
Reads a string from a stream. Actually, this function first reads a
long integer specifying the length of the string (without the last null
character) and then reads the string.
In Unicode build of wxWidgets, the fuction first reads multibyte
(char*) string from the stream and then converts it to Unicode using
the @e conv object passed to constructor and returns the result as
wxString. You are responsible for using the same convertor as when
writing the stream.
@see wxDataOutputStream::WriteString()
*/
wxString ReadString();
};

File diff suppressed because it is too large Load Diff

View File

@@ -11,29 +11,29 @@
@wxheader{dcbuffer.h}
This class provides a simple way to avoid flicker: when drawing on it,
everything is in fact first drawn on an in-memory buffer (a
wxBitmap) and then copied to the screen, using the
associated wxDC, only once, when this object is destroyed. wxBufferedDC itself
is typically associated with wxClientDC, if you want to
use it in your @c EVT_PAINT handler, you should look at
wxBufferedPaintDC instead.
everything is in fact first drawn on an in-memory buffer (a wxBitmap) and
then copied to the screen, using the associated wxDC, only once, when this
object is destroyed. wxBufferedDC itself is typically associated with
wxClientDC, if you want to use it in your @c EVT_PAINT handler, you should
look at wxBufferedPaintDC instead.
When used like this, a valid @e dc must be specified in the constructor
When used like this, a valid @e DC must be specified in the constructor
while the @e buffer bitmap doesn't have to be explicitly provided, by
default this class will allocate the bitmap of required size itself. However
using a dedicated bitmap can speed up the redrawing process by eliminating the
repeated creation and destruction of a possibly big bitmap. Otherwise,
wxBufferedDC can be used in the same way as any other device context.
default this class will allocate the bitmap of required size itself.
However using a dedicated bitmap can speed up the redrawing process by
eliminating the repeated creation and destruction of a possibly big bitmap.
Otherwise, wxBufferedDC can be used in the same way as any other device
context.
There is another possible use for wxBufferedDC is to use it to maintain a
backing store for the window contents. In this case, the associated @e dc
backing store for the window contents. In this case, the associated @e DC
may be @NULL but a valid backing store bitmap should be specified.
Finally, please note that GTK+ 2.0 as well as OS X provide double buffering
themselves natively. You can either use wxWindow::IsDoubleBuffered
to determine whether you need to use buffering or not, or use
wxAutoBufferedPaintDC to avoid needless double
buffering on the systems which already do it automatically.
themselves natively. You can either use wxWindow::IsDoubleBuffered() to
determine whether you need to use buffering or not, or use
wxAutoBufferedPaintDC to avoid needless double buffering on the systems
which already do it automatically.
@library{wxcore}
@category{dc}
@@ -43,36 +43,35 @@
class wxBufferedDC : public wxMemoryDC
{
public:
/**
Default constructor. You must call one of the Init() methods later in
order to use the device context.
*/
wxBufferedDC();
//@{
/**
If you use the first, default, constructor, you must call one of the
Init() methods later in order to use the object.
The other constructors initialize the object immediately and @c Init()
must not be called after using them.
Creates a buffer for the provided @dc. Init() must not be called when
using this constructor.
@param dc
The underlying DC: everything drawn to this object will be
flushed to this DC when this object is destroyed. You may pass @NULL
in order to just initialize the buffer, and not flush it.
The underlying DC: everything drawn to this object will be flushed
to this DC when this object is destroyed. You may pass @NULL in
order to just initialize the buffer, and not flush it.
@param area
The size of the bitmap to be used for buffering (this bitmap is
created internally when it is not given explicitly).
@param buffer
Explicitly provided bitmap to be used for buffering: this is
the most efficient solution as the bitmap doesn't have to be recreated each
time but it also requires more memory as the bitmap is never freed. The
bitmap
should have appropriate size, anything drawn outside of its bounds is
clipped.
Explicitly provided bitmap to be used for buffering: this is the
most efficient solution as the bitmap doesn't have to be recreated
each time but it also requires more memory as the bitmap is never
freed. The bitmap should have appropriate size, anything drawn
outside of its bounds is clipped.
@param style
wxBUFFER_CLIENT_AREA to indicate that just the client area of
the window is buffered, or wxBUFFER_VIRTUAL_AREA to indicate that the
buffer bitmap
covers the virtual area (in which case PrepareDC is automatically called
for the actual window
device context).
wxBUFFER_CLIENT_AREA to indicate that just the client area of the
window is buffered, or wxBUFFER_VIRTUAL_AREA to indicate that the
buffer bitmap covers the virtual area.
*/
wxBufferedDC();
wxBufferedDC(wxDC* dc, const wxSize& area,
int style = wxBUFFER_CLIENT_AREA);
wxBufferedDC(wxDC* dc, wxBitmap& buffer,
@@ -80,15 +79,15 @@ public:
//@}
/**
Copies everything drawn on the DC so far to the underlying DC associated with
this object, if any.
Copies everything drawn on the DC so far to the underlying DC
associated with this object, if any.
*/
~wxBufferedDC();
//@{
/**
These functions initialize the object created using the default constructor.
Please see @ref ctor() "constructors documentation" for details.
Initializes the object created using the default constructor. Please
see the constructors for parameter details.
*/
void Init(wxDC* dc, const wxSize& area,
int style = wxBUFFER_CLIENT_AREA);
@@ -103,24 +102,24 @@ public:
@class wxAutoBufferedPaintDC
@wxheader{dcbuffer.h}
This wxDC derivative can be used inside of an @c OnPaint() event handler to
achieve
double-buffered drawing. Just create an object of this class instead of
wxPaintDC
and make sure wxWindow::SetBackgroundStyle is called
with wxBG_STYLE_CUSTOM somewhere in the class initialization code, and that's
all you have
to do to (mostly) avoid flicker.
This wxDC derivative can be used inside of an @c EVT_PAINT() event handler
to achieve double-buffered drawing. Just use this class instead of
wxPaintDC and make sure wxWindow::SetBackgroundStyle() is called with
wxBG_STYLE_CUSTOM somewhere in the class initialization code, and that's
all you have to do to (mostly) avoid flicker.
The difference between wxBufferedPaintDC and this class,
is the lightweigthness - on platforms which have native double-buffering,
wxAutoBufferedPaintDC is simply
a typedef of wxPaintDC. Otherwise, it is a typedef of wxBufferedPaintDC.
The difference between wxBufferedPaintDC and this class is that this class
won't double-buffer on platforms which have native double-buffering
already, avoiding any unneccessary buffering to avoid flicker.
wxAutoBufferedPaintDC is simply a typedef of wxPaintDC on platforms that
have native double-buffering, otherwise, it is a typedef of
wxBufferedPaintDC.
@library{wxbase}
@category{dc}
@see wxDC, wxBufferedPaintDC
@see wxDC, wxBufferedPaintDC, wxPaintDC
*/
class wxAutoBufferedPaintDC : public wxBufferedPaintDC
{
@@ -137,38 +136,34 @@ public:
@class wxBufferedPaintDC
@wxheader{dcbuffer.h}
This is a subclass of wxBufferedDC which can be used
inside of an @c OnPaint() event handler. Just create an object of this class
instead
of wxPaintDC and make sure wxWindow::SetBackgroundStyle
is called with wxBG_STYLE_CUSTOM somewhere in the class initialization code,
and that's all
you have to do to (mostly) avoid flicker. The only thing to watch out for is
that if you are
using this class together with wxScrolledWindow, you probably
do @b not want to call wxScrolledWindow::PrepareDC on it as it
already does this internally for the real underlying wxPaintDC.
This is a subclass of wxBufferedDC which can be used inside of an
@c EVT_PAINT() event handler to achieve double-buffered drawing. Just use
this class instead of wxPaintDC and make sure
wxWindow::SetBackgroundStyle() is called with wxBG_STYLE_CUSTOM somewhere
in the class initialization code, and that's all you have to do to (mostly)
avoid flicker. The only thing to watch out for is that if you are using
this class together with wxScrolled, you probably do @b not want to call
wxScrolled::PrepareDC() on it as it already does this internally for the
real underlying wxPaintDC.
@library{wxcore}
@category{dc}
@see wxDC, wxBufferedDC, wxAutoBufferedPaintDC
@see wxDC, wxBufferedDC, wxAutoBufferedPaintDC, wxPaintDC
*/
class wxBufferedPaintDC : public wxBufferedDC
{
public:
//@{
/**
As with @ref wxBufferedDC::ctor wxBufferedDC, you may either provide the
bitmap to be used for buffering or let this object create one internally (in
the latter case, the size of the client part of the window is used).
Pass wxBUFFER_CLIENT_AREA for the @a style parameter to indicate that just the
client area of
the window is buffered, or wxBUFFER_VIRTUAL_AREA to indicate that the buffer
bitmap
covers the virtual area (in which case PrepareDC is automatically called for
the actual window
device context).
As with wxBufferedDC, you may either provide the bitmap to be used for
buffering or let this object create one internally (in the latter case,
the size of the client part of the window is used).
Pass wxBUFFER_CLIENT_AREA for the @a style parameter to indicate that
just the client area of the window is buffered, or
wxBUFFER_VIRTUAL_AREA to indicate that the buffer bitmap covers the
virtual area.
*/
wxBufferedPaintDC(wxWindow* window, wxBitmap& buffer,
int style = wxBUFFER_CLIENT_AREA);
@@ -177,8 +172,9 @@ public:
//@}
/**
Copies everything drawn on the DC so far to the window associated with this
object, using a wxPaintDC.
Copies everything drawn on the DC so far to the window associated with
this object, using a wxPaintDC.
*/
~wxBufferedPaintDC();
};

View File

@@ -43,7 +43,7 @@ class wxHtmlWindow : public wxScrolledWindow
public:
//@{
/**
Constructor. The parameters are the same as for the wxScrolledWindow
Constructor. The parameters are the same as wxScrolled::wxScrolled()
constructor.
@param style
@@ -289,7 +289,7 @@ public:
/**
Selects the line of text that @a pos points at. Note that @e pos
is relative to the top of displayed page, not to window's origin, use
wxScrolledWindow::CalcUnscrolledPosition
wxScrolled::CalcUnscrolledPosition()
to convert physical coordinate.
@see SelectAll(), SelectWord()
@@ -299,7 +299,7 @@ public:
/**
Selects the word at position @e pos. Note that @e pos
is relative to the top of displayed page, not to window's origin, use
wxScrolledWindow::CalcUnscrolledPosition
wxScrolled::CalcUnscrolledPosition()
to convert physical coordinate.
@see SelectAll(), SelectLine()

View File

@@ -24,10 +24,9 @@
@library{wxcore}
@category{ctrl}
@appearance{scrollbar.png}
<!-- @appearance{scrollbar.png} -->
@see @ref overview_scrollingoverview "Scrolling overview", @ref
overview_eventhandlingoverview, wxScrolledWindow
@see @ref overview_scrolling, @ref overview_eventhandling, wxScrolled
*/
class wxScrollBar : public wxControl
{

View File

@@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
// Name: scrolwin.h
// Purpose: interface of wxScrolledWindow
// Purpose: interface of wxScrolled template
// Author: wxWidgets team
// RCS-ID: $Id$
// Licence: wxWindows license
@@ -9,7 +9,7 @@
/**
@wxheader{scrolwin.h}
The wxScrolled<T> class manages scrolling for its client area, transforming
The wxScrolled class manages scrolling for its client area, transforming
the coordinates according to the scrollbar positions, and setting the
scroll positions, thumb sizes and ranges according to the area in view.
@@ -26,8 +26,8 @@
implementating scrollable controls such as tree or list controls.
Starting from version 2.4 of wxWidgets, there are several ways to use a
wxScrolled<T>. In particular, there are now three ways to set the
size of the scrolling area:
wxScrolled. In particular, there are now three ways to set the size of the
scrolling area:
One way is to set the scrollbars directly using a call to SetScrollbars().
This is the way it used to be in any previous version of wxWidgets and it
@@ -42,7 +42,7 @@
The most automatic and newest way is to simply let sizers determine the
scrolling area. This is now the default when you set an interior sizer into
a wxScrolled<T> with wxWindow::SetSizer(). The scrolling area will be
a wxScrolled with wxWindow::SetSizer(). The scrolling area will be
set to the size requested by the sizer and the scrollbars will be assigned
for each orientation according to the need for them and the scrolling
increment set by SetScrollRate(). As above, scrolling is only enabled in
@@ -59,18 +59,18 @@
wxWindow::SetVirtualSizeHints() with wxWindow::SetMinVirtualSize() or
similar and remove it entirely in future.
As with all windows, an application can draw onto a wxScrolled<T> using
a @ref overview_dcoverview "device context".
As with all windows, an application can draw onto a wxScrolled using a
@ref overview_dc "device context".
You have the option of handling the OnPaint handler or overriding the
wxScrolled<T>::OnDraw() function, which is passed a pre-scrolled device
context (prepared by wxScrolled<T>::DoPrepareDC()).
wxScrolled::OnDraw() function, which is passed a pre-scrolled device
context (prepared by wxScrolled::DoPrepareDC()).
If you don't wish to calculate your own scrolling, you must call
DoPrepareDC() when not drawing from within OnDraw(), to set the device
origin for the device context according to the current scroll position.
A wxScrolled<T> will normally scroll itself and therefore its child windows
A wxScrolled will normally scroll itself and therefore its child windows
as well. It might however be desired to scroll a different window than
itself: e.g. when designing a spreadsheet, you will normally only have to
scroll the (usually white) cell area, whereas the (usually grey) label area
@@ -92,15 +92,15 @@
@endStyleTable
@remarks
Use wxScrolled<T> for applications where the user scrolls by a fixed
amount, and where a 'page' can be interpreted to be the current visible
portion of the window. For more sophisticated applications, use the
wxScrolled<T> implementation as a guide to build your own scroll
behaviour or use wxVScrolledWindow or its variants.
Use wxScrolled for applications where the user scrolls by a fixed amount,
and where a 'page' can be interpreted to be the current visible portion of
the window. For more sophisticated applications, use the wxScrolled
implementation as a guide to build your own scroll behaviour or use
wxVScrolledWindow or its variants.
@since wxScrolled<T> template exists since version 2.9.0. In older
versions, only ::wxScrolledWindow (equivalent of wxScrolled<wxPanel>)
was available.
@since wxScrolled template exists since version 2.9.0. In older versions,
only ::wxScrolledWindow (equivalent of wxScrolled<wxPanel>) was
available.
@library{wxcore}
@category{miscwnd}
@@ -129,7 +129,7 @@ public:
Window size. If a size of @c wxDefaultSize is specified then the
window is sized appropriately.
@param style
Window style. See wxScrolled<T>.
Window style. See wxScrolled.
@param name
Window name.
@@ -168,7 +168,7 @@ public:
/**
Creates the window for two-step construction. Derived classes
should call or replace this function. See wxScrolled<T> constructor
should call or replace this function. See wxScrolled::wxScrolled()
for details.
*/
bool Create(wxWindow* parent, wxWindowID id = -1,
@@ -347,7 +347,7 @@ public:
window->SetScrollbars(20, 20, 50, 50);
@endcode
wxScrolled<T> manages the page size itself, using the current client
wxScrolled manages the page size itself, using the current client
window size as the page size.
Note that for more sophisticated scrolling applications, for example
@@ -392,20 +392,20 @@ public:
/**
Scrolled window derived from wxPanel.
See wxScrolled<T> for detailed description.
See wxScrolled for detailed description.
@note Note that because this class derives from wxPanel, it shares its
behavior with regard to TAB traversal and focus handling (in
particular, it forwards focus to its children). If you don't want
this behaviour, use ::wxScrolledCanvas instead.
@note wxScrolledWindow is an alias for wxScrolled<wxPanel> since version
@note ::wxScrolledWindow is an alias for wxScrolled<wxPanel> since version
2.9.0. In older versions, it was a standalone class.
@library{wxcore}
@category{miscwnd}
@see wxScrolled, wxScrolledCanvas
@see wxScrolled, ::wxScrolledCanvas
*/
typedef wxScrolled<wxPanel> wxScrolledWindow;

View File

@@ -1016,7 +1016,7 @@ public:
in
windows which manage it.
@see wxScrolledWindow::SetScrollbars, SetVirtualSizeHints()
@see wxScrolled::SetScrollbars(), SetVirtualSizeHints()
*/
void FitInside(wxWindow* window);
@@ -1347,7 +1347,7 @@ public:
minimal size. For windows with managed scrollbars this will set them
appropriately.
@see wxScrolledWindow::SetScrollbars
@see wxScrolled::SetScrollbars()
*/
void SetVirtualSizeHints(wxWindow* window);

View File

@@ -55,7 +55,7 @@
@library{wxbase}
@category{miscwnd}
@see @ref overview_wxtoolbaroverview "Toolbar overview", wxScrolledWindow
@see @ref overview_toolbar
*/
class wxToolBar : public wxControl
{

View File

@@ -589,11 +589,10 @@ public:
are shown on the screen need to be measured; or even "vertical", because
this class only supports scrolling vertically.
In any case, this is a generalization of the
wxScrolledWindow class which can be only used when
all rows have the same heights. It lacks some other wxScrolledWindow features
however, notably it can't scroll only a rectangle of the window and not its
entire client area.
In any case, this is a generalization of wxScrolled which can be only used
when all rows have the same heights. It lacks some other wxScrolled
features however, notably it can't scroll only a rectangle of the window
and not its entire client area.
To use this class, you need to derive from it and implement the
wxVarVScrollHelper::OnGetRowHeight pure virtual
@@ -702,11 +701,10 @@ public:
the widths of all columns in advance -- only those which are shown on the
screen need to be measured.
In any case, this is a generalization of the
wxScrolledWindow class which can be only used when
all columns have the same widths. It lacks some other wxScrolledWindow features
however, notably it can't scroll only a rectangle of the window and not its
entire client area.
In any case, this is a generalization of wxScrolled which can be only used
when all columns have the same widths. It lacks some other wxScrolled
features however, notably it can't scroll only a rectangle of the window
and not its entire client area.
To use this class, you need to derive from it and implement the
wxVarHScrollHelper::OnGetColumnWidth pure virtual
@@ -782,10 +780,10 @@ public:
scroll both axis simultaneously with both variable row heights and variable
column widths.
This is a generalization of the wxScrolledWindow
class which can be only used when all rows and columns are the same size. It
lacks some other wxScrolledWindow features however, notably it can't scroll
only a rectangle of the window and not its entire client area.
In any case, this is a generalization of wxScrolled which can be only used
when all rows and columns are the same size. It lacks some other wxScrolled
features however, notably it can't scroll only a rectangle of the window
and not its entire client area.
To use this class, you must derive from it and implement both the
wxVarVScrollHelper::OnGetRowHeight and

View File

@@ -1740,8 +1740,8 @@ public:
on top/bottom and nothing was done.
@remarks This function is currently only implemented under MSW and
wxTextCtrl under wxGTK (it also works for
wxScrolledWindow derived classes under all platforms).
wxTextCtrl under wxGTK (it also works for wxScrolled classes
under all platforms).
@see ScrollPages()
*/
@@ -1772,8 +1772,8 @@ public:
scrolled (this is always the case under wxGTK which doesn't support this
parameter)
@remarks Note that you can often use wxScrolledWindow instead of using
this function directly.
@remarks Note that you can often use wxScrolled instead of using this
function directly.
*/
virtual void ScrollWindow(int dx, int dy,
const wxRect* rect = NULL);
@@ -2194,8 +2194,8 @@ public:
window: it is up to the application to take note of
scrollbar attributes and redraw contents accordingly.
@see SetScrollbar(), GetScrollPos(), GetScrollThumb(),
wxScrollBar, wxScrolledWindow
@see SetScrollbar(), GetScrollPos(), GetScrollThumb(), wxScrollBar,
wxScrolled
*/
virtual void SetScrollPos(int orientation, int pos,
bool refresh = true);
@@ -2219,8 +2219,7 @@ public:
font. The window is sized so that you can only see 16
lines at a time.
@see @ref overview_scrollingoverview "Scrolling overview", wxScrollBar,
wxScrolledWindow, wxScrollWinEvent
@see @ref overview_scrolling, wxScrollBar, wxScrolled, wxScrollWinEvent
*/
virtual void SetScrollbar(int orientation, int position,
int thumbSize,