fidl_fuchsia_ui_composition

Trait FlatlandProxyInterface

Source
pub trait FlatlandProxyInterface: Send + Sync {
    type ReleaseViewportResponseFut: Future<Output = Result<ViewportCreationToken, Error>> + Send;

Show 33 methods // Required methods fn present(&self, args: PresentArgs) -> Result<(), Error>; fn create_view( &self, token: ViewCreationToken, parent_viewport_watcher: ServerEnd<ParentViewportWatcherMarker>, ) -> Result<(), Error>; fn create_view2( &self, token: ViewCreationToken, view_identity: ViewIdentityOnCreation, protocols: ViewBoundProtocols, parent_viewport_watcher: ServerEnd<ParentViewportWatcherMarker>, ) -> Result<(), Error>; fn create_transform(&self, transform_id: &TransformId) -> Result<(), Error>; fn set_translation( &self, transform_id: &TransformId, translation: &Vec_, ) -> Result<(), Error>; fn set_orientation( &self, transform_id: &TransformId, orientation: Orientation, ) -> Result<(), Error>; fn set_scale( &self, transform_id: &TransformId, scale: &VecF, ) -> Result<(), Error>; fn set_opacity( &self, transform_id: &TransformId, value: f32, ) -> Result<(), Error>; fn set_clip_boundary( &self, transform_id: &TransformId, rect: Option<&Rect>, ) -> Result<(), Error>; fn add_child( &self, parent_transform_id: &TransformId, child_transform_id: &TransformId, ) -> Result<(), Error>; fn remove_child( &self, parent_transform_id: &TransformId, child_transform_id: &TransformId, ) -> Result<(), Error>; fn replace_children( &self, parent_transform_id: &TransformId, new_child_transform_ids: &[TransformId], ) -> Result<(), Error>; fn set_root_transform( &self, transform_id: &TransformId, ) -> Result<(), Error>; fn set_hit_regions( &self, transform_id: &TransformId, regions: &[HitRegion], ) -> Result<(), Error>; fn set_infinite_hit_region( &self, transform_id: &TransformId, hit_test: HitTestInteraction, ) -> Result<(), Error>; fn create_viewport( &self, viewport_id: &ContentId, token: ViewportCreationToken, properties: &ViewportProperties, child_view_watcher: ServerEnd<ChildViewWatcherMarker>, ) -> Result<(), Error>; fn create_image( &self, image_id: &ContentId, import_token: BufferCollectionImportToken, vmo_index: u32, properties: &ImageProperties, ) -> Result<(), Error>; fn set_image_sample_region( &self, image_id: &ContentId, rect: &RectF, ) -> Result<(), Error>; fn set_image_destination_size( &self, image_id: &ContentId, size: &SizeU, ) -> Result<(), Error>; fn set_image_blending_function( &self, image_id: &ContentId, blend_mode: BlendMode, ) -> Result<(), Error>; fn set_image_opacity( &self, image_id: &ContentId, val: f32, ) -> Result<(), Error>; fn set_image_flip( &self, image_id: &ContentId, flip: ImageFlip, ) -> Result<(), Error>; fn create_filled_rect(&self, rect_id: &ContentId) -> Result<(), Error>; fn set_solid_fill( &self, rect_id: &ContentId, color: &ColorRgba, size: &SizeU, ) -> Result<(), Error>; fn release_filled_rect(&self, rect_id: &ContentId) -> Result<(), Error>; fn set_content( &self, transform_id: &TransformId, content_id: &ContentId, ) -> Result<(), Error>; fn set_viewport_properties( &self, viewport_id: &ContentId, properties: &ViewportProperties, ) -> Result<(), Error>; fn release_transform(&self, transform_id: &TransformId) -> Result<(), Error>; fn release_view(&self) -> Result<(), Error>; fn release_viewport( &self, viewport_id: &ContentId, ) -> Self::ReleaseViewportResponseFut; fn release_image(&self, image_id: &ContentId) -> Result<(), Error>; fn clear(&self) -> Result<(), Error>; fn set_debug_name(&self, name: &str) -> Result<(), Error>;
}

Required Associated Types§

Source

type ReleaseViewportResponseFut: Future<Output = Result<ViewportCreationToken, Error>> + Send

Required Methods§

Source

fn present(&self, args: PresentArgs) -> Result<(), Error>

Source

fn create_view( &self, token: ViewCreationToken, parent_viewport_watcher: ServerEnd<ParentViewportWatcherMarker>, ) -> Result<(), Error>

Source

fn create_view2( &self, token: ViewCreationToken, view_identity: ViewIdentityOnCreation, protocols: ViewBoundProtocols, parent_viewport_watcher: ServerEnd<ParentViewportWatcherMarker>, ) -> Result<(), Error>

Source

fn create_transform(&self, transform_id: &TransformId) -> Result<(), Error>

Source

fn set_translation( &self, transform_id: &TransformId, translation: &Vec_, ) -> Result<(), Error>

Source

fn set_orientation( &self, transform_id: &TransformId, orientation: Orientation, ) -> Result<(), Error>

Source

fn set_scale( &self, transform_id: &TransformId, scale: &VecF, ) -> Result<(), Error>

Source

fn set_opacity( &self, transform_id: &TransformId, value: f32, ) -> Result<(), Error>

Source

fn set_clip_boundary( &self, transform_id: &TransformId, rect: Option<&Rect>, ) -> Result<(), Error>

Source

fn add_child( &self, parent_transform_id: &TransformId, child_transform_id: &TransformId, ) -> Result<(), Error>

Source

fn remove_child( &self, parent_transform_id: &TransformId, child_transform_id: &TransformId, ) -> Result<(), Error>

Source

fn replace_children( &self, parent_transform_id: &TransformId, new_child_transform_ids: &[TransformId], ) -> Result<(), Error>

Source

fn set_root_transform(&self, transform_id: &TransformId) -> Result<(), Error>

Source

fn set_hit_regions( &self, transform_id: &TransformId, regions: &[HitRegion], ) -> Result<(), Error>

Source

fn set_infinite_hit_region( &self, transform_id: &TransformId, hit_test: HitTestInteraction, ) -> Result<(), Error>

Source

fn create_viewport( &self, viewport_id: &ContentId, token: ViewportCreationToken, properties: &ViewportProperties, child_view_watcher: ServerEnd<ChildViewWatcherMarker>, ) -> Result<(), Error>

Source

fn create_image( &self, image_id: &ContentId, import_token: BufferCollectionImportToken, vmo_index: u32, properties: &ImageProperties, ) -> Result<(), Error>

Source

fn set_image_sample_region( &self, image_id: &ContentId, rect: &RectF, ) -> Result<(), Error>

Source

fn set_image_destination_size( &self, image_id: &ContentId, size: &SizeU, ) -> Result<(), Error>

Source

fn set_image_blending_function( &self, image_id: &ContentId, blend_mode: BlendMode, ) -> Result<(), Error>

Source

fn set_image_opacity(&self, image_id: &ContentId, val: f32) -> Result<(), Error>

Source

fn set_image_flip( &self, image_id: &ContentId, flip: ImageFlip, ) -> Result<(), Error>

Source

fn create_filled_rect(&self, rect_id: &ContentId) -> Result<(), Error>

Source

fn set_solid_fill( &self, rect_id: &ContentId, color: &ColorRgba, size: &SizeU, ) -> Result<(), Error>

Source

fn release_filled_rect(&self, rect_id: &ContentId) -> Result<(), Error>

Source

fn set_content( &self, transform_id: &TransformId, content_id: &ContentId, ) -> Result<(), Error>

Source

fn set_viewport_properties( &self, viewport_id: &ContentId, properties: &ViewportProperties, ) -> Result<(), Error>

Source

fn release_transform(&self, transform_id: &TransformId) -> Result<(), Error>

Source

fn release_view(&self) -> Result<(), Error>

Source

fn release_viewport( &self, viewport_id: &ContentId, ) -> Self::ReleaseViewportResponseFut

Source

fn release_image(&self, image_id: &ContentId) -> Result<(), Error>

Source

fn clear(&self) -> Result<(), Error>

Source

fn set_debug_name(&self, name: &str) -> Result<(), Error>

Implementors§

Source§

impl FlatlandProxyInterface for FlatlandProxy

Source§

type ReleaseViewportResponseFut = QueryResponseFut<ViewportCreationToken>