Ocean
FrameWindow.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_FRAME_WINDOW_H
9 #define META_OCEAN_PLATFORM_WXWIDGETS_FRAME_WINDOW_H
10 
12 
14 
15 namespace Ocean
16 {
17 
18 namespace Platform
19 {
20 
21 namespace WxWidgets
22 {
23 
24 /**
25  * This class implements the main window.
26  * @ingroup platformwxw
27  */
28 class OCEAN_PLATFORM_WXWIDGETS_EXPORT FrameWindow : public BitmapWindow
29 {
30  public:
31 
32  /**
33  * Creates a new main window object.
34  * @param title Tile of the frame window to be created
35  * @param parent Parent window
36  * @param pos Position of the frame window
37  * @param size Size of the frame window
38  */
39  FrameWindow(const wxString& title, wxWindow* parent = nullptr, const wxPoint& pos = wxPoint(-1, -1), const wxSize& size = wxSize(-1, -1));
40 
41  /**
42  * Sets of changes the frame of this frame window.
43  * @param frame The frame to be converted into a bitmap and then changed as display bitmap
44  * @return True, if succeeded
45  */
46  virtual bool setFrame(const Frame& frame);
47 
48  protected:
49 
50  /// Frame medium to be displayed.
52 
53  /// Timestamp of the current frame.
55 };
56 
57 }
58 
59 }
60 
61 }
62 
63 #endif // META_OCEAN_PLATFORM_WXWIDGETS_FRAME_WINDOW_H
This class implements Ocean's image class.
Definition: Frame.h:1792
This class implements the main window.
Definition: wxwidgets/BitmapWindow.h:31
This class implements the main window.
Definition: FrameWindow.h:29
FrameWindow(const wxString &title, wxWindow *parent=nullptr, const wxPoint &pos=wxPoint(-1, -1), const wxSize &size=wxSize(-1, -1))
Creates a new main window object.
Frame frame_
Frame medium to be displayed.
Definition: FrameWindow.h:51
virtual bool setFrame(const Frame &frame)
Sets of changes the frame of this frame window.
Timestamp frameTimestamp_
Timestamp of the current frame.
Definition: FrameWindow.h:54
This class implements a timestamp.
Definition: Timestamp.h:36
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15