Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
Loading...
Searching...
No Matches
host_window_tooltip.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_TOOLTIP_H_
6
#define FLUTTER_SHELL_PLATFORM_WINDOWS_HOST_WINDOW_TOOLTIP_H_
7
8
#include <cstdint>
9
#include "
host_window_sized.h
"
10
#include "
shell/platform/windows/flutter_windows_view.h
"
11
#include "
shell/platform/windows/window_manager.h
"
12
13
namespace
flutter
{
14
class
HostWindowTooltip
:
public
HostWindowSized
{
15
public
:
16
// Creates a tooltip window.
17
HostWindowTooltip
(
WindowManager
* window_manager,
18
FlutterWindowsEngine
*
engine
,
19
const
BoxConstraints
& constraints,
20
GetWindowPositionCallback
get_position_callback,
21
HWND parent);
22
23
// Update the position of the tooltip window based off the current size
24
// of the tooltip.
25
void
UpdatePosition
();
26
27
~HostWindowTooltip
()
override
;
28
29
protected
:
30
void
ApplyContentSize
(int32_t physical_width,
31
int32_t physical_height)
override
;
32
33
LRESULT
HandleMessage
(HWND hwnd,
34
UINT
message
,
35
WPARAM
wparam,
36
LPARAM
lparam)
override
;
37
38
private
:
39
WindowRect
GetWorkArea()
const override
;
40
41
GetWindowPositionCallback
get_position_callback_;
42
HWND parent_;
43
Isolate
isolate_;
44
};
45
}
// namespace flutter
46
47
#endif
// FLUTTER_SHELL_PLATFORM_WINDOWS_HOST_WINDOW_TOOLTIP_H_
flutter::BoxConstraints
Definition
geometry.h:83
flutter::FlutterWindowsEngine
Definition
flutter_windows_engine.h:92
flutter::HostWindowSized
Definition
host_window_sized.h:26
flutter::HostWindowTooltip
Definition
host_window_tooltip.h:14
flutter::HostWindowTooltip::~HostWindowTooltip
~HostWindowTooltip() override
Definition
host_window_tooltip.cc:43
flutter::HostWindowTooltip::HandleMessage
LRESULT HandleMessage(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) override
Definition
host_window_tooltip.cc:108
flutter::HostWindowTooltip::UpdatePosition
void UpdatePosition()
Definition
host_window_tooltip.cc:73
flutter::HostWindowTooltip::ApplyContentSize
void ApplyContentSize(int32_t physical_width, int32_t physical_height) override
Definition
host_window_tooltip.cc:51
flutter::Isolate
Definition
isolate_scope.h:15
flutter::WindowManager
Definition
window_manager.h:118
engine
FlutterEngine engine
Definition
main.cc:84
message
const char * message
Definition
fl_accessibility_handler.cc:21
flutter_windows_view.h
host_window_sized.h
flutter
Definition
asset_manager.cc:10
flutter::GetWindowPositionCallback
WindowRect *(* GetWindowPositionCallback)(const WindowSize &child_size, const WindowRect &parent_rect, const WindowRect &output_rect)
Definition
window_manager.h:73
flutter::WindowRect
Definition
window_manager.h:42
window_manager.h
LRESULT
LONG_PTR LRESULT
Definition
windows_types.h:61
UINT
unsigned int UINT
Definition
windows_types.h:32
LPARAM
LONG_PTR LPARAM
Definition
windows_types.h:60
WPARAM
UINT_PTR WPARAM
Definition
windows_types.h:59
shell
platform
windows
host_window_tooltip.h
Generated on Sun Jul 5 2026 07:45:21 for Flutter Engine Uber Docs by
1.9.8