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"
12
13namespace flutter {
15 public:
16 // Creates a tooltip window.
17 HostWindowTooltip(WindowManager* window_manager,
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,
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_
LRESULT HandleMessage(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) override
void ApplyContentSize(int32_t physical_width, int32_t physical_height) override
FlutterEngine engine
Definition main.cc:84
const char * message
WindowRect *(* GetWindowPositionCallback)(const WindowSize &child_size, const WindowRect &parent_rect, const WindowRect &output_rect)
LONG_PTR LRESULT
unsigned int UINT
LONG_PTR LPARAM
UINT_PTR WPARAM