Flutter Engine
flutter::FlutterWindow Class Reference

#include <flutter_window.h>

Public Member Functions

 FlutterWindow (FlutterDesktopWindowRef window)
 
 ~FlutterWindow ()=default
 
 FlutterWindow (FlutterWindow const &)=delete
 
FlutterWindowoperator= (FlutterWindow const &)=delete
 
void SetHoverEnabled (bool enabled)
 
void SetTitle (const std::string &title)
 
void SetIcon (uint8_t *pixel_data, int width, int height)
 
WindowFrame GetFrame ()
 
void SetFrame (const WindowFrame &frame)
 
double GetScaleFactor ()
 
void SetPixelRatioOverride (double pixel_ratio)
 
void SetSizeLimits (FlutterDesktopSize minimum_size, FlutterDesktopSize maximum_size)
 

Detailed Description

Definition at line 26 of file flutter_window.h.

Constructor & Destructor Documentation

◆ FlutterWindow() [1/2]

flutter::FlutterWindow::FlutterWindow ( FlutterDesktopWindowRef  window)
inlineexplicit

Definition at line 28 of file flutter_window.h.

28 : window_(window) {}

◆ ~FlutterWindow()

flutter::FlutterWindow::~FlutterWindow ( )
default

◆ FlutterWindow() [2/2]

flutter::FlutterWindow::FlutterWindow ( FlutterWindow const &  )
delete

Member Function Documentation

◆ GetFrame()

WindowFrame flutter::FlutterWindow::GetFrame ( )
inline

Definition at line 61 of file flutter_window.h.

References FlutterDesktopWindowGetFrame(), flutter::WindowFrame::height, flutter::WindowFrame::left, flutter::WindowFrame::top, and flutter::WindowFrame::width.

61  {
62  WindowFrame frame = {};
63  FlutterDesktopWindowGetFrame(window_, &frame.left, &frame.top, &frame.width,
64  &frame.height);
65  return frame;
66  }
void FlutterDesktopWindowGetFrame(FlutterDesktopWindowRef flutter_window, int *x, int *y, int *width, int *height)

◆ GetScaleFactor()

double flutter::FlutterWindow::GetScaleFactor ( )
inline

Definition at line 79 of file flutter_window.h.

References FlutterDesktopWindowGetScaleFactor().

79  {
80  return FlutterDesktopWindowGetScaleFactor(window_);
81  }
double FlutterDesktopWindowGetScaleFactor(FlutterDesktopWindowRef flutter_window)

◆ operator=()

FlutterWindow& flutter::FlutterWindow::operator= ( FlutterWindow const &  )
delete

◆ SetFrame()

void flutter::FlutterWindow::SetFrame ( const WindowFrame frame)
inline

Definition at line 70 of file flutter_window.h.

References FlutterDesktopWindowSetFrame(), flutter::WindowFrame::height, flutter::WindowFrame::left, flutter::WindowFrame::top, and flutter::WindowFrame::width.

70  {
71  FlutterDesktopWindowSetFrame(window_, frame.left, frame.top, frame.width,
72  frame.height);
73  }
void FlutterDesktopWindowSetFrame(FlutterDesktopWindowRef flutter_window, int x, int y, int width, int height)

◆ SetHoverEnabled()

void flutter::FlutterWindow::SetHoverEnabled ( bool  enabled)
inline

Definition at line 41 of file flutter_window.h.

References FlutterDesktopWindowSetHoverEnabled().

41  {
42  FlutterDesktopWindowSetHoverEnabled(window_, enabled);
43  }
void FlutterDesktopWindowSetHoverEnabled(FlutterDesktopWindowRef flutter_window, bool enabled)

◆ SetIcon()

void flutter::FlutterWindow::SetIcon ( uint8_t *  pixel_data,
int  width,
int  height 
)
inline

Definition at line 55 of file flutter_window.h.

References FlutterDesktopWindowSetIcon().

55  {
56  FlutterDesktopWindowSetIcon(window_, pixel_data, width, height);
57  }
void FlutterDesktopWindowSetIcon(FlutterDesktopWindowRef flutter_window, uint8_t *pixel_data, int width, int height)
int32_t height
int32_t width

◆ SetPixelRatioOverride()

void flutter::FlutterWindow::SetPixelRatioOverride ( double  pixel_ratio)
inline

Definition at line 87 of file flutter_window.h.

References FlutterDesktopWindowSetPixelRatioOverride().

87  {
88  FlutterDesktopWindowSetPixelRatioOverride(window_, pixel_ratio);
89  }
void FlutterDesktopWindowSetPixelRatioOverride(FlutterDesktopWindowRef flutter_window, double pixel_ratio)

◆ SetSizeLimits()

void flutter::FlutterWindow::SetSizeLimits ( FlutterDesktopSize  minimum_size,
FlutterDesktopSize  maximum_size 
)
inline

Definition at line 93 of file flutter_window.h.

References FlutterDesktopWindowSetSizeLimits().

94  {
95  FlutterDesktopWindowSetSizeLimits(window_, minimum_size, maximum_size);
96  }
void FlutterDesktopWindowSetSizeLimits(FlutterDesktopWindowRef flutter_window, FlutterDesktopSize minimum_size, FlutterDesktopSize maximum_size)

◆ SetTitle()

void flutter::FlutterWindow::SetTitle ( const std::string &  title)
inline

Definition at line 46 of file flutter_window.h.

References FlutterDesktopWindowSetTitle().

46  {
47  FlutterDesktopWindowSetTitle(window_, title.c_str());
48  }
void FlutterDesktopWindowSetTitle(FlutterDesktopWindowRef flutter_window, const char *title)

The documentation for this class was generated from the following file: