Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
host_window_regular.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_HOST_WINDOW_REGULAR_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_HOST_WINDOW_REGULAR_H_
7
8#include "host_window_sized.h"
9
10namespace flutter {
12 public:
13 // Creates a regular window.
14 //
15 // If |sized_to_content| is true, the window is initially sized to the
16 // minimum of |constraints|. The window will automatically resize to its
17 // rendered content after each frame. If |resizable| is false, the window
18 // will continue to track content size after the initial sizing and its
19 // resize border is removed. If |resizable| is true, the user may resize the
20 // window manually after the initial content-based sizing.
21 //
22 // If |sized_to_content| is false, the window is created with the size
23 // specified in |preferred_size|.
24 HostWindowRegular(WindowManager* window_manager,
26 const WindowSizeRequest& preferred_size,
27 const BoxConstraints& constraints,
28 LPCWSTR title,
29 bool sized_to_content,
30 bool resizable);
31
32 private:
33 static Rect GetInitialRect(FlutterWindowsEngine* engine,
34 const WindowSizeRequest& preferred_size,
35 const BoxConstraints& constraints,
36 bool sized_to_content,
37 bool resizable);
38};
39} // namespace flutter
40
41#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_HOST_WINDOW_REGULAR_H_
FlutterEngine engine
Definition main.cc:84