5#ifndef FLUTTER_SHELL_PLATFORM_EMBEDDER_EMBEDDER_H_
6#define FLUTTER_SHELL_PLATFORM_EMBEDDER_EMBEDDER_H_
52#if defined(__cplusplus)
60#ifdef FLUTTER_API_SYMBOL_PREFIX
61#define FLUTTER_EMBEDDING_CONCAT(a, b) a##b
62#define FLUTTER_EMBEDDING_ADD_PREFIX(symbol, prefix) \
63 FLUTTER_EMBEDDING_CONCAT(prefix, symbol)
64#define FLUTTER_API_SYMBOL(symbol) \
65 FLUTTER_EMBEDDING_ADD_PREFIX(symbol, FLUTTER_API_SYMBOL_PREFIX)
67#define FLUTTER_API_SYMBOL(symbol) symbol
70#define FLUTTER_ENGINE_VERSION 1
411typedef void* (*ProcResolver)(
void* ,
const char* );
732typedef void* (*FlutterVulkanInstanceProcAddressCallback)(
1874 size_t layers_count,
2437#ifndef FLUTTER_ENGINE_NO_PROTOTYPES
2648 size_t events_count);
2751 const uint8_t* data,
2752 size_t data_length);
2792 int64_t texture_identifier);
2809 int64_t texture_identifier);
2827 int64_t texture_identifier);
2875 const uint8_t* data,
2876 size_t data_length);
2913 uint64_t frame_start_time_nanos,
2914 uint64_t frame_target_time_nanos);
2982 void* callback_data);
3026 size_t locales_count);
3154 size_t display_count);
3219 size_t events_count);
3241 const uint8_t* data,
3242 size_t data_length);
3245 int64_t texture_identifier);
3248 int64_t texture_identifier);
3252 int64_t texture_identifier);
3263 const uint8_t* data,
3264 size_t data_length);
3268 uint64_t frame_start_time_nanos,
3269 uint64_t frame_target_time_nanos);
3278 void* callback_data);
3286 size_t locales_count);
3302 size_t display_count);
3379#if defined(__cplusplus)
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
FlutterEngineResult(* FlutterEngineSendKeyEventFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterKeyEvent *event, FlutterKeyEventCallback callback, void *user_data)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineUpdateAccessibilityFeatures(FLUTTER_API_SYMBOL(FlutterEngine) engine, FlutterAccessibilityFeature features)
Sets additional accessibility features.
struct _FlutterEngineAOTData * FlutterEngineAOTData
FLUTTER_EXPORT FlutterEngineResult FlutterEngineCreateAOTData(const FlutterEngineAOTDataSource *source, FlutterEngineAOTData *data_out)
Creates the necessary data structures to launch a Flutter Dart application in AOT mode....
FlutterEngineResult(* FlutterEngineCreateAOTDataFnPtr)(const FlutterEngineAOTDataSource *source, FlutterEngineAOTData *data_out)
#define FLUTTER_API_SYMBOL(symbol)
bool(* FlutterPresentViewCallback)(const FlutterPresentViewInfo *)
int64_t FlutterPlatformViewIdentifier
FlutterKeyEventDeviceType
@ kFlutterKeyEventDeviceTypeKeyboard
@ kFlutterKeyEventDeviceTypeDirectionalPad
@ kFlutterKeyEventDeviceTypeHdmi
@ kFlutterKeyEventDeviceTypeJoystick
@ kFlutterKeyEventDeviceTypeGamepad
void(* FlutterUpdateSemanticsCustomActionCallback)(const FlutterSemanticsCustomAction *, void *)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineSendWindowMetricsEvent(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterWindowMetricsEvent *event)
void(* FlutterUpdateSemanticsCallback)(const FlutterSemanticsUpdate *, void *)
uint64_t FlutterEngineDisplayId
bool(* FlutterMetalPresentCallback)(void *, const FlutterMetalTexture *)
@ kFlutterLayerContentTypePlatformView
Indicates that the contents of this layer are determined by the embedder.
@ kFlutterLayerContentTypeBackingStore
void * FlutterVulkanPhysicalDeviceHandle
Alias for VkPhysicalDevice.
bool(* FlutterBackingStoreCreateCallback)(const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out, void *user_data)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineRegisterExternalTexture(FLUTTER_API_SYMBOL(FlutterEngine) engine, int64_t texture_identifier)
Register an external texture with a unique (per engine) identifier. Only rendering backends that supp...
FlutterEngineResult(* FlutterEngineDispatchSemanticsActionFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, uint64_t id, FlutterSemanticsAction action, const uint8_t *data, size_t data_length)
FlutterEngineAOTDataSourceType
AOT data source type.
@ kFlutterEngineAOTDataSourceTypeElfPath
void(* FlutterEngineTraceEventInstantFnPtr)(const char *name)
const void * FlutterMetalDeviceHandle
Alias for id<MTLDevice>.
void(* FlutterPlatformMessageCallback)(const FlutterPlatformMessage *, void *)
FLUTTER_EXPORT uint64_t FlutterEngineGetCurrentTime()
Get the current time in nanoseconds from the clock used by the flutter engine. This is the system mon...
FLUTTER_EXPORT FlutterEngineResult FlutterEngineSendKeyEvent(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterKeyEvent *event, FlutterKeyEventCallback callback, void *user_data)
Sends a key event to the engine. The framework will decide whether to handle this event in a synchron...
FlutterPlatformViewMutationType
@ kFlutterPlatformViewMutationTypeClipRoundedRect
@ kFlutterPlatformViewMutationTypeClipRect
@ kFlutterPlatformViewMutationTypeTransformation
@ kFlutterPlatformViewMutationTypeOpacity
bool(* FlutterLayersPresentCallback)(const FlutterLayer **layers, size_t layers_count, void *user_data)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineReloadSystemFonts(FLUTTER_API_SYMBOL(FlutterEngine) engine)
Reloads the system fonts in engine.
FLUTTER_EXPORT FlutterEngineResult FlutterEngineUpdateSemanticsEnabled(FLUTTER_API_SYMBOL(FlutterEngine) engine, bool enabled)
Enable or disable accessibility semantics.
FlutterEngineResult(* FlutterEngineInitializeFnPtr)(size_t version, const FlutterRendererConfig *config, const FlutterProjectArgs *args, void *user_data, FLUTTER_API_SYMBOL(FlutterEngine) *engine_out)
FlutterEngineResult(* FlutterEngineSetNextFrameCallbackFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, VoidCallback callback, void *user_data)
void(* FlutterDataCallback)(const uint8_t *, size_t, void *)
FlutterEngineResult(* FlutterEngineUpdateAccessibilityFeaturesFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, FlutterAccessibilityFeature features)
FlutterPointerPhase
The phase of the pointer event.
@ kPanZoomUpdate
The pan/zoom updated.
@ kHover
The pointer moved while up.
@ kPanZoomStart
A pan/zoom started on this pointer.
@ kPanZoomEnd
The pan/zoom ended.
FLUTTER_EXPORT void FlutterEngineTraceEventInstant(const char *name)
A profiling utility. Logs a trace duration instant event to the timeline. If the timeline is unavaila...
FlutterEngineResult(* FlutterEngineCollectAOTDataFnPtr)(FlutterEngineAOTData data)
FlutterSoftwarePixelFormat
@ kFlutterSoftwarePixelFormatRGBA4444
@ kFlutterSoftwarePixelFormatRGBA8888
@ kFlutterSoftwarePixelFormatBGRA8888
@ kFlutterSoftwarePixelFormatGray8
@ kFlutterSoftwarePixelFormatNative32
@ kFlutterSoftwarePixelFormatRGBX8888
@ kFlutterSoftwarePixelFormatRGB565
void * FlutterVulkanDeviceHandle
Alias for VkDevice.
FLUTTER_EXPORT void FlutterEngineTraceEventDurationBegin(const char *name)
A profiling utility. Logs a trace duration begin event to the timeline. If the timeline is unavailabl...
FlutterMetalExternalTextureYUVColorSpace
YUV color space for the YUV external texture.
FlutterEngineResult(* FlutterEngineRunFnPtr)(size_t version, const FlutterRendererConfig *config, const FlutterProjectArgs *args, void *user_data, FLUTTER_API_SYMBOL(FlutterEngine) *engine_out)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineInitialize(size_t version, const FlutterRendererConfig *config, const FlutterProjectArgs *args, void *user_data, FLUTTER_API_SYMBOL(FlutterEngine) *engine_out)
Initialize a Flutter engine instance. This does not run the Flutter application code till the Flutter...
FlutterEngineResult(* FlutterEngineNotifyLowMemoryWarningFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine)
FlutterEngineResult(* FlutterEngineSendWindowMetricsEventFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterWindowMetricsEvent *event)
FlutterEngineResult(* FlutterEngineSendPlatformMessageFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterPlatformMessage *message)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineUnregisterExternalTexture(FLUTTER_API_SYMBOL(FlutterEngine) engine, int64_t texture_identifier)
Unregister a previous texture registration.
FlutterEngineResult(* FlutterEngineReloadSystemFontsFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine)
bool(* FlutterEngineRunsAOTCompiledDartCodeFnPtr)(void)
FlutterPointerMouseButtons
@ kFlutterPointerButtonMousePrimary
@ kFlutterPointerButtonMouseMiddle
@ kFlutterPointerButtonMouseForward
@ kFlutterPointerButtonMouseBack
@ kFlutterPointerButtonMouseSecondary
FlutterEngineResult(* FlutterEngineUpdateSemanticsEnabledFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, bool enabled)
FlutterEngineResult(* FlutterEnginePostRenderThreadTaskFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, VoidCallback callback, void *callback_data)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineRunTask(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterTask *task)
Inform the engine to run the specified task. This task has been given to the engine via the FlutterTa...
FlutterEngineResult(* FlutterEngineDeinitializeFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine)
FlutterAccessibilityFeature
@ kFlutterAccessibilityFeatureOnOffSwitchLabels
Request to show on/off labels inside switches.
@ kFlutterAccessibilityFeatureBoldText
Request that text be rendered at a bold font weight.
@ kFlutterAccessibilityFeatureHighContrast
Request that UI be rendered with darker colors.
@ kFlutterAccessibilityFeatureReduceMotion
@ kFlutterAccessibilityFeatureDisableAnimations
Request that animations be disabled or simplified.
@ kFlutterAccessibilityFeatureInvertColors
Indicate the platform is inverting the colors of the application.
@ kFlutterAccessibilityFeatureAccessibleNavigation
FLUTTER_EXPORT FlutterEngineResult FlutterPlatformMessageReleaseResponseHandle(FLUTTER_API_SYMBOL(FlutterEngine) engine, FlutterPlatformMessageResponseHandle *response)
Collects the handle created using FlutterPlatformMessageCreateResponseHandle.
void(* FlutterNativeThreadCallback)(FlutterNativeThreadType type, void *user_data)
FlutterVulkanImage(* FlutterVulkanImageCallback)(void *, const FlutterFrameInfo *)
Callback for when a VkImage is requested.
FLUTTER_EXPORT FlutterEngineResult FlutterEngineUpdateLocales(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterLocale **locales, size_t locales_count)
Notify a running engine instance that the locale has been updated. The preferred locale must be the f...
FlutterEngineResult(* FlutterEnginePostCallbackOnAllNativeThreadsFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, FlutterNativeThreadCallback callback, void *user_data)
bool(* FlutterMetalTextureFrameCallback)(void *, int64_t, size_t, size_t, FlutterMetalExternalTexture *)
FlutterTransformation(* TransformationCallback)(void *)
uint64_t(* FlutterEngineGetCurrentTimeFnPtr)()
FlutterMetalExternalTexturePixelFormat
Pixel format for the external texture.
FlutterEngineResult(* FlutterEngineSendPointerEventFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterPointerEvent *events, size_t events_count)
FlutterEngineDartObjectType
@ kFlutterEngineDartObjectTypeString
@ kFlutterEngineDartObjectTypeBool
@ kFlutterEngineDartObjectTypeDouble
@ kFlutterEngineDartObjectTypeInt32
@ kFlutterEngineDartObjectTypeBuffer
@ kFlutterEngineDartObjectTypeInt64
@ kFlutterEngineDartObjectTypeNull
bool(* BoolCallback)(void *)
void(* FlutterFrameBufferWithDamageCallback)(void *, const intptr_t, FlutterDamage *)
void(* FlutterLogMessageCallback)(const char *, const char *, void *)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineShutdown(FLUTTER_API_SYMBOL(FlutterEngine) engine)
Shuts down a Flutter engine instance. The engine handle is no longer valid for any calls in the embed...
void(* FlutterTaskRunnerPostTaskCallback)(FlutterTask, uint64_t, void *)
void(* FlutterRemoveViewCallback)(const FlutterRemoveViewResult *)
FlutterEngineResult(* FlutterEnginePlatformMessageCreateResponseHandleFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, FlutterDataCallback data_callback, void *user_data, FlutterPlatformMessageResponseHandle **response_out)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineDeinitialize(FLUTTER_API_SYMBOL(FlutterEngine) engine)
Stops running the Flutter engine instance. After this call, the embedder is also guaranteed that no m...
FlutterEngineResult(* FlutterEngineMarkExternalTextureFrameAvailableFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, int64_t texture_identifier)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineRun(size_t version, const FlutterRendererConfig *config, const FlutterProjectArgs *args, void *user_data, FLUTTER_API_SYMBOL(FlutterEngine) *engine_out)
Initialize and run a Flutter engine instance and return a handle to it. This is a convenience method ...
@ kFlutterNativeThreadTypeWorker
@ kFlutterNativeThreadTypeUI
@ kFlutterNativeThreadTypePlatform
@ kFlutterNativeThreadTypeRender
const void * FlutterMetalCommandQueueHandle
Alias for id<MTLCommandQueue>.
FlutterPointerSignalKind
The type of a pointer signal.
@ kFlutterPointerSignalKindScale
@ kFlutterPointerSignalKindScrollInertiaCancel
@ kFlutterPointerSignalKindScroll
@ kFlutterPointerSignalKindNone
void(* FlutterUpdateSemanticsNodeCallback)(const FlutterSemanticsNode *, void *)
void *(* ProcResolver)(void *, const char *)
const FlutterLocale *(* FlutterComputePlatformResolvedLocaleCallback)(const FlutterLocale **, size_t)
FlutterEngineDisplaysUpdateType
@ kFlutterEngineDisplaysUpdateTypeStartup
@ kFlutterEngineDisplaysUpdateTypeCount
FLUTTER_EXPORT FlutterEngineResult FlutterEngineAddView(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterAddViewInfo *info)
Adds a view.
FLUTTER_EXPORT const int32_t kFlutterSemanticsNodeIdBatchEnd
FlutterEngineResult(* FlutterEnginePlatformMessageReleaseResponseHandleFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, FlutterPlatformMessageResponseHandle *response)
uint32_t(* UIntCallback)(void *)
FlutterThreadPriority
Valid values for priority of Thread.
@ kBackground
Suitable for threads that shouldn't disrupt high priority work.
@ kDisplay
Suitable for threads which generate data for the display.
@ kNormal
Default priority level.
@ kRaster
Suitable for thread which raster data.
FlutterEngineResult(* FlutterEngineOnVsyncFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, intptr_t baton, uint64_t frame_start_time_nanos, uint64_t frame_target_time_nanos)
@ kFlutterSemanticsActionMoveCursorForwardByCharacter
Move the cursor forward by one character.
@ kFlutterSemanticsActionDidLoseAccessibilityFocus
Indicate that the node has lost accessibility focus.
@ kFlutterSemanticsActionDecrease
Decrease the value represented by the semantics node.
@ kFlutterSemanticsActionScrollDown
@ kFlutterSemanticsActionMoveCursorBackwardByCharacter
Move the cursor backward by one character.
@ kFlutterSemanticsActionMoveCursorForwardByWord
Move the cursor forward by one word.
@ kFlutterSemanticsActionLongPress
@ kFlutterSemanticsActionScrollRight
@ kFlutterSemanticsActionShowOnScreen
A request to fully show the semantics node on screen.
@ kFlutterSemanticsActionSetSelection
Set the text selection to the given range.
@ kFlutterSemanticsActionDismiss
A request that the node should be dismissed.
@ kFlutterSemanticsActionPaste
Paste the current content of the clipboard.
@ kFlutterSemanticsActionScrollUp
@ kFlutterSemanticsActionCut
Cut the current selection and place it in the clipboard.
@ kFlutterSemanticsActionCustomAction
Indicate that the user has invoked a custom accessibility action.
@ kFlutterSemanticsActionCopy
Copy the current selection to the clipboard.
@ kFlutterSemanticsActionMoveCursorBackwardByWord
Move the cursor backward by one word.
@ kFlutterSemanticsActionIncrease
Increase the value represented by the semantics node.
@ kFlutterSemanticsActionScrollLeft
@ kFlutterSemanticsActionDidGainAccessibilityFocus
Indicate that the node has gained accessibility focus.
@ kFlutterSemanticsActionSetText
Replace the current text in the text field.
@ kFlutterSemanticsActionTap
uint32_t(* UIntFrameInfoCallback)(void *, const FlutterFrameInfo *)
Callback for when a frame buffer object is requested.
FLUTTER_EXPORT FlutterEngineResult FlutterEnginePostDartObject(FLUTTER_API_SYMBOL(FlutterEngine) engine, FlutterEngineDartPort port, const FlutterEngineDartObject *object)
Posts a Dart object to specified send port. The corresponding receive port for send port can be in an...
void(* FlutterKeyEventCallback)(bool, void *)
void(* FlutterEngineTraceEventDurationBeginFnPtr)(const char *name)
FlutterEngineResult(* FlutterEngineRemoveViewFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterRemoveViewInfo *info)
FlutterEngineResult(* FlutterEngineRunInitializedFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineSendPlatformMessageResponse(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterPlatformMessageResponseHandle *handle, const uint8_t *data, size_t data_length)
Send a response from the native side to a platform message from the Dart Flutter application.
FLUTTER_EXPORT FlutterEngineResult FlutterEngineSendPointerEvent(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterPointerEvent *events, size_t events_count)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineCollectAOTData(FlutterEngineAOTData data)
Collects the AOT data.
FLUTTER_EXPORT FlutterEngineResult FlutterEngineOnVsync(FLUTTER_API_SYMBOL(FlutterEngine) engine, intptr_t baton, uint64_t frame_start_time_nanos, uint64_t frame_target_time_nanos)
Notify the engine that a vsync event occurred. A baton passed to the platform via the vsync callback ...
FlutterStringAttributeType
bool(* FlutterVulkanPresentCallback)(void *, const FlutterVulkanImage *)
@ kFlutterKeyEventTypeDown
@ kFlutterKeyEventTypeRepeat
FlutterMetalTexture(* FlutterMetalTextureCallback)(void *, const FlutterFrameInfo *)
Callback for when a metal texture is requested.
FLUTTER_EXPORT FlutterEngineResult FlutterEngineNotifyDisplayUpdate(FLUTTER_API_SYMBOL(FlutterEngine) engine, FlutterEngineDisplaysUpdateType update_type, const FlutterEngineDisplay *displays, size_t display_count)
Posts updates corresponding to display changes to a running engine instance.
void(* FlutterUpdateSemanticsCallback2)(const FlutterSemanticsUpdate2 *, void *)
bool(* SoftwareSurfacePresentCallback)(void *, const void *, size_t, size_t)
FlutterEngineResult(* FlutterEngineRegisterExternalTextureFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, int64_t texture_identifier)
int64_t FlutterEngineDartPort
FlutterEngineResult(* FlutterEngineSendPlatformMessageResponseFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterPlatformMessageResponseHandle *handle, const uint8_t *data, size_t data_length)
void(* FlutterAddViewCallback)(const FlutterAddViewResult *result)
bool(* FlutterBackingStoreCollectCallback)(const FlutterBackingStore *renderer, void *user_data)
FlutterEngineResult(* FlutterEngineRunTaskFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterTask *task)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineSendPlatformMessage(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterPlatformMessage *message)
bool(* BoolPresentInfoCallback)(void *, const FlutterPresentInfo *)
Callback for when a surface is presented.
@ kFlutterOpenGLTargetTypeFramebuffer
@ kFlutterOpenGLTargetTypeTexture
void *(* FlutterVulkanInstanceProcAddressCallback)(void *, FlutterVulkanInstanceHandle, const char *)
FLUTTER_EXPORT bool FlutterEngineRunsAOTCompiledDartCode(void)
Returns if the Flutter engine instance will run AOT compiled Dart code. This call has no threading re...
FlutterEngineResult(* FlutterEnginePostDartObjectFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, FlutterEngineDartPort port, const FlutterEngineDartObject *object)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineRunInitialized(FLUTTER_API_SYMBOL(FlutterEngine) engine)
Runs an initialized engine instance. An engine can be initialized via FlutterEngineInitialize....
FlutterEngineResult(* FlutterEngineUpdateLocalesFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterLocale **locales, size_t locales_count)
void * FlutterVulkanInstanceHandle
Alias for VkInstance.
FLUTTER_EXPORT FlutterEngineResult FlutterEnginePostRenderThreadTask(FLUTTER_API_SYMBOL(FlutterEngine) engine, VoidCallback callback, void *callback_data)
Posts a task onto the Flutter render thread. Typically, this may be called from any thread as long as...
@ kFlutterBackingStoreTypeSoftware2
@ kFlutterBackingStoreTypeMetal
Specifies a Metal backing store. This is backed by a Metal texture.
@ kFlutterBackingStoreTypeVulkan
Specifies a Vulkan backing store. This is backed by a Vulkan VkImage.
@ kFlutterBackingStoreTypeSoftware
Specified an software allocation for Flutter to render into using the CPU.
@ kFlutterBackingStoreTypeOpenGL
FLUTTER_EXPORT FlutterEngineResult __FlutterEngineFlushPendingTasksNow()
This API is only meant to be used by platforms that need to flush tasks on a message loop not control...
void(* FlutterChannelUpdateCallback)(const FlutterChannelUpdate *, void *)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineNotifyLowMemoryWarning(FLUTTER_API_SYMBOL(FlutterEngine) engine)
Posts a low memory notification to a running engine instance. The engine will do its best to release ...
FlutterEngineResult(* FlutterEngineShutdownFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine)
void(* VsyncCallback)(void *, intptr_t)
@ kFlutterTextDirectionUnknown
Text has unknown text direction.
@ kFlutterTextDirectionRTL
Text is read from right to left.
@ kFlutterTextDirectionLTR
Text is read from left to right.
struct _FlutterTaskRunner * FlutterTaskRunner
FlutterEngineResult(* FlutterEngineUnregisterExternalTextureFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, int64_t texture_identifier)
FlutterEngineResult(* FlutterEngineNotifyDisplayUpdateFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, FlutterEngineDisplaysUpdateType update_type, const FlutterEngineDisplay *displays, size_t display_count)
FLUTTER_EXPORT FlutterEngineResult FlutterEnginePostCallbackOnAllNativeThreads(FLUTTER_API_SYMBOL(FlutterEngine) engine, FlutterNativeThreadCallback callback, void *user_data)
Schedule a callback to be run on all engine managed threads. The engine will attempt to service this ...
bool(* TextureFrameCallback)(void *, int64_t, size_t, size_t, FlutterOpenGLTexture *)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineRemoveView(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterRemoveViewInfo *info)
Removes a view.
FlutterPointerDeviceKind
The device type that created a pointer event.
@ kFlutterPointerDeviceKindTouch
@ kFlutterPointerDeviceKindTrackpad
@ kFlutterPointerDeviceKindStylus
@ kFlutterPointerDeviceKindMouse
FLUTTER_EXPORT FlutterEngineResult FlutterPlatformMessageCreateResponseHandle(FLUTTER_API_SYMBOL(FlutterEngine) engine, FlutterDataCallback data_callback, void *user_data, FlutterPlatformMessageResponseHandle **response_out)
Creates a platform message response handle that allows the embedder to set a native callback for a re...
FLUTTER_EXPORT FlutterEngineResult FlutterEngineMarkExternalTextureFrameAvailable(FLUTTER_API_SYMBOL(FlutterEngine) engine, int64_t texture_identifier)
Mark that a new texture frame is available for a given texture identifier.
void(* OnPreEngineRestartCallback)(void *)
const void * FlutterMetalTextureHandle
Alias for id<MTLTexture>.
@ kFlutterSemanticsFlagIsHidden
Whether the semantics node is considered hidden.
@ kFlutterSemanticsFlagIsHeader
Whether a semantic node is a header that divides content into sections.
@ kFlutterSemanticsFlagIsSlider
Whether the semantics node represents a slider.
@ kFlutterSemanticsFlagHasToggledState
The semantics node has the quality of either being "on" or "off".
@ kFlutterSemanticsFlagIsSelected
Whether a semantics node is selected.
@ kFlutterSemanticsFlagIsInMutuallyExclusiveGroup
Whether a semantic node is in a mutually exclusive group.
@ kFlutterSemanticsFlagIsKeyboardKey
Whether the semantics node represents a keyboard key.
@ kFlutterSemanticsFlagIsChecked
Whether a semantics node is checked.
@ kFlutterSemanticsFlagScopesRoute
@ kFlutterSemanticsFlagHasExpandedState
@ kFlutterSemanticsFlagIsCheckStateMixed
Whether the semantics node represents a tristate checkbox in mixed state.
@ kFlutterSemanticsFlagIsToggled
@ kFlutterSemanticsFlagIsButton
Whether the semantic node represents a button.
@ kFlutterSemanticsFlagIsMultiline
@ kFlutterSemanticsFlagIsObscured
Whether the value of the semantics node is obscured.
@ kFlutterSemanticsFlagIsReadOnly
@ kFlutterSemanticsFlagIsLink
Whether the semantics node represents a link.
@ kFlutterSemanticsFlagIsLiveRegion
Whether the semantics node is a live region.
@ kFlutterSemanticsFlagIsFocused
Whether the semantic node currently holds the user's focus.
@ kFlutterSemanticsFlagHasImplicitScrolling
@ kFlutterSemanticsFlagIsEnabled
Whether a semantic node that hasEnabledState is currently enabled.
@ kFlutterSemanticsFlagIsImage
Whether the semantics node represents an image.
@ kFlutterSemanticsFlagNamesRoute
Whether the semantics node label is the name of a visually distinct route.
@ kFlutterSemanticsFlagIsFocusable
Whether the semantic node can hold the user's focus.
@ kFlutterSemanticsFlagIsTextField
Whether the semantic node represents a text field.
@ kFlutterSemanticsFlagHasCheckedState
@ kFlutterSemanticsFlagHasEnabledState
@ kFlutterSemanticsFlagIsExpanded
Whether a semantic node that hasExpandedState is currently expanded.
FLUTTER_EXPORT FlutterEngineResult FlutterEngineGetProcAddresses(FlutterEngineProcTable *table)
Gets the table of engine function pointers.
FLUTTER_EXPORT FlutterEngineResult FlutterEngineDispatchSemanticsAction(FLUTTER_API_SYMBOL(FlutterEngine) engine, uint64_t node_id, FlutterSemanticsAction action, const uint8_t *data, size_t data_length)
Dispatch a semantics action to the specified semantics node.
FLUTTER_EXPORT FlutterEngineResult FlutterEngineScheduleFrame(FLUTTER_API_SYMBOL(FlutterEngine) engine)
Schedule a new frame to redraw the content.
FLUTTER_EXPORT const int32_t kFlutterSemanticsCustomActionIdBatchEnd
void * FlutterVulkanQueueHandle
Alias for VkQueue.
void(* FlutterEngineTraceEventDurationEndFnPtr)(const char *name)
uint64_t FlutterVulkanImageHandle
Alias for VkImage.
FLUTTER_EXPORT void FlutterEngineTraceEventDurationEnd(const char *name)
A profiling utility. Logs a trace duration end event to the timeline. If the timeline is unavailable ...
FlutterEngineResult(* FlutterEngineScheduleFrameFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine)
FlutterEngineResult(* FlutterEngineAddViewFnPtr)(FLUTTER_API_SYMBOL(FlutterEngine) engine, const FlutterAddViewInfo *info)
FLUTTER_EXPORT FlutterEngineResult FlutterEngineSetNextFrameCallback(FLUTTER_API_SYMBOL(FlutterEngine) engine, VoidCallback callback, void *user_data)
Schedule a callback to be called after the next frame is drawn. This must be called from the platform...
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
FlutterAddViewCallback add_view_callback
FlutterViewId view_id
The identifier for the view to add. This must be unique.
const FlutterWindowMetricsEvent * view_metrics
void * user_data
The |FlutterAddViewInfo.user_data|.
bool added
True if the add view operation succeeded.
size_t struct_size
The size of this struct. Must be sizeof(FlutterBackingStoreConfig).
FlutterSize size
The size of the render target the engine expects to render into.
FlutterRegion * paint_region
FlutterVulkanBackingStore vulkan
FlutterMetalBackingStore metal
FlutterBackingStoreType type
Specifies the type of backing store.
FlutterOpenGLBackingStore open_gl
The description of the OpenGL backing store.
FlutterSoftwareBackingStore software
The description of the software backing store.
FlutterSoftwareBackingStore2 software2
The description of the software backing store.
size_t struct_size
The size of this struct. Must be sizeof(FlutterBackingStore).
An update to whether a message channel has a listener set or not.
bool listening
True if a listener has been set, false if one has been cleared.
const char * channel
The name of the channel.
FlutterBackingStoreCreateCallback create_backing_store_callback
bool avoid_backing_store_cache
Avoid caching backing stores provided by this compositor.
FlutterLayersPresentCallback present_layers_callback
size_t struct_size
This size of this struct. Must be sizeof(FlutterCompositor).
FlutterPresentViewCallback present_view_callback
FlutterBackingStoreCollectCallback collect_backing_store_callback
const FlutterTaskRunnerDescription * render_task_runner
const FlutterTaskRunnerDescription * platform_task_runner
size_t struct_size
The size of this struct. Must be sizeof(FlutterCustomTaskRunners).
A structure to represent a damage region.
size_t num_rects
The number of rectangles within the damage region.
size_t struct_size
The size of this struct. Must be sizeof(FlutterDamage).
FlutterRect * damage
The actual damage region(s) in question.
FlutterEngineAOTDataSourceType type
const char * elf_path
Absolute path to an ELF library file.
size_t buffer_size
The size of the buffer.
size_t struct_size
The size of this struct. Must be sizeof(FlutterEngineDartBuffer).
VoidCallback buffer_collect_callback
FlutterEngineDartObjectType type
const char * string_value
const FlutterEngineDartBuffer * buffer_value
size_t height
The height of the display, in physical pixels.
double device_pixel_ratio
size_t struct_size
This size of this struct. Must be sizeof(FlutterDisplay).
size_t width
The width of the display, in physical pixels.
FlutterEngineDisplayId display_id
Function-pointer-based versions of the APIs above.
FlutterEnginePostCallbackOnAllNativeThreadsFnPtr PostCallbackOnAllNativeThreads
FlutterEngineRegisterExternalTextureFnPtr RegisterExternalTexture
FlutterEngineReloadSystemFontsFnPtr ReloadSystemFonts
FlutterEnginePostDartObjectFnPtr PostDartObject
FlutterEngineScheduleFrameFnPtr ScheduleFrame
FlutterEngineTraceEventDurationEndFnPtr TraceEventDurationEnd
FlutterEnginePlatformMessageReleaseResponseHandleFnPtr PlatformMessageReleaseResponseHandle
FlutterEngineUpdateLocalesFnPtr UpdateLocales
FlutterEngineUnregisterExternalTextureFnPtr UnregisterExternalTexture
FlutterEngineTraceEventDurationBeginFnPtr TraceEventDurationBegin
FlutterEngineAddViewFnPtr AddView
FlutterEngineTraceEventInstantFnPtr TraceEventInstant
FlutterEngineRemoveViewFnPtr RemoveView
FlutterEngineSendKeyEventFnPtr SendKeyEvent
FlutterEngineMarkExternalTextureFrameAvailableFnPtr MarkExternalTextureFrameAvailable
FlutterEngineRunsAOTCompiledDartCodeFnPtr RunsAOTCompiledDartCode
FlutterEngineNotifyLowMemoryWarningFnPtr NotifyLowMemoryWarning
FlutterEngineSetNextFrameCallbackFnPtr SetNextFrameCallback
FlutterEngineSendWindowMetricsEventFnPtr SendWindowMetricsEvent
FlutterEngineShutdownFnPtr Shutdown
FlutterEngineCreateAOTDataFnPtr CreateAOTData
FlutterEngineOnVsyncFnPtr OnVsync
FlutterEngineSendPointerEventFnPtr SendPointerEvent
FlutterEngineCollectAOTDataFnPtr CollectAOTData
size_t struct_size
The size of this struct. Must be sizeof(FlutterEngineProcs).
FlutterEngineGetCurrentTimeFnPtr GetCurrentTime
FlutterEngineInitializeFnPtr Initialize
FlutterEngineDispatchSemanticsActionFnPtr DispatchSemanticsAction
FlutterEngineRunTaskFnPtr RunTask
FlutterEngineNotifyDisplayUpdateFnPtr NotifyDisplayUpdate
FlutterEngineDeinitializeFnPtr Deinitialize
FlutterEngineSendPlatformMessageFnPtr SendPlatformMessage
FlutterEngineRunInitializedFnPtr RunInitialized
FlutterEngineUpdateSemanticsEnabledFnPtr UpdateSemanticsEnabled
FlutterEnginePlatformMessageCreateResponseHandleFnPtr PlatformMessageCreateResponseHandle
FlutterEngineSendPlatformMessageResponseFnPtr SendPlatformMessageResponse
FlutterEngineRunFnPtr Run
FlutterEngineUpdateAccessibilityFeaturesFnPtr UpdateAccessibilityFeatures
FlutterEnginePostRenderThreadTaskFnPtr PostRenderThreadTask
size_t struct_size
The size of this struct. Must be sizeof(FlutterFrameInfo).
FlutterUIntSize size
The size of the surface that will be backed by the fbo.
size_t struct_size
The size of this struct. Must be sizeof(FlutterKeyEvent).
FlutterKeyEventDeviceType device_type
The source device for the key event.
FlutterKeyEventType type
The event kind.
FlutterLayerContentType type
const FlutterBackingStore * backing_store
FlutterBackingStorePresentInfo * backing_store_present_info
uint64_t presentation_time
const FlutterPlatformView * platform_view
size_t struct_size
This size of this struct. Must be sizeof(FlutterLayer).
FlutterSize size
The size of the layer (in physical pixels).
size_t struct_size
The size of this struct. Must be sizeof(FlutterLocaleStringAttribute).
const char * language_code
size_t struct_size
This size of this struct. Must be sizeof(FlutterLocale).
const char * country_code
const char * variant_code
size_t struct_size
The size of this struct. Must be sizeof(FlutterMetalExternalTexture).
FlutterMetalTextureHandle * textures
size_t num_textures
Represents the size of the textures array.
FlutterMetalExternalTexturePixelFormat pixel_format
The pixel format type of the external.
FlutterMetalExternalTextureYUVColorSpace yuv_color_space
The YUV color space of the YUV external texture.
size_t height
Height of the texture.
size_t width
Height of the texture.
FlutterMetalTextureHandle texture
size_t struct_size
The size of this struct. Must be sizeof(FlutterMetalTexture).
VoidCallback destruction_callback
FlutterOpenGLTexture texture
A texture for Flutter to render into.
FlutterOpenGLTargetType type
FlutterOpenGLFramebuffer framebuffer
uint32_t name
The name of the framebuffer.
VoidCallback destruction_callback
void * user_data
User data to be returned on the invocation of the destruction callback.
ProcResolver gl_proc_resolver
BoolCallback make_current
BoolPresentInfoCallback present_with_info
UIntCallback fbo_callback
size_t struct_size
The size of this struct. Must be sizeof(FlutterOpenGLRendererConfig).
TextureFrameCallback gl_external_texture_frame_callback
bool fbo_reset_after_present
FlutterFrameBufferWithDamageCallback populate_existing_damage
TransformationCallback surface_transformation
BoolCallback make_resource_current
UIntFrameInfoCallback fbo_with_frame_info_callback
BoolCallback clear_current
uint32_t name
The name of the texture.
VoidCallback destruction_callback
void * user_data
User data to be returned on the invocation of the destruction callback.
size_t height
Height of the texture.
uint32_t format
The texture format (example GL_RGBA8).
A structure to represent a 2D point.
double scroll_delta_y
The y offset of the scroll in physical pixels.
int64_t buttons
The buttons currently pressed, if any.
size_t struct_size
The size of this struct. Must be sizeof(FlutterPointerEvent).
double scale
The scale of the pan/zoom, where 1.0 is the initial scale.
FlutterViewId view_id
The identifier of the view that received the pointer event.
FlutterPointerSignalKind signal_kind
double rotation
The rotation of the pan/zoom in radians, where 0.0 is the initial angle.
double scroll_delta_x
The x offset of the scroll in physical pixels.
double y
The y coordinate of the pointer event in physical pixels.
double x
The x coordinate of the pointer event in physical pixels.
FlutterPointerDeviceKind device_kind
double pan_x
The x offset of the pan/zoom in physical pixels.
FlutterPointerPhase phase
double pan_y
The y offset of the pan/zoom in physical pixels.
uint32_t fbo_id
Id of the fbo backing the surface that was presented.
FlutterDamage frame_damage
Damage representing the area that the compositor needs to render.
FlutterDamage buffer_damage
Damage used to set the buffer's damage region.
size_t struct_size
The size of this struct. Must be sizeof(FlutterPresentInfo).
size_t layers_count
The count of layers.
void * user_data
The |FlutterCompositor.user_data|.
FlutterViewId view_id
The identifier of the target view.
const FlutterLayer ** layers
The layers that should be composited onto the view.
FlutterPlatformMessageCallback platform_message_callback
FlutterComputePlatformResolvedLocaleCallback compute_platform_resolved_locale_callback
FlutterLogMessageCallback log_message_callback
VsyncCallback vsync_callback
OnPreEngineRestartCallback on_pre_engine_restart_callback
const uint8_t * isolate_snapshot_data
FlutterEngineAOTData aot_data
const char * main_path__unused__
FlutterUpdateSemanticsCallback update_semantics_callback
const char * persistent_cache_path
const uint8_t * vm_snapshot_data
const char * packages_path__unused__
size_t isolate_snapshot_instructions_size
const char *const * dart_entrypoint_argv
size_t struct_size
The size of this struct. Must be sizeof(FlutterProjectArgs).
FlutterUpdateSemanticsCallback2 update_semantics_callback2
const uint8_t * vm_snapshot_instructions
size_t isolate_snapshot_data_size
const char *const * command_line_argv
int64_t dart_old_gen_heap_size
FlutterChannelUpdateCallback channel_update_callback
size_t vm_snapshot_instructions_size
const char * icu_data_path
bool shutdown_dart_vm_when_done
const char * custom_dart_entrypoint
FlutterUpdateSemanticsCustomActionCallback update_semantics_custom_action_callback
FlutterUpdateSemanticsNodeCallback update_semantics_node_callback
const FlutterCustomTaskRunners * custom_task_runners
bool is_persistent_cache_read_only
size_t vm_snapshot_data_size
int command_line_argc
The command line argument count used to initialize the project.
VoidCallback root_isolate_create_callback
const uint8_t * isolate_snapshot_instructions
const FlutterCompositor * compositor
A structure to represent a rectangle.
A region represented by a collection of non-overlapping rectangles.
size_t rects_count
Number of rectangles in the region.
FlutterRect * rects
The rectangles that make up the region.
size_t struct_size
The size of this struct. Must be sizeof(FlutterRegion).
FlutterRemoveViewCallback remove_view_callback
void * user_data
The |FlutterRemoveViewInfo.user_data|.
bool removed
True if the remove view operation succeeded.
FlutterVulkanRendererConfig vulkan
FlutterMetalRendererConfig metal
FlutterSoftwareRendererConfig software
FlutterOpenGLRendererConfig open_gl
A structure to represent a rounded rectangle.
FlutterSize upper_left_corner_radius
FlutterSize lower_left_corner_radius
FlutterSize upper_right_corner_radius
FlutterSize lower_right_corner_radius
const char * hint
The hint description of this custom semantics action.
const char * label
The user-readable name of this custom semantics action.
FlutterSemanticsAction override_action
size_t struct_size
The size of the struct. Must be sizeof(FlutterSemanticsCustomAction).
int32_t id
The unique custom action or action override ID.
int32_t id
The unique custom action or action override ID.
FlutterSemanticsAction override_action
size_t struct_size
The size of the struct. Must be sizeof(FlutterSemanticsCustomAction).
const char * label
The user-readable name of this custom semantics action.
const char * hint
The hint description of this custom semantics action.
const char * increased_value
size_t value_attribute_count
const char * tooltip
A textual tooltip attached to the node.
int32_t scroll_index
The index of the first visible semantic child of a scroll node.
size_t custom_accessibility_actions_count
The number of custom accessibility action associated with this node.
const int32_t * children_in_traversal_order
Array of child node IDs in traversal order. Has length child_count.
double scroll_extent_min
The minimum in-range value for scrollPosition if the node is scrollable.
size_t label_attribute_count
double thickness
Describes how much space the semantics node takes up along the z-axis.
size_t struct_size
The size of this struct. Must be sizeof(FlutterSemanticsNode).
size_t decreased_value_attribute_count
size_t increased_value_attribute_count
const int32_t * children_in_hit_test_order
Array of child node IDs in hit test order. Has length child_count.
FlutterPlatformViewIdentifier platform_view_id
const FlutterStringAttribute ** hint_attributes
const FlutterStringAttribute ** decreased_value_attributes
int32_t text_selection_extent
The position at which the text selection terminates.
FlutterTextDirection text_direction
const FlutterStringAttribute ** increased_value_attributes
FlutterSemanticsAction actions
The set of semantics actions applicable to this node.
const int32_t * custom_accessibility_actions
int32_t id
The unique identifier for this node.
FlutterRect rect
The bounding box for this node in its coordinate system.
FlutterTransformation transform
size_t child_count
The number of children this node has.
double scroll_extent_max
The maximum in-range value for scrollPosition if the node is scrollable.
const char * decreased_value
size_t hint_attribute_count
const char * label
A textual description of the node.
int32_t text_selection_base
The position at which the text selection originates.
const char * hint
A brief description of the result of performing an action on the node.
const FlutterStringAttribute ** value_attributes
const char * value
A textual description of the current value of the node.
int32_t scroll_child_count
The total number of scrollable children that contribute to semantics.
FlutterSemanticsFlag flags
The set of semantics flags associated with this node.
const FlutterStringAttribute ** label_attributes
size_t custom_accessibility_actions_count
The number of custom accessibility action associated with this node.
const char * label
A textual description of the node.
size_t child_count
The number of children this node has.
FlutterTransformation transform
const char * value
A textual description of the current value of the node.
const char * decreased_value
const int32_t * custom_accessibility_actions
FlutterSemanticsAction actions
The set of semantics actions applicable to this node.
size_t struct_size
The size of this struct. Must be sizeof(FlutterSemanticsNode).
const char * tooltip
A textual tooltip attached to the node.
const char * hint
A brief description of the result of performing an action on the node.
FlutterTextDirection text_direction
FlutterPlatformViewIdentifier platform_view_id
const int32_t * children_in_traversal_order
Array of child node IDs in traversal order. Has length child_count.
double scroll_extent_max
The maximum in-range value for scrollPosition if the node is scrollable.
int32_t id
The unique identifier for this node.
int32_t scroll_child_count
The total number of scrollable children that contribute to semantics.
FlutterSemanticsFlag flags
The set of semantics flags associated with this node.
int32_t text_selection_extent
The position at which the text selection terminates.
const int32_t * children_in_hit_test_order
Array of child node IDs in hit test order. Has length child_count.
int32_t text_selection_base
The position at which the text selection originates.
double scroll_extent_min
The minimum in-range value for scrollPosition if the node is scrollable.
double thickness
Describes how much space the semantics node takes up along the z-axis.
int32_t scroll_index
The index of the first visible semantic child of a scroll node.
FlutterRect rect
The bounding box for this node in its coordinate system.
const char * increased_value
A batch of updates to semantics nodes and custom actions.
size_t node_count
The number of semantics node updates.
size_t custom_action_count
The number of semantics custom action updates.
FlutterSemanticsNode2 ** nodes
FlutterSemanticsCustomAction2 ** custom_actions
size_t struct_size
The size of the struct. Must be sizeof(FlutterSemanticsUpdate2).
FlutterSemanticsNode * nodes
size_t nodes_count
The number of semantics node updates.
size_t struct_size
The size of the struct. Must be sizeof(FlutterSemanticsUpdate).
size_t custom_actions_count
The number of semantics custom action updates.
FlutterSemanticsCustomAction * custom_actions
Array of semantics custom actions. Has length custom_actions_count.
A structure to represent the width and height.
VoidCallback destruction_callback
size_t row_bytes
The number of bytes in a single row of the allocation.
size_t height
The number of rows in the allocation.
FlutterSoftwarePixelFormat pixel_format
VoidCallback destruction_callback
size_t row_bytes
The number of bytes in a single row of the allocation.
size_t height
The number of rows in the allocation.
size_t struct_size
The size of this struct. Must be sizeof(FlutterSoftwareRendererConfig).
SoftwareSurfacePresentCallback surface_present_callback
size_t struct_size
The size of this struct. Must be sizeof(FlutterSpellOutStringAttribute).
FlutterStringAttributeType type
The type of the attribute described by the subsequent union.
const FlutterSpellOutStringAttribute * spell_out
size_t struct_size
The size of this struct. Must be sizeof(FlutterStringAttribute).
const FlutterLocaleStringAttribute * locale
size_t struct_size
The size of this struct. Must be sizeof(FlutterTaskRunnerDescription).
BoolCallback runs_task_on_current_thread_callback
FlutterTaskRunnerPostTaskCallback post_task_callback
size_t struct_size
The size of this struct. Must be sizeof(FlutterVulkanBackingStore).
VoidCallback destruction_callback
const FlutterVulkanImage * image
FlutterVulkanImageHandle image
size_t struct_size
The size of this struct. Must be sizeof(FlutterVulkanImage).
uint32_t format
The VkFormat of the image (for example: VK_FORMAT_R8G8B8A8_UNORM).
FlutterVulkanQueueHandle queue
FlutterVulkanDeviceHandle device
FlutterVulkanInstanceProcAddressCallback get_instance_proc_address_callback
size_t struct_size
The size of this struct. Must be sizeof(FlutterVulkanRendererConfig).
size_t enabled_instance_extension_count
uint32_t queue_family_index
The queue family index of the VkQueue supplied in the next field.
FlutterVulkanImageCallback get_next_image_callback
const char ** enabled_instance_extensions
const char ** enabled_device_extensions
size_t enabled_device_extension_count
FlutterVulkanInstanceHandle instance
FlutterVulkanPresentCallback present_image_callback
FlutterVulkanPhysicalDeviceHandle physical_device
VkPhysicalDevice handle.
FlutterEngineDisplayId display_id
The identifier of the display the view is rendering on.
size_t struct_size
The size of this struct. Must be sizeof(FlutterWindowMetricsEvent).
size_t height
Physical height of the window.
size_t left
Horizontal physical location of the left side of the window on the screen.
double physical_view_inset_left
Left inset of window.
int64_t view_id
The view that this event is describing.
double pixel_ratio
Scale factor for the physical screen.
double physical_view_inset_top
Top inset of window.
double physical_view_inset_bottom
Bottom inset of window.
size_t top
Vertical physical location of the top of the window on the screen.
double physical_view_inset_right
Right inset of window.
size_t width
Physical width of the window.