Flutter Engine
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.

Referenced by FlutterDesktopCreateWindow().

41  {
42  return nullptr;
43  }

◆ DestroyWindow()

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

Definition at line 46 of file stub_flutter_glfw_api.h.

Referenced by FlutterDesktopDestroyWindow().

46 {}

◆ GetTestStub()

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

Definition at line 18 of file stub_flutter_glfw_api.cc.

References s_stub_implementation.

Referenced by flutter::testing::ScopedStubFlutterGlfwApi::ScopedStubFlutterGlfwApi().

18  {
19  return s_stub_implementation;
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.

Referenced by FlutterDesktopWindowGetFrame().

58  {
59  x = y = width = height = 0;
60  }
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.

Referenced by FlutterDesktopWindowGetScaleFactor().

66 { return 1.0; }

◆ Init()

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

Definition at line 33 of file stub_flutter_glfw_api.h.

Referenced by FlutterDesktopInit().

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.

Referenced by FlutterDesktopPluginRegistrarEnableInputBlocking().

93 {}

◆ RunEngine()

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

Definition at line 81 of file stub_flutter_glfw_api.h.

Referenced by FlutterDesktopRunEngine().

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.

Referenced by FlutterDesktopRunEngineEventLoopWithTimeout().

87 {}

◆ RunWindowEventLoopWithTimeout()

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

Definition at line 76 of file stub_flutter_glfw_api.h.

Referenced by FlutterDesktopRunWindowEventLoopWithTimeout().

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.

Referenced by FlutterDesktopWindowSetHoverEnabled().

49 {}

◆ SetPixelRatioOverride()

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

Definition at line 69 of file stub_flutter_glfw_api.h.

Referenced by FlutterDesktopWindowSetPixelRatioOverride().

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.

Referenced by FlutterDesktopWindowSetSizeLimits().

73  {}

◆ SetTestStub()

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

Definition at line 13 of file stub_flutter_glfw_api.cc.

Referenced by flutter::testing::ScopedStubFlutterGlfwApi::ScopedStubFlutterGlfwApi(), and flutter::testing::ScopedStubFlutterGlfwApi::~ScopedStubFlutterGlfwApi().

13  {
14  s_stub_implementation = stub;
15 }
static flutter::testing::StubFlutterGlfwApi * s_stub_implementation

◆ 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.

Referenced by FlutterDesktopWindowSetFrame().

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.

Referenced by FlutterDesktopWindowSetIcon().

55 {}

◆ SetWindowTitle()

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

Definition at line 52 of file stub_flutter_glfw_api.h.

Referenced by FlutterDesktopWindowSetTitle().

52 {}

◆ ShutDownEngine()

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

Definition at line 90 of file stub_flutter_glfw_api.h.

Referenced by FlutterDesktopShutDownEngine().

90 { return true; }

◆ Terminate()

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

Definition at line 36 of file stub_flutter_glfw_api.h.

Referenced by FlutterDesktopTerminate().

36 {}

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