Ocean
wxwidgets/ImageList.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_PLATFORM_WXWIDGETS_IMAGE_LIST_H
9 #define META_OCEAN_PLATFORM_WXWIDGETS_IMAGE_LIST_H
10 
12 
13 #include "ocean/base/Frame.h"
14 
15 #include <wx/imaglist.h>
16 
17 namespace Ocean
18 {
19 
20 namespace Platform
21 {
22 
23 namespace WxWidgets
24 {
25 
26 /**
27  * This class implements an image list.
28  * @ingroup platformwxwidgets
29  */
30 class OCEAN_PLATFORM_WXWIDGETS_EXPORT ImageList : public wxImageList
31 {
32  public:
33 
34  /**
35  * Creates a new image list object.
36  */
37  ImageList() = default;
38 
39  /**
40  * Creates a new image list object from one large frame containing the individual images within the same row.
41  * The width of the given frame must be a multiple of the height of the given frame.
42  * @param frame The large frame containing all individual images, must be valid
43  * @param scaleFactor The scale factor converting the number of pixels in the (virtual) display coordinate system to the number of pixels in the (native/pyhsical) screen coordinate system, with range (0, infinity)
44  */
45  explicit ImageList(const Frame& frame, const double scaleFactor = 1.0);
46 };
47 
48 }
49 
50 }
51 
52 }
53 
54 #endif // META_OCEAN_PLATFORM_WXWIDGETS_IMAGE_LIST_H
This class implements Ocean's image class.
Definition: Frame.h:1760
This class implements an image list.
Definition: wxwidgets/ImageList.h:31
ImageList()=default
Creates a new image list object.
ImageList(const Frame &frame, const double scaleFactor=1.0)
Creates a new image list object from one large frame containing the individual images within the same...
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15