Skip to main content

Crate fidl_fuchsia_ui_composition_common

Crate fidl_fuchsia_ui_composition_common 

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§

ChildViewWatcherGetStatusResponse
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.
Flatland2CreateLayerRequest
Flatland2CreateLayerStackRequest
Flatland2ReleaseImage2Request
Flatland2ReleaseLayerRequest
Flatland2ReleaseLayerStackRequest
Flatland2ReleaseViewport2Request
Flatland2ResetLayerRequest
Flatland2SetLayerPropertiesRequest
Flatland2SetStackLayersRequest
Flatland2SetTransformContentRequest
Flatland2SetViewportProperties2Request
FlatlandAddChildRequest
FlatlandConfig
Configuration parameters for instantiating a regular Flatland session.
FlatlandCreateTransformRequest
FlatlandDisplaySetDevicePixelRatioRequest
FlatlandOnErrorRequest
FlatlandOnFramePresentedRequest
FlatlandOnNextFrameBeginRequest
FlatlandReleaseFilledRectRequest
FlatlandReleaseImageRequest
FlatlandReleaseTransformRequest
FlatlandReleaseViewportRequest
FlatlandRemoveChildRequest
FlatlandReplaceChildrenRequest
FlatlandSetClipBoundaryRequest
FlatlandSetContentRequest
FlatlandSetDebugNameRequest
FlatlandSetHitRegionsRequest
FlatlandSetImageBlendModeRequest
FlatlandSetImageBlendingFunctionRequest
FlatlandSetImageDestinationSizeRequest
FlatlandSetImageFlipRequest
FlatlandSetImageOpacityRequest
FlatlandSetImageSampleRegionRequest
FlatlandSetInfiniteHitRegionRequest
FlatlandSetOpacityRequest
FlatlandSetOrientationRequest
FlatlandSetRootTransformRequest
FlatlandSetScaleRequest
FlatlandSetTranslationRequest
FlatlandSetViewportPropertiesRequest
FlipThenRotate
Bitset which supports all permutations of flips and rotations. Flips (if any) are performed first, followed by rotation (if any).
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.
ParentViewportWatcherGetLayoutResponse
ParentViewportWatcherGetStatusResponse
RegisterBufferCollectionUsages
The possible usages for a registered buffer collection. Can be a combination of options.
ScreenCaptureReleaseFrameRequest
TransformId
A user-defined identifier for a particular transform. See [CreateTransform] and [ReleaseTransform] for more information.
TrustedFlatlandReleaseImageImmediately2Request
TrustedFlatlandReleaseImageImmediatelyRequest
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§

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
CompositionMode
Selects what a Layer composites: an image, a solid color, or nothing at all.
FlatlandError
The set of error codes returned in [OnError]. Any error causes the Flatland channel to be closed.
FlatlandFactoryError
An error that can occur when using [fuchsia.ui.composition/FlatlandFactory.CreateFlatland].
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.
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.
ScreenshotFormat
The different formats of Screenshot that can be requested.
TransformContent
Content that can be attached to a Transform when Flatland2 is enabled.
TrustedFlatlandFactoryError
An error that can occur when using the [TrustedFlatlandFactory].

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.

Type Aliases§

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.