Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
flutter::testing::StubFlutterGlfwApi Class Reference

#include <stub_flutter_glfw_api.h>

Public Member Functions

virtual ~StubFlutterGlfwApi ()
 
virtual bool Init ()
 
virtual void Terminate ()
 
virtual FlutterDesktopWindowControllerRef CreateWindow (const FlutterDesktopWindowProperties &window_properties, const FlutterDesktopEngineProperties &engine_properties)
 
virtual void DestroyWindow ()
 
virtual void SetHoverEnabled (bool enabled)
 
virtual void SetWindowTitle (const char *title)
 
virtual void SetWindowIcon (uint8_t *pixel_data, int width, int height)
 
virtual void GetWindowFrame (int *x, int *y, int *width, int *height)
 
virtual void SetWindowFrame (int x, int y, int width, int height)
 
virtual double GetWindowScaleFactor ()
 
virtual void SetPixelRatioOverride (double pixel_ratio)
 
virtual void SetSizeLimits (FlutterDesktopSize minimum_size, FlutterDesktopSize maximum_size)
 
virtual bool RunWindowEventLoopWithTimeout (uint32_t millisecond_timeout)
 
virtual FlutterDesktopEngineRef RunEngine (const FlutterDesktopEngineProperties &properties)
 
virtual void RunEngineEventLoopWithTimeout (uint32_t millisecond_timeout)
 
virtual bool ShutDownEngine ()
 
virtual void PluginRegistrarEnableInputBlocking (const char *channel)
 

Static Public Member Functions

static void SetTestStub (StubFlutterGlfwApi *stub)
 
static StubFlutterGlfwApiGetTestStub ()
 

Detailed Description

Definition at line 21 of file stub_flutter_glfw_api.h.

Constructor & Destructor Documentation

◆ ~StubFlutterGlfwApi()

virtual flutter::testing::StubFlutterGlfwApi::~StubFlutterGlfwApi ( )
inlinevirtual

Definition at line 30 of file stub_flutter_glfw_api.h.

30{}

Member Function Documentation

◆ CreateWindow()

virtual FlutterDesktopWindowControllerRef flutter::testing::StubFlutterGlfwApi::CreateWindow ( const FlutterDesktopWindowProperties window_properties,
const FlutterDesktopEngineProperties engine_properties 
)
inlinevirtual

Definition at line 39 of file stub_flutter_glfw_api.h.

41 {
42 return nullptr;
43 }

◆ DestroyWindow()

virtual void flutter::testing::StubFlutterGlfwApi::DestroyWindow ( )
inlinevirtual

Definition at line 46 of file stub_flutter_glfw_api.h.

46{}

◆ GetTestStub()

StubFlutterGlfwApi * flutter::testing::StubFlutterGlfwApi::GetTestStub ( )
static

Definition at line 18 of file stub_flutter_glfw_api.cc.

18 {
20}
static flutter::testing::StubFlutterGlfwApi * s_stub_implementation

◆ GetWindowFrame()

virtual void flutter::testing::StubFlutterGlfwApi::GetWindowFrame ( int x,
int y,
int width,
int height 
)
inlinevirtual

Definition at line 58 of file stub_flutter_glfw_api.h.

58 {
59 x = y = width = height = 0;
60 }
double y
double x
int32_t height
int32_t width

◆ GetWindowScaleFactor()

virtual double flutter::testing::StubFlutterGlfwApi::GetWindowScaleFactor ( )
inlinevirtual

Definition at line 66 of file stub_flutter_glfw_api.h.

66{ return 1.0; }

◆ Init()

virtual bool flutter::testing::StubFlutterGlfwApi::Init ( )
inlinevirtual

Definition at line 33 of file stub_flutter_glfw_api.h.

33{ return true; }

◆ PluginRegistrarEnableInputBlocking()

virtual void flutter::testing::StubFlutterGlfwApi::PluginRegistrarEnableInputBlocking ( const char *  channel)
inlinevirtual

Definition at line 93 of file stub_flutter_glfw_api.h.

93{}

◆ RunEngine()

virtual FlutterDesktopEngineRef flutter::testing::StubFlutterGlfwApi::RunEngine ( const FlutterDesktopEngineProperties properties)
inlinevirtual

Definition at line 81 of file stub_flutter_glfw_api.h.

82 {
83 return nullptr;
84 }

◆ RunEngineEventLoopWithTimeout()

virtual void flutter::testing::StubFlutterGlfwApi::RunEngineEventLoopWithTimeout ( uint32_t  millisecond_timeout)
inlinevirtual

Definition at line 87 of file stub_flutter_glfw_api.h.

87{}

◆ RunWindowEventLoopWithTimeout()

virtual bool flutter::testing::StubFlutterGlfwApi::RunWindowEventLoopWithTimeout ( uint32_t  millisecond_timeout)
inlinevirtual

Definition at line 76 of file stub_flutter_glfw_api.h.

76 {
77 return true;
78 }

◆ SetHoverEnabled()

virtual void flutter::testing::StubFlutterGlfwApi::SetHoverEnabled ( bool  enabled)
inlinevirtual

Definition at line 49 of file stub_flutter_glfw_api.h.

49{}

◆ SetPixelRatioOverride()

virtual void flutter::testing::StubFlutterGlfwApi::SetPixelRatioOverride ( double  pixel_ratio)
inlinevirtual

Definition at line 69 of file stub_flutter_glfw_api.h.

69{}

◆ SetSizeLimits()

virtual void flutter::testing::StubFlutterGlfwApi::SetSizeLimits ( FlutterDesktopSize  minimum_size,
FlutterDesktopSize  maximum_size 
)
inlinevirtual

Definition at line 72 of file stub_flutter_glfw_api.h.

73 {}

◆ SetTestStub()

void flutter::testing::StubFlutterGlfwApi::SetTestStub ( StubFlutterGlfwApi stub)
static

Definition at line 13 of file stub_flutter_glfw_api.cc.

13 {
15}

◆ SetWindowFrame()

virtual void flutter::testing::StubFlutterGlfwApi::SetWindowFrame ( int  x,
int  y,
int  width,
int  height 
)
inlinevirtual

Definition at line 63 of file stub_flutter_glfw_api.h.

63{}

◆ SetWindowIcon()

virtual void flutter::testing::StubFlutterGlfwApi::SetWindowIcon ( uint8_t *  pixel_data,
int  width,
int  height 
)
inlinevirtual

Definition at line 55 of file stub_flutter_glfw_api.h.

55{}

◆ SetWindowTitle()

virtual void flutter::testing::StubFlutterGlfwApi::SetWindowTitle ( const char *  title)
inlinevirtual

Definition at line 52 of file stub_flutter_glfw_api.h.

52{}

◆ ShutDownEngine()

virtual bool flutter::testing::StubFlutterGlfwApi::ShutDownEngine ( )
inlinevirtual

Definition at line 90 of file stub_flutter_glfw_api.h.

90{ return true; }

◆ Terminate()

virtual void flutter::testing::StubFlutterGlfwApi::Terminate ( )
inlinevirtual

Definition at line 36 of file stub_flutter_glfw_api.h.

36{}

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