Skip to main content

Crate fidl_fuchsia_ui_composition

Crate fidl_fuchsia_ui_composition 

Source

Modules§

allocator_ordinals
child_view_watcher_ordinals
flatland2_ordinals
flatland_display_ordinals
flatland_factory_ordinals
flatland_ordinals
parent_viewport_watcher_ordinals
screen_capture_ordinals
screenshot_ordinals
trusted_flatland_factory_ordinals
trusted_flatland_ordinals

Macros§

BlendMode2Unknown
Pattern that matches an unknown BlendMode2 member.
FlatlandFactoryErrorUnknown
Pattern that matches an unknown FlatlandFactoryError member.
HitTestInteractionUnknown
Pattern that matches an unknown HitTestInteraction member.
ScreenCaptureErrorUnknown
Pattern that matches an unknown ScreenCaptureError member.
ScreenshotFormatUnknown
Pattern that matches an unknown ScreenshotFormat member.
TrustedFlatlandFactoryErrorUnknown
Pattern that matches an unknown TrustedFlatlandFactoryError member.

Structs§

AllocatorControlHandle
AllocatorEventStream
AllocatorMarker
AllocatorProxy
AllocatorRegisterBufferCollectionRequest
AllocatorRegisterBufferCollectionResponder
AllocatorRequestStream
A Stream of incoming requests for fuchsia.ui.composition/Allocator.
AllocatorSynchronousProxy
BufferCollectionExportToken
A typed wrapper for an eventpair, representing the registry endpoint of a buffer collection.
BufferCollectionImportToken
A typed wrapper for an eventpair, representing the Image import endpoint of a buffer collection.
ChildViewWatcherControlHandle
ChildViewWatcherEventStream
ChildViewWatcherGetStatusResponder
ChildViewWatcherGetStatusResponse
ChildViewWatcherGetViewRefResponder
ChildViewWatcherGetViewRefResponse
ChildViewWatcherMarker
ChildViewWatcherProxy
ChildViewWatcherRequestStream
A Stream of incoming requests for fuchsia.ui.composition/ChildViewWatcher.
ChildViewWatcherSynchronousProxy
ColorRgba
Represents a color with alpha channel. Values are unorm (i.e. the valid range is [0,1]), and are in linear color space. They are not gamma-corrected nor premultiplied.
ContentId
A user-defined identifier for a particular piece of Content. See Content creation functions (e.g. [CreateViewport], [CreateImage]) for more information.
Flatland2ControlHandle
Flatland2CreateImage2Request
Flatland2CreateLayerRequest
Flatland2CreateLayerStackRequest
Flatland2CreateViewport2Request
Flatland2EventStream
Flatland2Marker
Flatland2Proxy
Flatland2ReleaseImage2Request
Flatland2ReleaseLayerRequest
Flatland2ReleaseLayerStackRequest
Flatland2ReleaseViewport2Request
Flatland2ReleaseViewport2Responder
Flatland2ReleaseViewport2Response
Flatland2RequestStream
A Stream of incoming requests for fuchsia.ui.composition/Flatland2.
Flatland2ResetLayerRequest
Flatland2SetLayerImageRequest
Flatland2SetLayerPropertiesRequest
Flatland2SetStackLayersRequest
Flatland2SetTransformContentRequest
Flatland2SetViewportProperties2Request
Flatland2SynchronousProxy
FlatlandAddChildRequest
FlatlandConfig
Configuration parameters for instantiating a regular Flatland session.
FlatlandControlHandle
FlatlandCreateFilledRectRequest
FlatlandCreateImageRequest
FlatlandCreateTransformRequest
FlatlandCreateView2Request
FlatlandCreateViewRequest
FlatlandCreateViewportRequest
FlatlandDisplayControlHandle
FlatlandDisplayEventStream
FlatlandDisplayMarker
FlatlandDisplayProxy
FlatlandDisplayRequestStream
A Stream of incoming requests for fuchsia.ui.composition/FlatlandDisplay.
FlatlandDisplaySetContentRequest
FlatlandDisplaySetDevicePixelRatioRequest
FlatlandDisplaySynchronousProxy
FlatlandEventStream
FlatlandFactoryControlHandle
FlatlandFactoryCreateFlatlandRequest
FlatlandFactoryCreateFlatlandResponder
FlatlandFactoryEventStream
FlatlandFactoryMarker
FlatlandFactoryProxy
FlatlandFactoryRequestStream
A Stream of incoming requests for fuchsia.ui.composition/FlatlandFactory.
FlatlandFactorySynchronousProxy
FlatlandMarker
FlatlandOnErrorRequest
FlatlandOnFramePresentedRequest
FlatlandOnNextFrameBeginRequest
FlatlandPresentRequest
FlatlandProxy
FlatlandReleaseFilledRectRequest
FlatlandReleaseImageRequest
FlatlandReleaseTransformRequest
FlatlandReleaseViewport2Responder
FlatlandReleaseViewportRequest
FlatlandReleaseViewportResponder
FlatlandReleaseViewportResponse
FlatlandRemoveChildRequest
FlatlandReplaceChildrenRequest
FlatlandRequestStream
A Stream of incoming requests for fuchsia.ui.composition/Flatland.
FlatlandSetClipBoundaryRequest
FlatlandSetContentRequest
FlatlandSetDebugNameRequest
FlatlandSetHitRegionsRequest
FlatlandSetImageBlendModeRequest
FlatlandSetImageBlendingFunctionRequest
FlatlandSetImageDestinationSizeRequest
FlatlandSetImageFlipRequest
FlatlandSetImageOpacityRequest
FlatlandSetImageSampleRegionRequest
FlatlandSetInfiniteHitRegionRequest
FlatlandSetOpacityRequest
FlatlandSetOrientationRequest
FlatlandSetRootTransformRequest
FlatlandSetScaleRequest
FlatlandSetSolidFillRequest
FlatlandSetTranslationRequest
FlatlandSetViewportPropertiesRequest
FlatlandSynchronousProxy
FlipThenRotate
Bitset which supports all permutations of flips and rotations. Flips (if any) are performed first, followed by rotation (if any).
FrameInfo
Metadata about the frame rendered by [GetNextFrame].
GetNextFrameArgs
The arguments passed into the [GetNextFrame] call. All fields are necessary.
HitRegion
An interactive area of a View, placed in the coordinate space of a specific Transform.
ImageId
A user-defined identifier for a particular image created with [Flatland.CreateImage2].
ImageProperties
The properties of an Image as defined by the client. These properties determine how an Image uses the backing BufferCollection. See [CreateImage] for more information.
LayerId
Zero identifiers: zero is never a valid identifier, for any of these types; each Create* method rejects it. Unlike the classic API (where, e.g., [Flatland.SetContent] accepts id 0 to clear a Transform’s content), Flatland2 never uses a zero id to express clearing; where clearing is possible, it is expressed by omitting an optional field (see [Flatland.SetTransformContent]).
LayerProperties
Stateful properties associated with a Layer.
LayerStackId
A user-defined identifier for a particular layer stack created with [Flatland.CreateLayerStack].
LayoutInfo
The return type of [GetLayout]. This table contains most of the information necessary for a client to decide how to layout their content in a Flatland session. This data may be provided to the client before the command that creates the View is presented, so that the client may lay out content properly before their first call to [Present].
OnNextFrameBeginValues
Fields that a client needs in order to produce its next frame, returned in [OnNextFrameBegin]. Each field is guaranteed to be set and contain valid information.
ParentViewportWatcherControlHandle
ParentViewportWatcherEventStream
ParentViewportWatcherGetLayoutResponder
ParentViewportWatcherGetLayoutResponse
ParentViewportWatcherGetStatusResponder
ParentViewportWatcherGetStatusResponse
ParentViewportWatcherMarker
ParentViewportWatcherProxy
ParentViewportWatcherRequestStream
A Stream of incoming requests for fuchsia.ui.composition/ParentViewportWatcher.
ParentViewportWatcherSynchronousProxy
PresentArgs
Arguments passed into [Present]. All arguments are optional, and if an argument is omitted Flatland will use a reasonable default, specified below.
RegisterBufferCollectionArgs
The table of arguments for [RegisterBufferCollection]. Note that some fields below are REQUIRED.
RegisterBufferCollectionUsages
The possible usages for a registered buffer collection. Can be a combination of options.
ScreenCaptureConfig
The arguments passed into the [Configure] call. Note that not all fields are necessary.
ScreenCaptureConfigureResponder
ScreenCaptureControlHandle
ScreenCaptureEventStream
ScreenCaptureGetNextFrameResponder
ScreenCaptureMarker
ScreenCaptureProxy
ScreenCaptureReleaseFrameRequest
ScreenCaptureReleaseFrameResponder
ScreenCaptureRequestStream
A Stream of incoming requests for fuchsia.ui.composition/ScreenCapture.
ScreenCaptureSynchronousProxy
ScreenshotControlHandle
ScreenshotEventStream
ScreenshotMarker
ScreenshotProxy
ScreenshotRequestStream
A Stream of incoming requests for fuchsia.ui.composition/Screenshot.
ScreenshotSynchronousProxy
ScreenshotTakeFileRequest
ScreenshotTakeFileResponder
ScreenshotTakeFileResponse
ScreenshotTakeRequest
ScreenshotTakeResponder
ScreenshotTakeResponse
TransformId
A user-defined identifier for a particular transform. See [CreateTransform] and [ReleaseTransform] for more information.
TrustedFlatlandConfig
All arguments are optional; default values will be provided if they are absent. By default, the resulting Flatland will behave identically to connecting to the [Flatland] service instead of connecting via the factory.
TrustedFlatlandControlHandle
TrustedFlatlandEventStream
TrustedFlatlandFactoryControlHandle
TrustedFlatlandFactoryCreateFlatlandRequest
TrustedFlatlandFactoryCreateFlatlandResponder
TrustedFlatlandFactoryEventStream
TrustedFlatlandFactoryMarker
TrustedFlatlandFactoryProxy
TrustedFlatlandFactoryRequestStream
A Stream of incoming requests for fuchsia.ui.composition/TrustedFlatlandFactory.
TrustedFlatlandFactorySynchronousProxy
TrustedFlatlandMarker
TrustedFlatlandProxy
TrustedFlatlandReleaseImageImmediately2Request
TrustedFlatlandReleaseImageImmediatelyRequest
TrustedFlatlandRequestStream
A Stream of incoming requests for fuchsia.ui.composition/TrustedFlatland.
TrustedFlatlandSynchronousProxy
ViewBoundProtocols
The protocol endpoints bound to a Flatland ViewCreationToken. These protocols operate on the View that ViewCreationToken created in the Flatland session.
ViewportId
A user-defined identifier for a particular viewport created with [Flatland.CreateViewport2].
ViewportProperties
The properties of a Viewport as defined by the parent. This data, along with the set of attached Transforms, will be used to compute the LayoutInfo for the View of the Viewport. ViewportProperties must have logical_size set at least once. This is the initial size that will drive the layout of the child.

Enums§

AllocatorEvent
AllocatorRequest
BlendMode
The set of possible blending functions to choose from when determining how an image should be composited on top of other images.
BlendMode2
The set of possible blending functions to choose from when determining how an image should be composited on top of other images.
ChildViewStatus
ChildViewWatcherEvent
ChildViewWatcherRequest
A protocol that provides information about a particular child View which is attached to the Viewport owned by the parent client; connections to this protocol are estabished in [CreateViewport]. Since a Flatland session may contain any number of Viewports, each of which may or may not be attached to a transform, the client can maintain connections to an equal number of ChildViewWatcher instances.
CompositionMode
Selects what a Layer composites: an image, a solid color, or nothing at all.
Flatland2Event
Flatland2Request
This protocol is composed into the “classic” [Flatland] protocol, and cleans up some “warts” in the original design.
FlatlandDisplayEvent
FlatlandDisplayRequest
This API connects to the singleton “primary display”, and allows a tree of Flatland content to be attached underneath. Only one FlatlandDisplay client connection is allowed at one time.
FlatlandError
The set of error codes returned in [OnError]. Any error causes the Flatland channel to be closed.
FlatlandEvent
FlatlandFactoryError
An error that can occur when using [fuchsia.ui.composition/FlatlandFactory.CreateFlatland].
FlatlandFactoryEvent
FlatlandFactoryRequest
Factory protocol for spawning regular (untrusted) Flatland sessions.
FlatlandRequest
Each Flatland session contains a Graph, which consists of a set of objects, and the relationships between those objects. The client can specify a subset of those objects (specifically, the directed acyclic graph starting at the root transform) to be presented as content to some kind of output – usually, a display.
HitTestInteraction
The kind of hit test interaction expected for a hit region.
ImageFlip
The set of possible image flip functions to choose from when determining how the image texture should be displayed.
Orientation
In Flatland, the +X axis is to the right and +Y axis is down. There is no notion of a Z axis. Due to the lack of a Z axis, there is no mathematical notion of “handedness” (either right or left) with respect to rotation. Thus, we define a counter-clockwise rotation in the same way as if a skeuomorphic clock were to be displayed on the screen, with the hands of said clock moving in a CCW motion from the POV of the observer.
ParentViewportStatus
ParentViewportWatchers will be informed when they are actively attached to a output display (either directly, or through a chain of parent Viewports) and when they are not. Until they are connected to a display, some pieces of information (such as pixel scale) may be unavailable.
ParentViewportWatcherEvent
ParentViewportWatcherRequest
A protocol that provides information about the parent Viewport attached to a Flatland session’s sole View. Although Flatland sessions can have at most one view, it is possible to have multiple ParentViewportWatchers during the brief transition period when replacing the session’s View with another, e.g. via [CreateView]. During this period, certain updates may be duplicated and sent to each ParentViewportWatcher connection.
RegisterBufferCollectionError
The set of error codes returned by Allocator::RegisterBufferCollection().
RegisterBufferCollectionUsage
The possible usages for registered buffer collection.
Rotation
The rotation to be applied to the image.
ScreenCaptureError
The possible errors from the ScreenCapture protocol.
ScreenCaptureEvent
ScreenCaptureRequest
This protocol provides a low-level ScreenCapture API for clients to use. ScreenCapture clients should familiarize themselves with the [fuchsia.sysmem/BufferCollection] and [fuchsia.ui.composition/Allocator] protocols as those are necessary to create the BufferCollections and images ScreenCapture uses.
ScreenshotEvent
ScreenshotFormat
The different formats of Screenshot that can be requested.
ScreenshotRequest
Collects the current graphical content of a display.
SignalFence
A fence that will be signaled by Scenic when some condition becomes true. For more details, refer to the method the fence appears in.
TransformContent
Content that can be attached to a Transform when Flatland2 is enabled.
TrustedFlatlandEvent
TrustedFlatlandFactoryError
An error that can occur when using the [TrustedFlatlandFactory].
TrustedFlatlandFactoryEvent
TrustedFlatlandFactoryRequest
A privileged factory for creating Flatland sessions with special configurations.
TrustedFlatlandRequest
A privileged protocol for trusted Flatland sessions that require special capabilities.
WaitFence
A fence that will be signaled when the associated resource is ready for Scenic to use. For context-specific usage info, refer to the method the fence appears in.

Constants§

MAX_ACQUIRE_RELEASE_FENCE_COUNT
MAX_CHILD_TRANSFORMS
A maximum of 64 child transforms is enough for the expected usage of these APIs. Callers may beyond this limit using [AddChild].
MAX_HIT_REGION_COUNT
A maximum of 64 hit regions is enough for the expected usage of these APIs.
MAX_PRESENT_ARGS_FENCE_COUNT
MAX_STACK_LAYERS
A maximum of 32 layers per stack is enough for the expected usage of these APIs.

Traits§

AllocatorProxyInterface
ChildViewWatcherProxyInterface
Flatland2ProxyInterface
FlatlandDisplayProxyInterface
FlatlandFactoryProxyInterface
FlatlandProxyInterface
ParentViewportWatcherProxyInterface
ScreenCaptureProxyInterface
ScreenshotProxyInterface
TrustedFlatlandFactoryProxyInterface
TrustedFlatlandProxyInterface

Type Aliases§

AllocatorRegisterBufferCollectionResult
FlatlandFactoryCreateFlatlandResult
FuturePresentationInfos
A user-defined identifier for future presentation info. A maximum of 8 future presentation counts is enough for the current usage of these APIs.
ScreenCaptureConfigureResult
ScreenCaptureGetNextFrameResult
ScreenCaptureReleaseFrameResult
TrustedFlatlandFactoryCreateFlatlandResult