Stop using object array for wxArrayVideoModes
This can be just a simple wxBaseArray. Also document this container, as it is returned from the public wxDisplay::GetModes().
This commit is contained in:
parent
5943b67d50
commit
16842b2b2f
3 changed files with 9 additions and 4 deletions
|
|
@ -21,7 +21,7 @@
|
|||
#include "wx/dynarray.h"
|
||||
#include "wx/vidmode.h"
|
||||
|
||||
WX_DECLARE_EXPORTED_OBJARRAY(wxVideoMode, wxArrayVideoModes);
|
||||
using wxArrayVideoModes = wxBaseArray<wxVideoMode>;
|
||||
|
||||
// default, uninitialized, video mode object
|
||||
extern WXDLLIMPEXP_DATA_CORE(const wxVideoMode) wxDefaultVideoMode;
|
||||
|
|
|
|||
|
|
@ -85,3 +85,11 @@ public:
|
|||
*/
|
||||
const wxVideoMode wxDefaultVideoMode;
|
||||
|
||||
/**
|
||||
A vector of video modes.
|
||||
|
||||
This class is actually a legacy container (see @ref overview_container for
|
||||
more details), but it can, and should be, handled as just a vector of
|
||||
wxVideoMode objects in the application code.
|
||||
*/
|
||||
using wxArrayVideoModes = std::vector<wxVideoMode>;
|
||||
|
|
|
|||
|
|
@ -32,9 +32,6 @@
|
|||
|
||||
#if wxUSE_DISPLAY
|
||||
|
||||
#include "wx/arrimpl.cpp"
|
||||
WX_DEFINE_OBJARRAY(wxArrayVideoModes)
|
||||
|
||||
const wxVideoMode wxDefaultVideoMode;
|
||||
|
||||
#endif // wxUSE_DISPLAY
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue