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
10
namespace
flutter
{
11
class
HostWindowRegular
:
public
HostWindowSized
{
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,
25
FlutterWindowsEngine
*
engine
,
26
const
WindowSizeRequest
& preferred_size,
27
const
BoxConstraints
& constraints,
28
LPCWSTR title,
29
bool
sized_to_content
,
30
bool
resizable);
31
32
~HostWindowRegular
()
override
;
33
34
private
:
35
static
Rect
GetInitialRect(
FlutterWindowsEngine
*
engine
,
36
const
WindowSizeRequest
& preferred_size,
37
const
BoxConstraints
& constraints,
38
bool
sized_to_content
,
39
bool
resizable);
40
};
41
}
// namespace flutter
42
43
#endif
// FLUTTER_SHELL_PLATFORM_WINDOWS_HOST_WINDOW_REGULAR_H_
flutter::BoxConstraints
Definition
geometry.h:83
flutter::FlutterWindowsEngine
Definition
flutter_windows_engine.h:92
flutter::HostWindowRegular
Definition
host_window_regular.h:11
flutter::HostWindowRegular::~HostWindowRegular
~HostWindowRegular() override
Definition
host_window_regular.cc:52
flutter::HostWindowSized
Definition
host_window_sized.h:26
flutter::Rect
Definition
geometry.h:56
flutter::WindowManager
Definition
window_manager.h:118
engine
FlutterEngine engine
Definition
main.cc:84
sized_to_content
G_BEGIN_DECLS gboolean sized_to_content
Definition
fl_view_renderer.h:40
host_window_sized.h
flutter
Definition
asset_manager.cc:10
flutter::WindowSizeRequest
Definition
window_manager.h:26
shell
platform
windows
host_window_regular.h
Generated on Sun Jul 5 2026 07:45:21 for Flutter Engine Uber Docs by
1.9.8