flutter

package
v0.0.0-...-c0c124a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2020 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	USE_ALTERNATIVE_OFFSCREEN_RENDERING = (runtime.GOOS == "windows" && os.Getenv("QT_ALT_RENDERING") != "false") || os.Getenv("QT_ALT_RENDERING") == "true"
	DEBUG                               = DEBUG_HOT || false
	DEBUG_HOT                           = false
	IGNORE_THREADS                      = true //TODO: make resizing thread safe; (race condition with the flutter and the main thread sharing the widgets openglcontext)
	TEST_RESIZING                       = false
)

Functions

func FlutterEngineRun

func FlutterEngineRun()

func FlutterEngineSendPlatformMessage

func FlutterEngineSendPlatformMessage(ch string, msg []byte)

func FlutterEngineSendPointerEvent

func FlutterEngineSendPointerEvent(phase C.FlutterPointerPhase, x int, y int)

func FlutterEngineSendPointerScrollEvent

func FlutterEngineSendPointerScrollEvent(x int, y int, xd int, yd int)

func FlutterEngineSendWindowMetricsEvent

func FlutterEngineSendWindowMetricsEvent(w, h int)

func MoveToCurrentThread

func MoveToCurrentThread(ctx *gui.QOpenGLContext)

func MoveToMainThread

func MoveToMainThread(ctx *gui.QOpenGLContext)

func RunOnMainBlocking

func RunOnMainBlocking(f func())

Types

type FlutterWidget

type FlutterWidget struct{ *widgets.QOpenGLWidget }

func NewFlutterWidget

func NewFlutterWidget(parent widgets.QWidget_ITF) *FlutterWidget

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL