Expand description
Flutter’s dart:ui: host traits (Platform, View) and value types
(Offset, Color, Canvas, Paint, Shadow).
The framework depends on this crate. This crate does not depend on the
framework. Hosts implement Platform and View, and invoke
EmbedderClient on the client the start closure returns. They do not
name App.
Re-exports§
pub use valo;
Modules§
- image_
codecs - The system’s image codecs, as a host hands them to the app. Not a dart:ui file: dart:ui’s
instantiateImageCodec(this crate’simage) decodes for the framework’s own drawing and answers anImagethe renderer draws, never its pixels. These are the system’s codecs as an app uses them itself, to read and write image files: Apple’s Image I/O, Android’sAImageDecoderandAndroidBitmap_compress, Windows’BitmapDecoderandBitmapEncoder, the web’sImageDecoder. They followwasdk:media/image-codecsone to one, and are a module of their own, named as that interface is. - video_
decoders - The system’s video decoders, as a host hands them to the app. Not a dart:ui file: the
framework’s own video is the system’s players (
Players), which read and decode a file themselves. These are the decoders alone, for an app that reads a file or a stream itself and hands over one encoded picture at a time: Apple’s VideoToolbox, Android’s MediaCodec, Windows’ Media Foundation. They followwasdk:media/video-decodersandwasdk:media/video-streamsone to one, and are a module of their own, named as that interface is.
Structs§
- Accepted
Buffers - What a compositor shows a layer’s pictures from (
Compositor::accepted_buffers): GPU memory it imports, and shared memory it maps. A producer makes buffers of a format both it and the compositor take, never of the compositor’s list alone. - Accepted
Format - One format a compositor imports.
- AppExit
Reply - The answer to one request to exit, which the host made through
EmbedderClient::request_app_exit: Flutter’s reply toSystem.requestAppExit. It is answered once; dropped unanswered, it answersAppExitResponse::Exit, since an application that lets go of the question has nothing to keep. - Application
Switcher Description - Specifies a description of the application that is pertinent to the embedder’s application switcher (also known as “recent tasks”) user interface.
- Autofill
Configuration - A collection of autofill related information that represents an
AutofillClient. - Backdrop
Backdropfilters the sampled scene before a save layer’s children paint.- Body
- The body of a request or a response. It is empty, bytes already in memory, or a stream read as fast as the platform delivers it.
- Camera
- A camera, as the system lists it.
- Camera
Format - One way a camera runs, with all its outputs.
- Camera
Id - The system’s name for a camera, kept while it stays attached.
- Camera
Outputs - What a camera feeds, given whole to
CameraDevice::start: each output the system’s own, for one use. An output left out is not fed. - Caption
Setting - One of the user’s caption settings, and whether it applies over what the media says.
- Caption
Style - What the system’s settings say of how subtitles and captions look.
- Chroma
Location - Where a half-size colour plane’s samples sit against the brightness plane’s.
- Chromaticity
- A colour’s place on the CIE 1931 diagram.
- Clipboard
Item - One item to put on the clipboard: the same thing in several forms, each keyed by its MIME type, the most faithful first.
- Color
- An immutable color value in ARGB format.
- Contact
- How a finger or a pen meets the surface:
PointerData’s fields of the same names. The default is a device that detects none of it, such as a mouse, whose pressure reads 1.0. - Container
Layer - flow’s
ContainerLayerand the containers derived from it: children in paint order, the bottom-most first, under one effect. - Content
Light - In candelas a square metre.
- Copy
Options - How a copy is to be treated. Each option names what it is for, and a host whose system lacks it leaves it out, but for the expiry, which a host does itself where the system cannot.
- Copy
Request - Where the user’s copy or cut is written: the clipboard, as the platform lets the user’s own copy write it.
- Cue
- One subtitle or caption to show: Media3’s
Cue. - CueImage
- A picture subtitle’s pixels.
- CueText
Run - Text of one style. Each field the media may leave unsaid is
Nonewhere it does. - Display
List Layer - flow’s
DisplayListLayer: a picture the framework recorded, drawn atoffset. - DnsError
Payload - The payload of
HttpError::DnsError, as WASI’sDNS-error-payload. - Drag
Report - One report of an external drag over a view.
- Dragged
Items - The items of one drag as a host hands them out, readable only while their drop is reported
(
DraggedItems::report_drop). - Embedded
Layer - flow’s
PlatformViewLayer, named after Flutter’s embedded views: a composition layer the host composites, embedded in the frame atrectin its container’s coordinates. - Embedded
View - A view the app added on a layer of its own (
ViewEmbedder::add_view): the app gives it its metrics and says whether it is in sight, as only the app knows where it placed the layer, and the view lives as long as this handle: dropping it removes the view, as Flutter’s embedder API removes one withRemoveViewand Android’sSurfaceControlViewHostwithrelease. - Encoded
Image - An image as its file format encodes it.
- Field
Size Payload - A header or trailer field too large for the platform, as WASI’s
field-size-payload. - File
Type - The kinds of file a dialog offers, as
file_selector’sXTypeGroup: a system takes the extensions or the MIME types it filters by, and shows the label where it shows one. - Folder
Entry - One thing in a picked folder.
- Folder
Options - How to ask for a folder.
- Font
Collection FontCollectionowns registered faces and sources for resolving missing fonts.- Font
Demand FontDemanddescribes font requests that no registered face could satisfy.- Font
Feature - A feature tag and value that affect the selection of glyphs in a font.
- FontId
FontIdidentifies a registered font within aFaceSetorFontCollection.- Font
Variation - An axis tag and value that can be used to customize variable fonts.
- Font
Weight - The thickness of the glyphs used to draw the text.
- Fragment
Program - An instance of
FragmentProgramcreatesShaderobjects (as used byPaint::shader), through theFragmentShaders it hands out. - Fragment
Shader - A
Shadergenerated from aFragmentProgram. - Frame
- A refresh of a screen, as the host delivers it: Flutter’s
FlutterEngineOnVsync, with the platform’s clock beside the vsync’s. - Frame
Vsync - The times of the vsync a frame is drawn for, on the platform’s clock since the host’s origin:
FlutterEngineOnVsync’sframe_start_time_nanosandframe_target_time_nanos. - Gesture
Settings - A
nullfield indicates that the platform or view does not have a preference and the fallback constants should be used instead. - Glyph
Info - The measurements of a character (or a sequence of visually connected characters) within a paragraph.
- GpuMemory
- The formats a compositor imports from one GPU’s memory.
- Hardware
Buffer Usage - What a buffer can be used for, named after its users, as Android’s
AHardwareBufferusage is: what the GPU does with it, which a texture imported of it allows (Platform::import_texture), whether the system’s compositor shows it as an overlay, and whether the CPU reads it. A video encoder joins as it is needed. - HdrMetadata
- The brightness a picture was mastered for.
- HostGpu
- A GPU as a host gathers it: its name and what the system made for it, which every host hands
out as its
SystemGpu. - Icon
Image - An image a menu item or a tray icon shows: RGBA pixels, row by row.
- Image
Imageis a cheap-to-clone handle to an immutable GPU image.- Image
Frame - One decoded frame, prepared and ready to draw. Flutter dart:ui
FrameInfo. - Image
Sampler Slot - A binding to a shader’s image sampler. Calling
seton this object updates a sampler’s bound image. - Inert
Dispatcher - A dispatcher for tests, which pump the application by hand: it never wakes the application, and work runs at once on the calling thread, so its result is there at the next checkpoint.
- Inert
Platform - Platform for hand-pumped tests.
- Instant
- A measurement of a monotonically nondecreasing clock.
Opaque and useful only with
Duration. - KeyData
- Information about a key event.
- Line
Metrics LineMetricsstores the measurements and statistics of a single line in the paragraph.- Linux
Window Config - What a window offers on Linux alone.
- Listed
Entry - One thing in a folder, as Dart’s
FileSystemEntity. - Locale
- An identifier used to select a user’s language and formatting preferences.
- Locale
String Attribute - A string attribute that causes the assistive technologies, e.g. VoiceOver, to treat string as a certain language.
- Macos
Window Config - What a window offers on macOS alone.
- Mask
Blur MaskBlurapplies a Gaussian blur to a draw’s coverage mask.- Mastering
Display - Matrix4
Matrixis a full 4×4 column-major transform.- Media
Metadata - What a player’s media says about itself, from its tags; a field is
Nonewhere it does not say. - Media
Track - One of a player’s media’s tracks.
- Menu
Item - An item of the app’s: what it shows, and whether it can be chosen.
- Menu
Shortcut - The keys that choose an item: a key with modifiers held, as Flutter’s
ShortcutSerializationcarries a trigger and its modifiers. - Metadata
- What the file or folder at a path is, as Dart’s
FileStat. - Movie
Options - What a recording asks for beyond the picture.
- Notification
- A notification: what the system shows under its id.
- Notification
Action - A button on a notification, or a field to reply in.
- Notification
Activation - The user clicked a notification, or one of its actions, or replied.
- Offset
- An immutable 2D floating-point offset.
- Open
Options - How to ask for files to open.
- Open
Request - What the system asks the app to open, at launch or while it runs.
- Paint
Paintdescribes how a drawing operation produces and composites pixels.- Paragraph
- A paragraph of text.
- Paragraph
Builder - Builds a
Paragraphcontaining text with the given styling information. - Paragraph
Constraints - Layout constraints for
Paragraphobjects. - Paragraph
Style - An opaque object that determines the configuration used by
ParagraphBuilderto position lines within aParagraphof text. - Path
- A complex, one-dimensional subset of a plane: dart:ui’s
Path. - Path
Builder PathBuilderrecords commands used to create an immutablePath.- Photo
- A photo, as the system encoded it.
- Pixel
Aspect - The shape of one pixel:
widthtoheight. - Pixel
Rect - A rectangle of a frame’s pixels, from its top-left corner.
- Placement
- Where one frame puts one composition layer: what a host compares to tell a frame worth presenting from one it already shows.
- Player
Error - Why a player failed.
- Player
State - What a player’s media is, and what the system’s player does with it.
- Pointer
Data - Information about the state of a pointer.
- Pointer
Data Packet - A sequence of reports about the state of pointers.
- Pointer
Data Packet Converter - Converts the pointer data a host reports into the form the framework takes, keeping for each device what the framework was last told of it.
- Pointer
Report - What a host saw one pointing device do, as the system reported it.
- Prepared
Programs - Which of the process’s fragment programs one renderer has prepared: what a host keeps beside
each renderer it draws with, to prepare every program made on it before its next draw, as the
engine runs
CacheRuntimeStageon its raster thread when a program loads. - Quaternion
- A rotation as a unit quaternion.
- RRect
- An immutable rounded rectangle with the custom radii for all four corners.
- RSuperellipse
- An immutable rounded superellipse.
- Radius
- A radius for either circular or elliptical shapes.
- RawFloating
Cursor Point - The current state and position of the floating cursor.
- Rect
- An immutable, 2D, axis-aligned, floating-point rectangle whose coordinates are relative to a given origin.
- Request
Id - The number of a request for a view, which the view carries when it arrives
(
View::request_id). - Restoration
Update - What the host answers when the framework asks for the restoration data it stored.
- Save
Options - How to ask where to save a file.
- Scene
- Flutter
Scene: whatSceneBuilder::buildproduces andcrate::View::presenttakes, the root of one frame’s layer tree, flow’sLayerTree. The view knows its own size. - Scene
Builder - Builds a
Scenecontaining the given visuals. - Screen
- A monitor: where it is (the frames, for placing windows) and what drawing on it needs
(Flutter’s
Display:id,devicePixelRatio,refreshRate;Display.sizeis the frame’s size atscale). - Screen
Id - Names a screen: Flutter’s
Display.id, which the embedder API calls aFlutterEngineDisplayId. Each host numbers its screens its own way; a screen keeps its number while it stays connected. - Seek
Tolerance - How far from its target a seek may land, before and after it, for the system to land
sooner: Apple’s tolerances, Media3’s
SeekParameters. A system that seeks only exactly keeps any tolerance. - Selection
Rect - Represents a selection rect for a character and it’s position in the text.
- Semantics
Action - The possible actions that can be conveyed from the operating system accessibility APIs to a semantics node.
- Send
Options - How a request follows redirects and how long each step of it may take.
- Service
Extension Call - One call from a client, which a host hands the framework through
EmbedderClient::service_extension_call. - Service
Extension Params - One call’s parameters: Dart’s
Map<String, String>, as a client sends them. - Service
Extension Reply - The answer to one call, given once, as
AppExitReplyis. Dropped unanswered, it answersServiceExtensionError::Failed, so a client is never left waiting. - Shadow
- A representation of a shadow.
- Shortcut
Modifiers - The modifier keys a shortcut holds.
- Signed
Duration - A span of time, such as 27 days, 4 hours, 12 minutes and 3 seconds, which may be negative.
- Size
- Holds a 2D floating-point size.
- Slices
- What
slicesmakes of a scene. - Snapshot
Delegate - Draws pictures into images on the device of a host’s image store, with a renderer made at the first picture.
- Spell
OutString Attribute - A string attribute that causes the assistive technologies, e.g. VoiceOver, to spell out the string character by character.
- Stroke
Strokedescribes the width, ends, joins, and optional dash pattern of a line.- Strut
Style - Defines the strut, which sets the minimum height a line can be relative to the baseline.
- System
Font Source - The engine’s font manager: the platform’s installed fonts through a
FontManager, and the two family names Flutter’s engine defines for the platform’s own user-interface font. - System
UiOverlay Style - Specifies a system overlay style for a portion of the app.
- TextBox
- A rectangle enclosing a run of text.
- Text
Decoration - A linear decoration to draw near the text.
- Text
Editing Value - The current text, selection, and composing state for editing a run of text.
- Text
Height Behavior - Defines how to apply
TextStyle.heightover and under text. - Text
Input Configuration - Controls the visual appearance of the text input control.
- Text
Input Configuration Builder TextInputConfigurationBuildercollects aTextInputConfiguration’s values, as Dart’s constructor takes them, and fills in the ones left out when it builds.- Text
Input Type - The type of information for which to optimize the text input control.
- Text
Position - A position in a string of text.
- Text
Range - A range of characters in a string of text.
- Text
Selection - A range of text that represents a selection.
- Text
Style - An opaque object that determines the size, position, and rendering of text.
- Time
Range - A span of a player’s media, from
starttoend. - Title
BarArea - The strip along a view’s top that the system’s window buttons sit in, as Windows’s
AppWindowTitleBarreports it (Height,LeftInset,RightInset) and the web’s window controls overlay its title bar area. The view’s padding already keeps content below it; a title bar that draws in the strip keeps its items clear of the insets. - TlsAlert
Received Payload - The payload of
HttpError::TlsAlertReceived, as WASI’sTLS-alert-received-payload. - Typeface
Typefaceis one face the platform matched: a font file, the face’s index in it, and how the platform names and styles that face.- Uniform
Array - An array of bindings to uniforms of the same type
T. Access elements via[]and set them individually. - Uniform
Float Slot - A binding to a uniform of type float. Calling
seton this object updates a float uniform’s value. - Uniform
Mat2 Slot - A binding to a uniform of type mat2. Calling
seton this object updates the uniform’s value. - Uniform
Mat3 Slot - A binding to a uniform of type mat3. Calling
seton this object updates the uniform’s value. - Uniform
Mat4 Slot - A binding to a uniform of type mat4. Calling
seton this object updates the uniform’s value. - Uniform
Vec2 Slot - A binding to a uniform of type vec2. Calling
seton this object updates the uniform’s value. - Uniform
Vec3 Slot - A binding to a uniform of type vec3. Calling
seton this object updates the uniform’s value. - Uniform
Vec4 Slot - A binding to a uniform of type vec4. Calling
seton this object updates the uniform’s value. - Vector3
- A three-dimensional vector.
- Video
Color - What a frame’s samples mean as colour, as its stream says it: the code points of ITU-T
H.273, which every codec and every system’s frame carry.
Noneof a value where neither the stream nor the app said. - Video
Layer - A video, drawn into
rectin its container’s coordinates: Chromium’scc::VideoLayerover its frame provider. The layer holds the reader, never a frame: whoever draws the scene asks the reader then for the frame of the moment the picture reaches the screen, so a frame is held only while it is on screen. - View
Constraints - Immutable layout constraints for a view (
dart:uiViewConstraints). - View
Focus Event - An event for the engine to communicate view focus changes to the app.
Flutter counterpart:
ViewFocusEventindart:ui/platform_dispatcher.dart. - ViewId
- Opaque id for one
View(FlutterView.viewId). - View
Metrics - Per-view geometry the host reports (
_ViewConfigurationfields we use). - View
Padding - Physical padding on each side of a view (
dart:uiViewPadding). - Window
Config - How a window is made. Sizes and positions are logical, in the host’s screen space with the origin at the top left of the primary screen.
- Windows
Icon Resource - An icon in a file, as Windows names one: an
.icofile and the index of its icon, or a module and a resource id as a negative index. - Windows
Relaunch - What a pin of a window starts, and how the pin shows (
System.AppUserModel.RelaunchCommand,RelaunchDisplayNameResource,RelaunchIconResource). - Windows
Window Config - What a window offers on Windows alone: the app it is on the taskbar, which one process may give each of its windows apart, and what a pin of it starts.
Enums§
- AppExit
Response - The possible responses to a request to exit the application.
- AppExit
Type - The type of application exit to perform when calling
ServicesBinding::exit_application. - AppLifecycle
State - States that an application can be in once it is running.
- Blend
Mode BlendModecontrols how source pixels combine with destination pixels.- Blur
Style BlurStylecontrols where blurred coverage appears relative to a shape.- BoxHeight
Style - Defines various ways to vertically bound the boxes returned by
Paragraph::get_boxes_for_range. - BoxWidth
Style - Defines various ways to horizontally bound the boxes returned by
Paragraph::get_boxes_for_range. - Brightness
- Describes the contrast of a theme or color palette.
- Camera
Error - Why a camera did not open, start or run.
- Camera
Facing - Which way a camera looks.
- Camera
Interruption - Why a camera session gives no frames for now.
- Caption
Behavior - When a caption setting applies: Apple’s
MACaptionAppearanceBehavior. - Caption
Typeface - The font captions are drawn in.
- Capture
State - What a camera session is doing.
- Check
State - A checkbox’s state.
- Chroma
Alignment - Clip
- Different ways to clip content.
- ClipOp
ClipOpcontrols how a clip shape changes the current clip.- Clipboard
Error - Why the clipboard was not read or written.
- Clipboard
Event - The user copied, cut or pasted in a view through the platform’s own command: the web’s
copy,cutandpasteevents, AppKit’scopy:,cut:andpaste:actions. What the user copies is written, and what they pasted read, through the event, which may reach what the app’s own calls may not. - Color
Filter - A description of a color filter to apply when drawing a shape or compositing
a layer with a particular
Paint. A color filter is a function that takes two colors, and outputs one color. When applied during compositing, it is independently applied to each pixel of the layer being drawn before the entire layer is merged with the destination. - Color
Range - How much of a sample’s range the picture uses.
- Color
Space - The color space describes the colors that are available to an
Image. - Content
- One form’s content. A file, given or promised, is keyed by the type of what is in it, and
a reader finds it as
URI_LIST. - CueAnchor
- Which side of a cue’s box its
lineorpositionplaces. - CueContent
- What a cue shows.
- CueLine
- Where a cue’s box sits from the top.
- CueText
Alignment - How a cue’s lines align in its box.
- CueText
Edge - What is drawn round a run’s characters to set them off from the picture.
- CueVertical
- Which way a vertical cue’s columns follow each other.
- Drag
Change - The four phases of an external drag, as every toolkit has them.
- Edit
Command - An edit command of a provided item, sent to the focused view: Flutter’s text editing intents for undo, redo, select all and delete.
- Effect
- What a container does to its children: which of flow’s containers it is.
- Entry
Kind - Whether a folder’s entry is a file or a folder.
- File
Dialog Error - Why a file dialog answered nothing the user chose.
- File
Kind - What a path is.
- Fill
Rule FillRuledetermines which regions of overlapping contours are filled.- Filter
Quality - Quality levels for image sampling in
ImageFilterandShaderobjects that sample images and forCanvasoperations that render images. - Floating
Cursor Drag State - The state of a “floating cursor” drag on an iOS soft keyboard.
- Font
Style - Whether to use the italic type variation of glyphs in the font.
- Generic
Caption Font - The kinds of font caption standards name: Windows’
ClosedCaptionStyleand Apple’sMACaptionAppearanceFontStyle, their defaults aside. - GpuId
- A GPU as its system names it to every API on it and to other processes: what anything that
makes GPU memory for another is told, so the memory opens where it is read. Memory shared by
handle opens only on the adapter that made it: a D3D texture shared by NT handle on Windows, a
dmabuf in a tiled layout on Linux. An
IOSurfaceand anAHardwareBufferopen on any of their system’s GPUs, so Apple’s systems and Android name none. - Haptic
Feedback Type - The kind of haptic feedback to play.
- Hardware
Buffer Format - How a hardware buffer lays out its pixels: one plane of colour, as an app draws, or a video
decoder’s own planes of brightness and colour difference, which the system’s decoders write and
its compositor shows with no conversion. What the samples mean as colour (matrix, range) is the
picture’s (
VideoFrame::color), not the buffer’s. - Http
Error - Why a request got no response, or its body stopped short.
- Image
Decode Error - Why an image could not be read. Flutter reports these as an exception on the codec future.
- Image
Filter - A filter operation to apply to a raster image.
- Image
Repetition - How an animation repeats once it has played through.
- KeyEvent
Device Type - The source device for the key event.
- KeyEvent
Type - The type of a key event.
- Layer
- One node of a frame’s layer tree: the engine’s
flow::Layer. - Layer
Picture - What a composition layer shows now (
CompositionLayer::current_picture), as raw memory or a lent frame, as the app holds either. - Macos
Title Bar - The title bar of a macOS window.
- Matrix
Kind MatrixKindclassifies the behavior relevant to two-dimensional rendering.- Media
Error - Why a camera session’s photo or recording answered nothing.
- Media
Track Kind - What a track carries.
- Menu
Entry - One entry of a menu.
- Menu
Item Check - Whether an item shows a check, and which.
- Mutator
- One thing a container above a composition layer does to it: Flutter’s
Mutator. Each is in the coordinates the transforms before it lead to. - Notification
Error - Why a notification was not posted.
- Open
Error - Why a link or a file did not open.
- Open
Mode - Dart
FileMode: what an opened file may do, and where it starts. - Paint
Style PaintStyleselects filled geometry or a stroked outline.- Part
- One part of a scene, in paint order.
- Path
Operation PathOperationis howPath::combinejoins the areas of two paths: Skia’sSkPathOp, dart:ui’sPathOperation.- Pause
Reason - Why a player is paused.
- Permission
State - Where the user’s permission stands.
- Picked
File - A file the user picked, as the system gives it.
- Picked
Folder - A folder the user picked, as the system gives it.
- Placeholder
Alignment - Where to vertically align the placeholder relative to the surrounding text.
- Player
Activity - What a player is doing: Apple’s
timeControlStatus, Windows’PlaybackState. - Player
Error Kind - The kind of a player’s failure, which an app words for its user and acts on: the web’s
MediaErrorand Windows’MediaPlayerErrorshare the first three, and Apple’sAVErrorand Media3’s error codes fall into them. - Player
Status - How far a player got with its media.
- Pointer
Change - How the pointer has changed since the last report.
- Pointer
Device Kind - The kind of pointer device.
- Pointer
Signal Kind - The kind of pointer signal event.
- Provided
Item - An item the system itself provides, which acts as the system’s own does.
- RawWindow
Handle - A window handle for a particular windowing system.
- Redirect
Policy - What a client does with a redirect: follows it, up to a number, or answers the redirect response itself.
- Reported
Change - How a device changed, with what the framework takes of that change.
- Restoration
Data - One value in the restoration data, of the kinds
StandardMessageCodeccan carry. - Semantics
HitTest Behavior - How a semantics node handles pointer events for the platform’s accessibility layer.
- Semantics
Input Type - Describe the type of data for an input field.
- Semantics
Role - An enum to describe the role for a semantics node.
- Semantics
Validation Result - The validation result of a form field.
- Service
Extension Error - Why a call has no answer: the errors Dart’s
ServiceExtensionResponse.errorreports. - Shader
Shaderdetermines the color painted at each point of a drawing operation.- Smart
Dashes Type - Indicates how to handle the intelligent replacement of dashes in text input.
- Smart
Quotes Type - Indicates how to handle the intelligent replacement of quotes in text input.
- System
Bars Behavior - What a swipe from a screen’s edge does while the bars are hidden: Android’s
WindowInsetsController.setSystemBarsBehavior. - System
Context Menu Item - A button to show in the system-rendered context menu.
- System
Mouse Cursor Kind - A system cursor kind (
SystemMouseCursor.kind). The host maps each to its native cursor and shows the basic arrow for one it lacks;Nonehides the cursor. - Target
Platform - The platform that user interaction should adapt to target.
- Text
Affinity - A way to disambiguate a
TextPositionwhen its offset could match two different locations in the rendered string. - Text
Align - Whether and how to align text horizontally.
- Text
Baseline - A horizontal line used for aligning text.
- Text
Capitalization - Configures how the platform keyboard will select an uppercase or lowercase keyboard.
- Text
Decoration Style - The style in which to draw a text decoration
- Text
Direction - A direction in which text flows.
- Text
Input Action - An action the user has requested the text input control to perform.
- Text
Leading Distribution - How the leading of the text is distributed over and under the text.
- Title
BarAction - What a double-click on a window’s title bar does
(
HostWindow::title_bar_double_click_action). - Tray
Icon Error - Why a tray icon did not appear.
- Tray
Icon Event - What happened to a tray icon, as its system reports it: each system reports some of these.
Positions are in the coordinates of
HostWindow::frameon macOS and Windows; a Linux desktop gives its own, which on Wayland are often zero. - Uniform
Error - Why a uniform could not be looked up: the
ArgumentErrors andIndexErrors Dart throws, each displayed with Dart’s message. - Video
Output - Where a player sends its picture, one destination at a time.
- View
Error - Why a request for a view got no view.
- View
Focus Direction - Represents the direction in which focus transitioned across views.
- View
Focus State - Represents the focus state of a given view.
- Wait
Reason - Why a player waits to play.
- Window
Background - What the window shows behind the app’s painting. Anything but
Solidlets what is behind the window show where the app paints nothing. - Window
Level
Constants§
- K_
TEXT_ HEIGHT_ NONE - A
TextStyle.heightvalue that indicates the text span should take the height defined by the font, which may not be exactly the height offontSize. - URI_
LIST - The type a pasted file is read in: its
file:URL, one line per file (RFC 2483), as every system carries a file on its clipboard as a reference.
Traits§
- AppExit
- The application quitting itself: the
System.exitApplicationmessage of Flutter’sSystemChannels.platform, for a required exit. A cancelable exit never reaches the host: the framework asks its own listeners first (ServicesBinding::exit_application), and quits here once they agree. - Attached
Menu - A tray icon’s menu the system opens by itself.
- Body
Stream - A body on its way to or from a server: bytes read a piece at a time, the length when the
sender said it, and trailers once the body has ended. Read as
FileStreamis. - Camera
Device - A camera the app opened, controlled on the app’s main thread: Camera2’s
CameraDevice. A session started on it runs on after it is dropped. - Cameras
- The system’s cameras, or
NonefromPlatform::cameraswhere it has none. - Canvas
Text - Paragraph drawing on a
Canvas(Dart’sCanvas.drawParagraph). - Caption
Settings - The user’s system-wide caption settings: Apple’s
MACaptionAppearance, Android’sCaptioningManager, Windows’ClosedCaptionProperties. - Capture
Session - A camera running for the app, controlled on the app’s main thread. Dropped, it stops for the app: its preview leaves the layer it showed on, and its reader reads nothing more.
- Clipboard
- The system clipboard. Every call answers later, as a host may have to ask its user, or another process, first.
- Composition
Layer - One layer of the compositor’s tree. Every method may be called from any thread.
- Compositor
- The host’s compositor, as an app reaches it.
- Data
Transfer Item - One item on the clipboard, as it was when the clipboard was listed, or of a drag
(
DragReport): the web’sDataTransferItem, the item its clipboard events and its drag and drop both hand over. - Dispatcher
- The host’s threads as any thread reaches them: the two things the framework asks of them.
gpui’s
PlatformDispatcher. Flutter’s embedder API has the first aspost_task_callback, with its target time, and keeps the second — the engine’s own worker threads — to itself. - Dock
Menu - The menu of the app’s Dock icon: macOS’s.
- Embedder
Client - Complete frames and typed view lifecycle notifications.
- File
- A file opened through
Files::open, read and written at an offset and streamed. - File
Dialogs - The system’s file dialogs.
parentis the view whose window a dialog belongs to, which the system shows it on, as a sheet where it has them (macOS); without one it stands alone. - File
Handle - A picked file the system gives no path for, read and written at any offset.
- File
Sink - Where a promised file’s bytes go, in order: the host’s, which writes them into the file where
the receiver chose, as
NSFilePromiseProviderwrites at the receiver’s URL. - File
Stream - A picked file that can only be read through, once, start to end.
- File
Writer - Writing to a picked file.
- Files
- The host’s file system.
- Folder
Handle - A picked folder the system gives no path for: what is in it, opened by name, and, when the pick is writable, files and folders made in it. What it opens is writable when it is.
- Font
Manager FontManageris the platform’s font lookup, in the shape of Skia’sSkFontMgr.- Font
Source FontSourcelocates fonts that are not already registered.- Haptics
- Flutter’s
HapticFeedback. - Hardware
Buffer - One block of pixels in memory the GPU, the system’s compositor and other processes all reach. Every method may be called from any thread.
- Hardware
Buffer Allocator - What makes the app’s hardware buffers: the role of Android’s graphics allocator (gralloc’s
IAllocator), Fuchsia’s sysmemAllocatorand a GBM device on Linux.NonefromSystemGpu::hardware_buffer_allocatorwhere the system allocates none. It may be called from any thread, as a producer allocates a buffer where it draws. - Host
Embedded View - The host’s side of a view the app added, which its
EmbeddedView’s calls reach. A host implements it for the views it embeds, as it implementsHostWindowfor its windows. - Host
Window - The window around a view the host puts on screen in a window the app may manage.
- Http
Client - Sends HTTP requests. One client outlives many requests, and every request may be in flight at once.
- Image
Codec - One encoded image, opened and ready to give up its frames. Flutter dart:ui
Codec. - Media
Asset - One piece of media, read on the app’s main thread. Each answer is a future of its own, which resolves once the system has read what it asks, with a player’s failure where the system could not; dropping the asset leaves each future to resolve.
- Media
Assets - The system’s reading of media without playing it, or
NonefromPlatform::media_assetswhere it has none: a library’s lengths, titles and thumbnails before anything plays. Every system has this beside its player: Apple’sAVAssetandAVAssetImageGenerator, Android’sMediaMetadataRetriever, Windows’MediaClip. - Media
Player - One player, controlled on the app’s main thread. Dropped, it stops, and its picture goes nowhere: it leaves the layer it showed on, and its reader reads nothing more.
- Menu
AtIcon - A tray icon’s menu the app opens.
- MenuBar
- The app’s menu bar: macOS’s. Where the system has none, the platform answers
Noneand the app draws its own. - Notification
Permission - The user’s permission to notify, as the system keeps it for the app and asks for it.
- Notification
Replies - Typed replies, where the system takes them.
- Notification
Scheduling - Delivery at a later time, which the system holds whether or not the app runs.
- Notifications
- The system’s notifications.
- Opener
- The system’s way to open links and files in other apps.
- Platform
- The long-lived host object held by the application.
- Players
- The system’s players, or
NonefromPlatform::playerswhere it has none. - Popup
Menus - A menu the system opens at a point in a view, answered with the item chosen.
- Restoration
- Flutter’s restoration channel: state kept across relaunches.
- Screens
- The screens the app’s views are on: what drawing on each needs, as Flutter’s
PlatformDispatcher.displayslists them, and where each is, for an app that places a window against something on them, such as an edge or its own icon, which Flutter’sDisplayhas no place for. Positions are in the coordinates ofHostWindow::frame: logical points from the top-left corner of the main screen, y growing down. - String
Attribute - An abstract interface for string attributes that affects how assistive technologies, e.g. VoiceOver or TalkBack, treat the text.
- System
Bars - The bars the system draws over a view, the status bar and on Android the navigation bar, which
Flutter’s
SystemChromespeaks to for the app as a whole: each window carries its own bars, so here they are the view’s, as Flutter’s Android embedding applies them to its one activity’s window. - System
Chrome - Flutter’s
SystemChrome: the system UI around the app as a whole. The overlays drawn over a view are its host’s (ViewHost::system_bars). - System
Context Menu - Flutter’s
SystemContextMenu: the system’s own menu over a text selection. - System
Gpu - One of the system’s GPUs (
Platform::gpu). - Text
Input Host - The host side of Flutter’s text input connection for one view: the calls Flutter’s framework
sends its engine on the
flutter/textinputchannel, one method each. - Text
Services - The text services a selection toolbar offers: Flutter’s LookUp, SearchWeb and Share platform-channel calls.
- Tray
Icon - An icon in the system’s tray, removed when dropped. What it offers is what its system allows; its conventions, such as a menu opened on a right click, are the app’s or the framework’s.
- Tray
Icons - The app’s icons in the system’s tray: macOS’s status items, Windows’ notification area, Linux’s StatusNotifierItems.
- Video
Frame - One picture of a video as the system hands it out, as WebCodecs’
VideoFrame: lent with its slot in the decoder’s pool, which it holds until it, its hardware buffer and every texture imported of the buffer are dropped. Its memory is aHardwareBuffer, GPU memory the system’s compositor reaches too, which the app draws through a texture it imports (Platform::import_texture), the hardware codecs encode and a composition layer shows; memory the app holds of its own, which no pool waits for, is a buffer it allocates (HardwareBufferAllocator) or an image the hardware codecs decoded. - Video
Frame Reader - The pictures of the one source a reader is given to, read from any thread as they are drawn.
It takes one source at a time, as Android’s
ImageReadertakes one producer: given to a second while the first still feeds it, it is refused, and the second sends its frames nowhere. A reader keeps no frame for later: one not read before the next arrives is dropped. - Video
Frame Readers - The system’s frame readers, or
NonefromPlatform::video_frame_readerswhere it hands out no frames. - View
- A stable handle to one host-provided view.
- View
Embedder - What the app uses to embed views of its own, as Flutter’s embedder does: adding one on a layer
it makes and places, which answers the view’s handle (
EmbeddedView), and handing any view input (Platform::view_embedder). - View
Host - What one view asks of the system, provided by whoever hosts the view: a window’s view gets its
window’s. Chromium’s
RenderWidgetHostViewand Android’sSurfaceControlViewHostare this piece; where Flutter’s embedders take the same requests on the platform as a whole, throughSystemChannels.textInput,SystemChannels.mouseCursor,SystemChannels.platformandPlatformDispatcher.requestViewFocusChange, here each view’s own host takes them. - Vsync
Observer - What a
VsyncWaitercalls at the refresh it was asked for. - Vsync
Waiter - Flutter’s
VsyncWaiter, for any screen. - Window
Size Limits - The limits a window the user resizes keeps its view within, its content without the system’s
title bar and border, in logical points: Flutter’s
BoxConstraintson a window, its minimum and maximum apart. A limit holds from when it is set until it is set again, andNoneremoves it.
Functions§
- clamp_
double - Same as
f64::clampbut maps NaN tomax. - compose
- Composes a matrix from
translation,rotationandscale. - decompose
- Decomposes
matrixinto its translation, rotation and scale components. - default_
font_ families - Flutter
txt::GetDefaultFontFamilies()of the engine built foros, from that OS’s file (txt/platform_mac.mm,platform_linux.cc, …): the families text is drawn in when its style names none, first match first. - encode_
png pixelsencoded as a PNG’s bytes, or why they could not be.- file_
uri pathas afile:URI, whichfile_uri_pathreads back: made absolute against the working folder, its separators/, and every byte a URI’s path may not hold as is percent-encoded. A Windows drive keeps its colon, and a Windows share is the URL’s host.- file_
uri_ path - The path a
file:URI names on this system, its percent-encoding decoded;Nonefor another URI, one on another host, or one that does not decode. - flattened_
ops - The picture’s operations in replay order with every embedded list’s following its embedding op, for a test or a diagnostic that asks what a scene draws regardless of how its layers nested it.
- lerp_
double - Linearly interpolate between two numbers,
aandb, by an extrapolation factort. - lerp_
int - Linearly interpolate between two integers.
- path_
combine - Combines the two paths according to the manner specified by the given
operation: dart:ui’sPath.combine, Skia’sOp, which reads each path with its own fill type. - rrect_
radii_ elliptical - Per-corner elliptical radii in valo’s order (clockwise from top-left).
- rsuperellipse_
radii_ elliptical - Per-corner elliptical radii in valo’s order (clockwise from top-left).
- set_
default_ font_ manager - Flutter
skia::textlayout::FontCollection::setDefaultFontManager: register the faces offamilies, the platform’s default families, as the collection’s fallback chain, then keepsourcefor later lookups. - slices
- The scene’s slices and composition layers, in paint order: what Flutter’s embedder hands its
compositor as
FlutterLayers, before any slice is rendered.frame_imageanswers the image of the frame each video’s reader shows in this draw,Nonefor one with nothing to show; a host without video answersNonefor all. - transform3
- Transforms a point as a 3-vector, with no perspective division.
Type Aliases§
- Body
Read AllFuture - A
Body::read_allanswer: the body, whole. - Body
Read Future - A
BodyStream::readanswer: bytes read, or why the body stopped short. - Body
Trailers Future - A
BodyStream::trailersanswer: the trailers, or why the body stopped short. - Camera
List Future - What listing the cameras answers.
- Camera
Open Future - What opening a camera answers.
- Camera
Start Future - What starting a camera answers.
- Canvas
- Flutter
Canvas— valo records into a display list. - Clipboard
Items Future - What is on the clipboard, on its way.
- Clipboard
Read Future - One form of a pasted item, on its way.
- Clipboard
Write Future - A write of the clipboard, on its way.
- Content
Future - A promised form being produced: its content, or none when it could not be made.
- Engine
Layer - dart:ui’s
EngineLayer: a container of the tree, whichpopreturns andadd_retainedadds again, as the same node, while the framework’s subtree has not changed. - File
Dialog Future - What a file dialog answers, once the user has chosen or cancelled.
- File
Finish Future - File
Metadata Future - What a path is.
- File
Open Future - File
Operation Future - A rename or a delete.
- File
Read Future - File
Size Future - File
Write Future - Folder
Entries Future - What a folder’s listing answers.
- Http
Future - A request on its way to a server, and the response once its head arrives.
- Image
Codec Future - A codec being opened. Flutter’s
Future<ui.Codec>. - Image
Frame Future - A frame being decoded. Flutter’s
Future<ui.FrameInfo>. - List
Files Future - What a folder holds.
- Media
Asset Future - What reading a media asset answers.
- Media
Change Future - What a player’s, a session’s, the cameras’ or the caption settings’
changedanswers. - MenuId
- The id the app gives a menu’s entry, which a choice comes back by.
- Open
File Future - A file opened.
- Open
Future - What opening answers, once the system has handed the link or the file on.
- Painting
Style - Flutter
PaintingStyle— valo’sPaintStyle: whether aPaintfills a shape or strokes its outline. ItsStrokevariant carries theStroke(width, cap, join, miter limit) that a DartPaintkeeps in fields of its own. - Path
Fill Type - Flutter
PathFillType— valo’sFillRule: how the interior of aPathis calculated, which valo takes beside the path’s contours wherever it fills, clips to or hit tests them. - Permission
Future - Photo
Future - What taking a photo answers.
- Picture
- Flutter
Picture— a finished display list, what a scene’s layers hold and what a host draws. - Platform
Ref - Popup
Menu Future - A menu on screen: the id of the item chosen, once it closes. Flutter’s
Future<int?>from a platform call. - Post
Future - What a post answers, once the system has the notification.
- Read
File Future - A whole file read.
- Recording
Future - What a recording answers once it ends.
- Restoration
Map - Flutter’s
Map<Object?, Object?>of restoration data: insertion-ordered, keyed by value. - Service
Extension Result - What a service extension answers: Dart’s
ServiceExtensionResponse.result, the JSON a callback’s map encodes to, or the reason there is none. - String
Attribute Ref - A shared
StringAttribute; Dart’s identity is theRc’s. - Stroke
Cap - Flutter
StrokeCap— valo’sCap: how a stroke ends at an open contour,Buttby default. - Tray
Icon Future - The icon a
TrayIcons::addmade, or why the system did not show it. - Tray
Icon Id - The id of a tray icon, which its events come by.
- ViewRef
- Window
Ref - Write
File Future - A whole file written.
- Write
Future - A promised file’s bytes being produced into its sink: whole once it resolves
Ok.