# Visual

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/struct-visual/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct Visual
```

Base class for controls that provides rendering and related visual
properties.

The visual class represents elements that have a visual on-screen
representation and stores all the information needed for a renderer to
render the control. To traverse the visual tree, use the methods in the
`visual_tree` module.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L55)

## Members

- [`calculate_distance_from_ancestor`](#function-calculate_distance_from_ancestor)
- [`calculate_distance_from_root`](#function-calculate_distance_from_root)
- [`find_common_visual_ancestor`](#function-find_common_visual_ancestor)
- [`get_visual_ancestors`](#function-get_visual_ancestors)
- [`get_self_and_visual_ancestors`](#function-get_self_and_visual_ancestors)
- [`find_ancestor_of_type`](#function-find_ancestor_of_type)
- [`find_ancestor_of_type_where`](#function-find_ancestor_of_type_where)
- [`find_descendant_of_type`](#function-find_descendant_of_type)
- [`find_descendant_of_type_where`](#function-find_descendant_of_type_where)
- [`get_transformed_bounds`](#function-get_transformed_bounds)
- [`get_visual_at`](#function-get_visual_at)
- [`get_visual_at_filtered`](#function-get_visual_at_filtered)
- [`get_visual_at_geometry`](#function-get_visual_at_geometry)
- [`get_visual_at_geometry_filtered`](#function-get_visual_at_geometry_filtered)
- [`get_visuals_at`](#function-get_visuals_at)
- [`get_visuals_at_filtered`](#function-get_visuals_at_filtered)
- [`get_visuals_at_geometry`](#function-get_visuals_at_geometry)
- [`get_visuals_at_geometry_filtered`](#function-get_visuals_at_geometry_filtered)
- [`get_visual_children`](#function-get_visual_children)
- [`get_visual_descendants`](#function-get_visual_descendants)
- [`get_self_and_visual_descendants`](#function-get_self_and_visual_descendants)
- [`get_visual_parent`](#function-get_visual_parent)
- [`get_visual_parent_of_type`](#function-get_visual_parent_of_type)
- [`get_visual_root`](#function-get_visual_root)
- [`get_layout_root`](#function-get_layout_root)
- [`get_layout_manager`](#function-get_layout_manager)
- [`get_input_root`](#function-get_input_root)
- [`get_platform_settings`](#function-get_platform_settings)
- [`is_visual_ancestor_of`](#function-is_visual_ancestor_of)
- [`sort_by_z_index`](#function-sort_by_z_index)
- [`point_to_client`](#function-point_to_client)
- [`point_to_screen`](#function-point_to_screen)
- [`transform_to_visual`](#function-transform_to_visual)
- [`translate_point`](#function-translate_point)
- [`rotation`](#function-rotation)
- [`set_rotation`](#function-set_rotation)
- [`rotation_axis`](#function-rotation_axis)
- [`set_rotation_axis`](#function-set_rotation_axis)
- [`scale`](#function-scale)
- [`set_scale`](#function-set_scale)
- [`center_point`](#function-center_point)
- [`set_center_point`](#function-set_center_point)
- [`transform_matrix`](#function-transform_matrix)
- [`set_transform_matrix`](#function-set_transform_matrix)
- [`opacity_transition`](#function-opacity_transition)
- [`set_opacity_transition`](#function-set_opacity_transition)
- [`rotation_transition`](#function-rotation_transition)
- [`set_rotation_transition`](#function-set_rotation_transition)
- [`scale_transition`](#function-scale_transition)
- [`set_scale_transition`](#function-set_scale_transition)
- [`translation_transition`](#function-translation_transition)
- [`set_translation_transition`](#function-set_translation_transition)
- [`shadow`](#function-shadow)
- [`set_shadow`](#function-set_shadow)
- [`theme_shadow_caster`](#function-theme_shadow_caster)
- [`theme_shadow_visual`](#function-theme_shadow_visual)
- [`set_theme_shadow_delegated_to_child`](#function-set_theme_shadow_delegated_to_child)
- [`set_theme_shadow_popup`](#function-set_theme_shadow_popup)
- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`render`](#function-render)
- [`on_attached_to_visual_tree_core`](#function-on_attached_to_visual_tree_core)
- [`on_detached_from_visual_tree_core`](#function-on_detached_from_visual_tree_core)
- [`on_attached_to_visual_tree`](#function-on_attached_to_visual_tree)
- [`on_detached_from_visual_tree`](#function-on_detached_from_visual_tree)
- [`on_visual_parent_changed`](#function-on_visual_parent_changed)
- [`bypass_flow_direction_policies`](#function-bypass_flow_direction_policies)
- [`invalidate_mirror_transform`](#function-invalidate_mirror_transform)
- [`clip_to_bounds_radius`](#function-clip_to_bounds_radius)
- [`custom_hit_test`](#function-custom_hit_test)
- [`custom_hit_test_geometry`](#function-custom_hit_test_geometry)
- [`ensure_initialized_for_visual_brush`](#function-ensure_initialized_for_visual_brush)
- [`detach_from_compositor`](#function-detach_from_compositor)
- [`synchronize_composition_child_visuals`](#function-synchronize_composition_child_visuals)
- [`synchronize_composition_properties`](#function-synchronize_composition_properties)
- [`requires_composition_visual`](#function-requires_composition_visual)
- [`bounds_property`](#function-bounds_property)
- [`clip_to_bounds_property`](#function-clip_to_bounds_property)
- [`clip_property`](#function-clip_property)
- [`shadow_property`](#function-shadow_property)
- [`translation_property`](#function-translation_property)
- [`cache_mode_property`](#function-cache_mode_property)
- [`effect_property`](#function-effect_property)
- [`opacity_mask_property`](#function-opacity_mask_property)
- [`render_transform_property`](#function-render_transform_property)
- [`render_transform_origin_property`](#function-render_transform_origin_property)
- [`is_visible_property`](#function-is_visible_property)
- [`opacity_property`](#function-opacity_property)
- [`has_mirror_transform_property`](#function-has_mirror_transform_property)
- [`flow_direction_property`](#function-flow_direction_property)
- [`visual_parent_property`](#function-visual_parent_property)
- [`z_index_property`](#function-z_index_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`attached_to_visual_tree`](#function-attached_to_visual_tree)
- [`detached_from_visual_tree`](#function-detached_from_visual_tree)
- [`is_effectively_visible_changed`](#function-is_effectively_visible_changed)
- [`bounds`](#function-bounds)
- [`set_bounds`](#function-set_bounds)
- [`clip_to_bounds`](#function-clip_to_bounds)
- [`set_clip_to_bounds`](#function-set_clip_to_bounds)
- [`clip`](#function-clip)
- [`set_clip`](#function-set_clip)
- [`cache_mode`](#function-cache_mode)
- [`set_cache_mode`](#function-set_cache_mode)
- [`effect`](#function-effect)
- [`set_effect`](#function-set_effect)
- [`opacity_mask`](#function-opacity_mask)
- [`set_opacity_mask`](#function-set_opacity_mask)
- [`render_transform`](#function-render_transform)
- [`set_render_transform`](#function-set_render_transform)
- [`render_transform_origin`](#function-render_transform_origin)
- [`set_render_transform_origin`](#function-set_render_transform_origin)
- [`is_effectively_visible`](#function-is_effectively_visible)
- [`is_visible`](#function-is_visible)
- [`set_is_visible`](#function-set_is_visible)
- [`opacity`](#function-opacity)
- [`set_opacity`](#function-set_opacity)
- [`manipulation_transform`](#function-manipulation_transform)
- [`set_manipulation_transform`](#function-set_manipulation_transform)
- [`has_mirror_transform`](#function-has_mirror_transform)
- [`set_has_mirror_transform`](#function-set_has_mirror_transform)
- [`flow_direction`](#function-flow_direction)
- [`set_flow_direction`](#function-set_flow_direction)
- [`get_flow_direction`](#function-get_flow_direction)
- [`set_flow_direction_on`](#function-set_flow_direction_on)
- [`z_index`](#function-z_index)
- [`set_z_index`](#function-set_z_index)
- [`visual_children`](#function-visual_children)
- [`visual_children_count`](#function-visual_children_count)
- [`visual_children_snapshot`](#function-visual_children_snapshot)
- [`visual_root`](#function-visual_root)
- [`has_composition_visual`](#function-has_composition_visual)
- [`has_composition_item`](#function-has_composition_item)
- [`composition_visuals_on_demand`](#function-composition_visuals_on_demand)
- [`set_composition_visuals_on_demand`](#function-set_composition_visuals_on_demand)
- [`child_composition_visual`](#function-child_composition_visual)
- [`set_child_composition_visual`](#function-set_child_composition_visual)
- [`lights`](#function-lights)
- [`has_lights`](#function-has_lights)
- [`light_target_ids`](#function-light_target_ids)
- [`translation`](#function-translation)
- [`set_translation`](#function-set_translation)
- [`is_hidden_by_composition`](#function-is_hidden_by_composition)
- [`add_composition_hide_request`](#function-add_composition_hide_request)
- [`remove_composition_hide_request`](#function-remove_composition_hide_request)
- [`is_render_suppressed`](#function-is_render_suppressed)
- [`add_render_suppression_request`](#function-add_render_suppression_request)
- [`remove_render_suppression_request`](#function-remove_render_suppression_request)
- [`is_shown_by_composition`](#function-is_shown_by_composition)
- [`add_composition_show_request`](#function-add_composition_show_request)
- [`remove_composition_show_request`](#function-remove_composition_show_request)
- [`composition_layer_visual`](#function-composition_layer_visual)
- [`set_composition_layer_visual`](#function-set_composition_layer_visual)
- [`has_non_uniform_z_index_children`](#function-has_non_uniform_z_index_children)
- [`is_attached_to_visual_tree`](#function-is_attached_to_visual_tree)
- [`visual_parent`](#function-visual_parent)
- [`invalidate_visual`](#function-invalidate_visual)
- [`invalidate_composition_properties`](#function-invalidate_composition_properties)
- [`affects_render`](#function-affects_render)

<a id="function-calculate_distance_from_ancestor"></a>

### calculate_distance_from_ancestor

```rust
fn calculate_distance_from_ancestor(self: &Self, ancestor: Option<&Visual>) -> Option<usize>
```

Calculates the distance from a visual's ancestor.

Returns the number of steps from the visual to the ancestor, or
`None` if this visual is not a descendent of `ancestor`. With no
ancestor given, never matches and returns `None`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L130)

<a id="function-calculate_distance_from_root"></a>

### calculate_distance_from_root

```rust
fn calculate_distance_from_root(self: &Self) -> usize
```

Calculates the distance from a visual's root.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L146)

<a id="function-find_common_visual_ancestor"></a>

### find_common_visual_ancestor

```rust
fn find_common_visual_ancestor(self: &Self, target: &Visual) -> Option<Ref<Visual>>
```

Tries to get the first common ancestor of two visuals.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L159)

<a id="function-get_visual_ancestors"></a>

### get_visual_ancestors

```rust
fn get_visual_ancestors(self: &Self) -> VisualAncestors
```

Enumerates the ancestors of the visual in the visual tree.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L201)

<a id="function-get_self_and_visual_ancestors"></a>

### get_self_and_visual_ancestors

```rust
fn get_self_and_visual_ancestors(self: &Self) -> VisualAncestors
```

Enumerates the visual and its ancestors in the visual tree.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L206)

<a id="function-find_ancestor_of_type"></a>

### find_ancestor_of_type

```rust
fn find_ancestor_of_type<T: ObjectType>(self: &Self, include_self: bool) -> Option<Ref<T>>
```

Finds the first ancestor of class `T`, optionally starting with the
visual itself.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L212)

<a id="function-find_ancestor_of_type_where"></a>

### find_ancestor_of_type_where

```rust
fn find_ancestor_of_type_where<T: ObjectType>(self: &Self, include_self: bool, predicate: impl Fn(&T) -> bool) -> Option<Ref<T>>
```

Finds the first ancestor of class `T` that matches a predicate,
optionally starting with the visual itself.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L218)

<a id="function-find_descendant_of_type"></a>

### find_descendant_of_type

```rust
fn find_descendant_of_type<T: ObjectType>(self: &Self, include_self: bool) -> Option<Ref<T>>
```

Finds the first descendant of class `T` (depth first), optionally
starting with the visual itself.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L239)

<a id="function-find_descendant_of_type_where"></a>

### find_descendant_of_type_where

```rust
fn find_descendant_of_type_where<T: ObjectType>(self: &Self, include_self: bool, predicate: impl Fn(&T) -> bool) -> Option<Ref<T>>
```

Finds the first descendant of class `T` that matches a predicate
(depth first), optionally starting with the visual itself.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L245)

<a id="function-get_transformed_bounds"></a>

### get_transformed_bounds

```rust
fn get_transformed_bounds(self: &Self) -> Option<TransformedBounds>
```

Gets the bounds of the visual in the coordinate space of its root,
with the clip applied by its ancestors. Returns `None` if the visual
or one of its ancestors is invisible.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L282)

<a id="function-get_visual_at"></a>

### get_visual_at

```rust
fn get_visual_at(self: &Self, p: Point) -> Option<Ref<Visual>>
```

Gets the first visible visual at a point, in the coordinates of this
visual.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L333)

<a id="function-get_visual_at_filtered"></a>

### get_visual_at_filtered

```rust
fn get_visual_at_filtered(self: &Self, p: Point, filter: &dyn Fn(&Visual) -> bool) -> Option<Ref<Visual>>
```

Gets the first visual at a point, in the coordinates of this visual.

If `filter` returns false for a visual then the visual and all its
descendants are excluded from the results.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L341)

<a id="function-get_visual_at_geometry"></a>

### get_visual_at_geometry

```rust
fn get_visual_at_geometry(self: &Self, geometry: &Geometry) -> Option<GeometryHitTestResult>
```

Gets the first visible visual intersecting a geometry, in the
coordinates of this visual, with the details of the intersection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L348)

<a id="function-get_visual_at_geometry_filtered"></a>

### get_visual_at_geometry_filtered

```rust
fn get_visual_at_geometry_filtered(self: &Self, geometry: &Geometry, filter: &dyn Fn(&Visual) -> bool) -> Option<GeometryHitTestResult>
```

Gets the first visual intersecting a geometry, in the coordinates of
this visual, with the details of the intersection.

If `filter` returns false for a visual then the visual and all its
descendants are excluded from the results.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L357)

<a id="function-get_visuals_at"></a>

### get_visuals_at

```rust
fn get_visuals_at(self: &Self, p: Point) -> Vec<Ref<Visual>>
```

Enumerates the visible visuals at a point, in the coordinates of
this visual, topmost first.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L368)

<a id="function-get_visuals_at_filtered"></a>

### get_visuals_at_filtered

```rust
fn get_visuals_at_filtered(self: &Self, p: Point, filter: &dyn Fn(&Visual) -> bool) -> Vec<Ref<Visual>>
```

Enumerates the visuals at a point, in the coordinates of this
visual, topmost first.

If `filter` returns false for a visual then the visual and all its
descendants are excluded from the results.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L377)

<a id="function-get_visuals_at_geometry"></a>

### get_visuals_at_geometry

```rust
fn get_visuals_at_geometry(self: &Self, geometry: &Geometry) -> Vec<GeometryHitTestResult>
```

Enumerates the visible visuals intersecting a geometry, in the
coordinates of this visual, topmost first, with the details of the
intersections.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L387)

<a id="function-get_visuals_at_geometry_filtered"></a>

### get_visuals_at_geometry_filtered

```rust
fn get_visuals_at_geometry_filtered(self: &Self, geometry: &Geometry, filter: &dyn Fn(&Visual) -> bool) -> Vec<GeometryHitTestResult>
```

Enumerates the visuals intersecting a geometry, in the coordinates
of this visual, topmost first, with the details of the
intersections.

If `filter` returns false for a visual then the visual and all its
descendants are excluded from the results.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L397)

<a id="function-get_visual_children"></a>

### get_visual_children

```rust
fn get_visual_children(self: &Self) -> Rc<Vec<Ref<Visual>>>
```

Gets a snapshot of the visual children of the visual.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L409)

<a id="function-get_visual_descendants"></a>

### get_visual_descendants

```rust
fn get_visual_descendants(self: &Self) -> VisualDescendants
```

Enumerates the descendants of the visual in the visual tree, in
depth-first pre-order.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L415)

<a id="function-get_self_and_visual_descendants"></a>

### get_self_and_visual_descendants

```rust
fn get_self_and_visual_descendants(self: &Self) -> VisualDescendants
```

Enumerates the visual and its descendants in the visual tree, in
depth-first pre-order.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L427)

<a id="function-get_visual_parent"></a>

### get_visual_parent

```rust
fn get_visual_parent(self: &Self) -> Option<Ref<Visual>>
```

Gets the visual parent of the visual.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L434)

<a id="function-get_visual_parent_of_type"></a>

### get_visual_parent_of_type

```rust
fn get_visual_parent_of_type<T: ObjectType>(self: &Self) -> Option<Ref<T>>
```

Gets the visual parent of the visual, if it is of class `T`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L439)

<a id="function-get_visual_root"></a>

### get_visual_root

```rust
fn get_visual_root(self: &Self) -> Option<Ref<Visual>>
```

The root visual of the presentation source the visual is attached
to.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L450)

<a id="function-get_layout_root"></a>

### get_layout_root

```rust
fn get_layout_root(self: &Self) -> Option<Rc<dyn ILayoutRoot>>
```

The layout root of the tree the visual is attached to.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L455)

<a id="function-get_layout_manager"></a>

### get_layout_manager

```rust
fn get_layout_manager(self: &Self) -> Option<Rc<dyn ILayoutManager>>
```

The layout manager of the presentation source of the visual, or
`None` when the visual is not attached to a visual root.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L461)

<a id="function-get_input_root"></a>

### get_input_root

```rust
fn get_input_root(self: &Self) -> Option<Rc<dyn IInputRoot>>
```

The input root of the tree the visual is attached to.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L466)

<a id="function-get_platform_settings"></a>

### get_platform_settings

```rust
fn get_platform_settings(self: &Self) -> Option<Rc<dyn IPlatformSettings>>
```

The platform settings of the tree the visual is attached to.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L471)

<a id="function-is_visual_ancestor_of"></a>

### is_visual_ancestor_of

```rust
fn is_visual_ancestor_of(self: &Self, target: &Visual) -> bool
```

Tests whether this visual is an ancestor of `target`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L476)

<a id="function-sort_by_z_index"></a>

### sort_by_z_index

```rust
fn sort_by_z_index(elements: &[Ref<Visual>]) -> Vec<Ref<Visual>>
```

Sorts visuals for hit testing: by descending Z index, and for equal
Z indices by descending position in the input, so that the topmost
visual comes first.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L492)

<a id="function-point_to_client"></a>

### point_to_client

```rust
fn point_to_client(self: &Self, point: PixelPoint) -> Point
```

Converts a point from screen to client coordinates.

Panics if the visual does not belong to a visual tree.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L504)

<a id="function-point_to_screen"></a>

### point_to_screen

```rust
fn point_to_screen(self: &Self, point: Point) -> PixelPoint
```

Converts a point from client to screen coordinates.

Panics if the visual does not belong to a visual tree.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L513)

<a id="function-transform_to_visual"></a>

### transform_to_visual

```rust
fn transform_to_visual(self: &Self, to: &Visual) -> Option<Matrix>
```

Returns a transform that transforms the visual's coordinates into
the coordinates of the specified `to` visual, or `None` if the
visuals don't share a common ancestor.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L522)

<a id="function-translate_point"></a>

### translate_point

```rust
fn translate_point(self: &Self, point: Point, relative_to: &Visual) -> Option<Point>
```

Translates a point relative to this visual to coordinates that are
relative to the specified visual, or returns `None` if the visuals
don't share a common ancestor.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/visual_extensions.rs#L543)

<a id="function-rotation"></a>

### rotation

```rust
fn rotation(self: &Self) -> f32
```

`UIElement.Rotation`: the rotation of the element in degrees, clockwise, around
`rotation_axis` through `center_point`. Zero
until set.

Around the Z axis it is the `RotationAngle` of the composition visual (in radians);
around another axis it is the `Orientation` of the composition visual, a quaternion.
While neither the rotation nor its axis was set, both are left to the application.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L174)

<a id="function-set_rotation"></a>

### set_rotation

```rust
fn set_rotation(self: &Self, value: f32)
```

Sets `rotation`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L179)

<a id="function-rotation_axis"></a>

### rotation_axis

```rust
fn rotation_axis(self: &Self) -> Vector3
```

`UIElement.RotationAxis`: the axis `rotation` turns the element around.
The Z axis `(0, 0, 1)` until set.

Deviation (winui-composition.md): the renderers are 2D, so a rotation around another axis
shows only its projection on the plane of the element (no perspective). A zero axis is
taken as the Z axis.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L190)

<a id="function-set_rotation_axis"></a>

### set_rotation_axis

```rust
fn set_rotation_axis(self: &Self, value: Vector3)
```

Sets `rotation_axis`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L195)

<a id="function-scale"></a>

### scale

```rust
fn scale(self: &Self) -> Vector3
```

`UIElement.Scale`: the scale of the element around `center_point`,
the `Scale` of its composition visual. `(1, 1, 1)` until set.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L202)

<a id="function-set_scale"></a>

### set_scale

```rust
fn set_scale(self: &Self, value: Vector3)
```

Sets `scale`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L207)

<a id="function-center_point"></a>

### center_point

```rust
fn center_point(self: &Self) -> Vector3
```

`UIElement.CenterPoint`: the point, in the coordinates of the element, that
`scale` and `rotation` are around; the `CenterPoint` of
its composition visual. The origin until set.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L215)

<a id="function-set_center_point"></a>

### set_center_point

```rust
fn set_center_point(self: &Self, value: Vector3)
```

Sets `center_point`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L220)

<a id="function-transform_matrix"></a>

### transform_matrix

```rust
fn transform_matrix(self: &Self) -> Matrix4x4
```

`UIElement.TransformMatrix`: a transform of the element in addition to the other facades.
The identity until set.

The composition visual has a 2D `TransformMatrix`, which the renderer fills with the
render transform of the element; the 2D affine part of this matrix (`M11`, `M12`, `M21`,
`M22`, `M41`, `M42`) is applied after the render transform.

Deviation (winui-composition.md): WinUI applies `TransformMatrix` after the other facade
transforms; the composition visual applies its `TransformMatrix` before `Scale`,
`RotationAngle`, `Orientation` and `Translation`, so here the matrix acts before those
facades. The 3D part of the matrix is ignored.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L236)

<a id="function-set_transform_matrix"></a>

### set_transform_matrix

```rust
fn set_transform_matrix(self: &Self, value: Matrix4x4)
```

Sets `transform_matrix`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L241)

<a id="function-opacity_transition"></a>

### opacity_transition

```rust
fn opacity_transition(self: &Self) -> Option<ScalarTransition>
```

`UIElement.OpacityTransition`: animates the changes of the `Opacity` of the element.
`None` (no animation) by default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L248)

<a id="function-set_opacity_transition"></a>

### set_opacity_transition

```rust
fn set_opacity_transition(self: &Self, value: Option<ScalarTransition>)
```

Sets `opacity_transition`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L253)

<a id="function-rotation_transition"></a>

### rotation_transition

```rust
fn rotation_transition(self: &Self) -> Option<ScalarTransition>
```

`UIElement.RotationTransition`: animates the changes of `rotation` (and
of `rotation_axis`). `None` by default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L260)

<a id="function-set_rotation_transition"></a>

### set_rotation_transition

```rust
fn set_rotation_transition(self: &Self, value: Option<ScalarTransition>)
```

Sets `rotation_transition`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L265)

<a id="function-scale_transition"></a>

### scale_transition

```rust
fn scale_transition(self: &Self) -> Option<Vector3Transition>
```

`UIElement.ScaleTransition`: animates the changes of `scale`. `None` by
default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L272)

<a id="function-set_scale_transition"></a>

### set_scale_transition

```rust
fn set_scale_transition(self: &Self, value: Option<Vector3Transition>)
```

Sets `scale_transition`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L277)

<a id="function-translation_transition"></a>

### translation_transition

```rust
fn translation_transition(self: &Self) -> Option<Vector3Transition>
```

`UIElement.TranslationTransition`: animates the changes of
`translation`. `None` by default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L284)

<a id="function-set_translation_transition"></a>

### set_translation_transition

```rust
fn set_translation_transition(self: &Self, value: Option<Vector3Transition>)
```

Sets `translation_transition`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/composition_facades.rs#L289)

<a id="function-shadow"></a>

### shadow

```rust
fn shadow(self: &Self) -> Option<Ref<crate::media::Shadow>>
```

`UIElement.Shadow`: the shadow the element casts, a
`ThemeShadow` (the one shadow there is).
The shadow of a popup is cast by the child of the popup.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/theme_shadow.rs#L21)

<a id="function-set_shadow"></a>

### set_shadow

```rust
fn set_shadow(self: &Self, value: Option<Ref<crate::media::Shadow>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/theme_shadow.rs#L25)

<a id="function-theme_shadow_caster"></a>

### theme_shadow_caster

```rust
fn theme_shadow_caster(self: &Self) -> Option<(Ref<ThemeShadow>, Ref<Visual>)>
```

The theme shadow the visual casts and the element whose elevation (the
Z of its `Translation`) the shadow has: its own `ThemeShadow`, or, for
the child of a popup with a theme shadow, the popup's (with the
popup's elevation, which wins over the child's own shadow). `None` for
a visual that delegates its shadow to its child (a popup) and for one
without a theme shadow.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/theme_shadow.rs#L35)

<a id="function-theme_shadow_visual"></a>

### theme_shadow_visual

```rust
fn theme_shadow_visual(self: &Self) -> Option<Rc<ThemeShadowVisual>>
```

The visual that draws the theme shadow of this visual, while there is
one.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/theme_shadow.rs#L61)

<a id="function-set_theme_shadow_delegated_to_child"></a>

### set_theme_shadow_delegated_to_child

```rust
fn set_theme_shadow_delegated_to_child(self: &Self, value: bool)
```

For a popup (WinUI's `Popup`, whose `Shadow` is cast by its child):
whether the shadow of this visual is cast by its child rather than by
itself.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/theme_shadow.rs#L69)

<a id="function-set_theme_shadow_popup"></a>

### set_theme_shadow_popup

```rust
fn set_theme_shadow_popup(self: &Self, popup: Option<&Visual>)
```

For the child of a popup: the popup whose `Shadow` the child casts as
its own (`NeedsDropShadowVisual`: "Child of Popup with Shadow is
implicitly a shadow caster").

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual/theme_shadow.rs#L79)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-to_ref"></a>

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<Visual>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-render"></a>

### render

```rust
fn render(self: &Self, context: &mut DrawingContext<'_>)
```

Renders the visual to a drawing context.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-on_attached_to_visual_tree_core"></a>

### on_attached_to_visual_tree_core

```rust
fn on_attached_to_visual_tree_core(self: &Self, e: &VisualTreeAttachmentEventArgs)
```

Calls the `on_attached_to_visual_tree` method for this control and
all of its visual descendants.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-on_detached_from_visual_tree_core"></a>

### on_detached_from_visual_tree_core

```rust
fn on_detached_from_visual_tree_core(self: &Self, e: &VisualTreeAttachmentEventArgs)
```

Calls the `on_detached_from_visual_tree` method for this control
and all of its visual descendants.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-on_attached_to_visual_tree"></a>

### on_attached_to_visual_tree

```rust
fn on_attached_to_visual_tree(self: &Self, e: &VisualTreeAttachmentEventArgs)
```

Called when the control is added to a rooted visual tree.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-on_detached_from_visual_tree"></a>

### on_detached_from_visual_tree

```rust
fn on_detached_from_visual_tree(self: &Self, e: &VisualTreeAttachmentEventArgs)
```

Called when the control is removed from a rooted visual tree.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-on_visual_parent_changed"></a>

### on_visual_parent_changed

```rust
fn on_visual_parent_changed(self: &Self, old_parent: Option<&Ref<Visual>>, new_parent: Option<&Ref<Visual>>)
```

Called when the control's visual parent changes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-bypass_flow_direction_policies"></a>

### bypass_flow_direction_policies

```rust
fn bypass_flow_direction_policies(self: &Self) -> bool
```

Whether the control ignores the flow direction policies, i.e. is
never mirrored.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-invalidate_mirror_transform"></a>

### invalidate_mirror_transform

```rust
fn invalidate_mirror_transform(self: &Self)
```

Computes the `has_mirror_transform` value according to the flow
direction of this visual and its parent.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-clip_to_bounds_radius"></a>

### clip_to_bounds_radius

```rust
fn clip_to_bounds_radius(self: &Self) -> Option<crate::CornerRadius>
```

The corner radius the visual clips its content with when
`clip_to_bounds` is set; `None` for a plain rectangular clip.
(Upstream: the `IVisualWithRoundRectClip` interface.)

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-custom_hit_test"></a>

### custom_hit_test

```rust
fn custom_hit_test(self: &Self, point: crate::Point) -> Option<bool>
```

The custom hit test of the visual at a point in its own
coordinates; `None` when the visual has none and is hit by what
it occupies or draws. (Upstream: the `ICustomHitTest` interface;
a class implementing it overrides this and the geometry form.)

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-custom_hit_test_geometry"></a>

### custom_hit_test_geometry

```rust
fn custom_hit_test_geometry(self: &Self, geometry: &Ref<crate::media::Geometry>) -> Option<crate::media::IntersectionResult>
```

The custom hit test of the visual against a geometry in its own
coordinates; `None` when the visual has none.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-ensure_initialized_for_visual_brush"></a>

### ensure_initialized_for_visual_brush

```rust
fn ensure_initialized_for_visual_brush(self: &Self)
```

Ensures that the visual is ready to use as the visual in a
visual brush. (Upstream: the `IVisualBrushInitialize` interface;
a class implementing it overrides this.)

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-detach_from_compositor"></a>

### detach_from_compositor

```rust
fn detach_from_compositor(self: &Self)
```

Releases the composition visual of the visual.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-synchronize_composition_child_visuals"></a>

### synchronize_composition_child_visuals

```rust
fn synchronize_composition_child_visuals(self: &Self)
```

Makes the children of the composition visual match the visual
children (in Z order) and the child composition visual.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-synchronize_composition_properties"></a>

### synchronize_composition_properties

```rust
fn synchronize_composition_properties(self: &Self)
```

Copies the properties of the visual to its composition visual.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-requires_composition_visual"></a>

### requires_composition_visual

```rust
fn requires_composition_visual(self: &Self) -> bool
```

Whether the visual has a composition visual of its own whatever it draws: a class
whose `create_composition_visual` makes a
composition visual that shows something itself says so here. Any other visual gets
its composition visual once it sets something the compositor applies, or is asked
for it (docs/porting/desktop-performance.md, section 9.41); until then what it draws
is an item of the composition visual of the nearest visual above it that has one
(section 9.42).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L189)

<a id="function-bounds_property"></a>

### bounds_property

```rust
fn bounds_property() -> &'static DirectProperty<Visual, Rect>
```

Defines the `Bounds` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-clip_to_bounds_property"></a>

### clip_to_bounds_property

```rust
fn clip_to_bounds_property() -> &'static StyledProperty<bool>
```

Defines the `ClipToBounds` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-clip_property"></a>

### clip_property

```rust
fn clip_property() -> &'static StyledProperty<Option<Ref<Geometry>>>
```

Defines the `Clip` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-shadow_property"></a>

### shadow_property

```rust
fn shadow_property() -> &'static StyledProperty<Option<Ref<crate::media::Shadow>>>
```

Defines the `Shadow` property (WinUI `UIElement.Shadow`): the shadow the element casts,
a `ThemeShadow`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-translation_property"></a>

### translation_property

```rust
fn translation_property() -> &'static DirectProperty<Visual, crate::Vector3D>
```

Defines the `Translation` property (WinUI `UIElement.Translation`): the facade
`translation` as a property markup can set
(`Translation="0,0,32"`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-cache_mode_property"></a>

### cache_mode_property

```rust
fn cache_mode_property() -> &'static StyledProperty<Option<Ref<CacheMode>>>
```

Defines the `CacheMode` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-effect_property"></a>

### effect_property

```rust
fn effect_property() -> &'static StyledProperty<Option<Rc<dyn IEffect>>>
```

Defines the `Effect` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-opacity_mask_property"></a>

### opacity_mask_property

```rust
fn opacity_mask_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```

Defines the `OpacityMask` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-render_transform_property"></a>

### render_transform_property

```rust
fn render_transform_property() -> &'static StyledProperty<Option<Rc<dyn ITransform>>>
```

Defines the `RenderTransform` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-render_transform_origin_property"></a>

### render_transform_origin_property

```rust
fn render_transform_origin_property() -> &'static StyledProperty<RelativePoint>
```

Defines the `RenderTransformOrigin` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-is_visible_property"></a>

### is_visible_property

```rust
fn is_visible_property() -> &'static StyledProperty<bool>
```

Defines the `IsVisible` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-opacity_property"></a>

### opacity_property

```rust
fn opacity_property() -> &'static StyledProperty<f64>
```

Defines the `Opacity` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-has_mirror_transform_property"></a>

### has_mirror_transform_property

```rust
fn has_mirror_transform_property() -> &'static DirectProperty<Visual, bool>
```

Defines the `HasMirrorTransform` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-flow_direction_property"></a>

### flow_direction_property

```rust
fn flow_direction_property() -> &'static AttachedProperty<FlowDirection>
```

Defines the `FlowDirection` attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-visual_parent_property"></a>

### visual_parent_property

```rust
fn visual_parent_property() -> &'static DirectProperty<Visual, Option<Ref<Visual>>>
```

Defines the `VisualParent` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-z_index_property"></a>

### z_index_property

```rust
fn z_index_property() -> &'static StyledProperty<i32>
```

Defines the `ZIndex` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L893)

<a id="function-construct"></a>

### construct

```rust
fn construct() -> Self
```

Creates the class data; see `crate::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1109)

<a id="function-new"></a>

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1141)

<a id="function-attached_to_visual_tree"></a>

### attached_to_visual_tree

```rust
fn attached_to_visual_tree(self: &Self, handler: impl Fn(&VisualTreeAttachmentEventArgs) -> () + 'static) -> Subscription
```

Raised when the control is attached to a rooted visual tree.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1148)

<a id="function-detached_from_visual_tree"></a>

### detached_from_visual_tree

```rust
fn detached_from_visual_tree(self: &Self, handler: impl Fn(&VisualTreeAttachmentEventArgs) -> () + 'static) -> Subscription
```

Raised when the control is detached from a rooted visual tree.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1162)

<a id="function-is_effectively_visible_changed"></a>

### is_effectively_visible_changed

```rust
fn is_effectively_visible_changed(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
```

Raised when `is_effectively_visible` changes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1176)

<a id="function-bounds"></a>

### bounds

```rust
fn bounds(self: &Self) -> Rect
```

The bounds of the control relative to its parent.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1190)

<a id="function-set_bounds"></a>

### set_bounds

```rust
fn set_bounds(self: &Self, value: Rect)
```

Sets the bounds of the control. Called by the layout system.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1195)

<a id="function-clip_to_bounds"></a>

### clip_to_bounds

```rust
fn clip_to_bounds(self: &Self) -> bool
```

Whether the control should be clipped to its bounds.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1203)

<a id="function-set_clip_to_bounds"></a>

### set_clip_to_bounds

```rust
fn set_clip_to_bounds(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1207)

<a id="function-clip"></a>

### clip

```rust
fn clip(self: &Self) -> Option<Ref<Geometry>>
```

The geometry clip for this visual.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1212)

<a id="function-set_clip"></a>

### set_clip

```rust
fn set_clip(self: &Self, value: impl Into<Nullable<Geometry>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1216)

<a id="function-cache_mode"></a>

### cache_mode

```rust
fn cache_mode(self: &Self) -> Option<Ref<CacheMode>>
```

The cache mode of the visual.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1221)

<a id="function-set_cache_mode"></a>

### set_cache_mode

```rust
fn set_cache_mode(self: &Self, value: impl Into<Nullable<CacheMode>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1225)

<a id="function-effect"></a>

### effect

```rust
fn effect(self: &Self) -> Option<Rc<dyn IEffect>>
```

The effect of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1230)

<a id="function-set_effect"></a>

### set_effect

```rust
fn set_effect(self: &Self, value: Option<Rc<dyn IEffect>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1234)

<a id="function-opacity_mask"></a>

### opacity_mask

```rust
fn opacity_mask(self: &Self) -> Option<Rc<dyn IBrush>>
```

The opacity mask of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1239)

<a id="function-set_opacity_mask"></a>

### set_opacity_mask

```rust
fn set_opacity_mask(self: &Self, value: Option<Rc<dyn IBrush>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1243)

<a id="function-render_transform"></a>

### render_transform

```rust
fn render_transform(self: &Self) -> Option<Rc<dyn ITransform>>
```

The render transform of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1248)

<a id="function-set_render_transform"></a>

### set_render_transform

```rust
fn set_render_transform(self: &Self, value: Option<Rc<dyn ITransform>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1252)

<a id="function-render_transform_origin"></a>

### render_transform_origin

```rust
fn render_transform_origin(self: &Self) -> RelativePoint
```

The transform origin of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1257)

<a id="function-set_render_transform_origin"></a>

### set_render_transform_origin

```rust
fn set_render_transform_origin(self: &Self, value: RelativePoint)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1261)

<a id="function-is_effectively_visible"></a>

### is_effectively_visible

```rust
fn is_effectively_visible(self: &Self) -> bool
```

Whether this control and all its parents are visible.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1267)

<a id="function-is_visible"></a>

### is_visible

```rust
fn is_visible(self: &Self) -> bool
```

Whether this control is visible.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1272)

<a id="function-set_is_visible"></a>

### set_is_visible

```rust
fn set_is_visible(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1276)

<a id="function-opacity"></a>

### opacity

```rust
fn opacity(self: &Self) -> f64
```

The opacity of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1281)

<a id="function-set_opacity"></a>

### set_opacity

```rust
fn set_opacity(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1285)

<a id="function-manipulation_transform"></a>

### manipulation_transform

```rust
fn manipulation_transform(self: &Self) -> Option<crate::Matrix>
```

The manipulation transform of the visual (not upstream): a transform its parent applies
to it after its render transform and before its position, about its top left corner. The
scroll presenter of a zooming scroll viewer scales its content this way (WinUI applies the
zoom of DirectManipulation to the content of a scroll viewer); it takes part in rendering,
hit testing and the transforms between visuals as the render transform does. `None` by
default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1302)

<a id="function-set_manipulation_transform"></a>

### set_manipulation_transform

```rust
fn set_manipulation_transform(self: &Self, value: Option<crate::Matrix>)
```

Sets `manipulation_transform`; the identity is no
transform.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1311)

<a id="function-has_mirror_transform"></a>

### has_mirror_transform

```rust
fn has_mirror_transform(self: &Self) -> bool
```

Whether the control is mirrored relative to its parent because of its
flow direction.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1325)

<a id="function-set_has_mirror_transform"></a>

### set_has_mirror_transform

```rust
fn set_has_mirror_transform(self: &Self, value: bool)
```

Sets the mirror transform flag.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1330)

<a id="function-flow_direction"></a>

### flow_direction

```rust
fn flow_direction(self: &Self) -> FlowDirection
```

The text flow direction.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1335)

<a id="function-set_flow_direction"></a>

### set_flow_direction

```rust
fn set_flow_direction(self: &Self, value: FlowDirection)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1339)

<a id="function-get_flow_direction"></a>

### get_flow_direction

```rust
fn get_flow_direction(visual: &Visual) -> FlowDirection
```

Gets the value of the attached `FlowDirection` property on a visual.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1344)

<a id="function-set_flow_direction_on"></a>

### set_flow_direction_on

```rust
fn set_flow_direction_on(visual: &Visual, value: FlowDirection)
```

Sets the value of the attached `FlowDirection` property on a visual.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1349)

<a id="function-z_index"></a>

### z_index

```rust
fn z_index(self: &Self) -> i32
```

The Z index of the control.

Controls with a higher Z index appear in front of controls with a
lower one. Among controls with the same value, order of appearance in
the visual children decides.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1358)

<a id="function-set_z_index"></a>

### set_z_index

```rust
fn set_z_index(self: &Self, value: i32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1362)

<a id="function-visual_children"></a>

### visual_children

```rust
fn visual_children(self: &Self) -> &FerroList<Ref<Visual>>
```

The control's child visuals.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1367)

<a id="function-visual_children_count"></a>

### visual_children_count

```rust
fn visual_children_count(self: &Self) -> usize
```

The number of visual children, without creating the collection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1393)

<a id="function-visual_children_snapshot"></a>

### visual_children_snapshot

```rust
fn visual_children_snapshot(self: &Self) -> Option<Rc<Vec<Ref<Visual>>>>
```

A snapshot of the visual children, without creating the collection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1399)

<a id="function-visual_root"></a>

### visual_root

```rust
fn visual_root(self: &Self) -> Option<Ref<Visual>>
```

The root of the visual tree, if the control is attached to one.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1417)

<a id="function-has_composition_visual"></a>

### has_composition_visual

```rust
fn has_composition_visual(self: &Self) -> bool
```

Whether the visual has a composition visual of its own now. A visual attached to a tree
that has none is shown by the composition visual of the nearest visual above it that has
one: what the visual draws is an item of that composition visual
(`has_composition_item`), and the composition visuals of
the visuals under it are its children (docs/porting/desktop-performance.md, sections
9.41 and 9.42).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1472)

<a id="function-has_composition_item"></a>

### has_composition_item

```rust
fn has_composition_item(self: &Self) -> bool
```

Whether what the visual draws is shown now by the composition visual of the nearest
visual above it that has one, as an item of it: the visual has no composition visual of
its own (docs/porting/desktop-performance.md, section 9.42).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1480)

<a id="function-composition_visuals_on_demand"></a>

### composition_visuals_on_demand

```rust
fn composition_visuals_on_demand() -> bool
```

Whether visuals get their composition visuals on demand (the default), or each of them
when it is attached to a visual tree.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1487)

<a id="function-set_composition_visuals_on_demand"></a>

### set_composition_visuals_on_demand

```rust
fn set_composition_visuals_on_demand(value: bool)
```

Sets whether visuals get their composition visuals on demand. With `false` every visual
has a composition visual from the moment it is attached to a visual tree, as upstream.
It applies to the visuals attached from then on; it is meant to be set once, before the
first window.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L1495)

<a id="function-child_composition_visual"></a>

### child_composition_visual

```rust
fn child_composition_visual(self: &Self) -> Option<Rc<CompositionVisual>>
```

The composition visual shown as the last child of the composition
visual of this visual (see `ElementComposition`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2063)

<a id="function-set_child_composition_visual"></a>

### set_child_composition_visual

```rust
fn set_child_composition_visual(self: &Self, value: Option<Rc<CompositionVisual>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2067)

<a id="function-lights"></a>

### lights

```rust
fn lights(self: &Self) -> FerroList<Ref<crate::media::XamlLight>>
```

`UIElement.Lights`: the XAML lights the element holds. A light added
to the collection is connected to the element (`OnConnected`) while
the element is in a visual tree, and lights the targets of its id in
the subtree of the element (winui-materials.md).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2114)

<a id="function-has_lights"></a>

### has_lights

```rust
fn has_lights(self: &Self) -> bool
```

Whether the element holds a lights collection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2128)

<a id="function-light_target_ids"></a>

### light_target_ids

```rust
fn light_target_ids(self: &Self) -> Vec<String>
```

The ids of the XAML lights that target the element.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2134)

<a id="function-translation"></a>

### translation

```rust
fn translation(self: &Self) -> crate::Vector3D
```

`UIElement.Translation`: the translation of the composition visual of the visual, applied
after its render transform. Zero until set.

As in WinUI the translation is not a styled property; setting it hands the `Translation`
of the composition visual to this facade, which writes it whenever the visual is
rendered again. While it was never set, the application may animate the `Translation` of
the composition visual itself.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2173)

<a id="function-set_translation"></a>

### set_translation

```rust
fn set_translation(self: &Self, value: crate::Vector3D)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2177)

<a id="function-is_hidden_by_composition"></a>

### is_hidden_by_composition

```rust
fn is_hidden_by_composition(self: &Self) -> bool
```

Whether the composition visual of the visual is hidden by requests of the composition
API (see `add_composition_hide_request`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2192)

<a id="function-add_composition_hide_request"></a>

### add_composition_hide_request

```rust
fn add_composition_hide_request(self: &Self)
```

Hides the composition visual of the visual until the matching
`remove_composition_hide_request`, whatever
`IsVisible` says. Requests are counted. A connected animation hides its source and
destination this way while it shows them through visual surfaces, which render a hidden
visual (WinUI hides the element's visual with `SetConnectedAnimationRunning`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2201)

<a id="function-remove_composition_hide_request"></a>

### remove_composition_hide_request

```rust
fn remove_composition_hide_request(self: &Self)
```

Ends a request of `add_composition_hide_request`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2207)

<a id="function-is_render_suppressed"></a>

### is_render_suppressed

```rust
fn is_render_suppressed(self: &Self) -> bool
```

Whether presentation owners have suppressed this visual and its descendants in all
render paths. Suppression changes no styled property, layout or logical visibility.
It also applies to immediate bitmap and visual-brush captures; composition-only
hiding remains independently capturable for connected animations.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2216)

<a id="function-add_render_suppression_request"></a>

### add_render_suppression_request

```rust
fn add_render_suppression_request(self: &Self)
```

Suppresses drawing until a matching remove request. Independent owners may hold
requests concurrently. Input behavior is deliberately separate: editors that suppress
presentation may additionally install their own temporary hit-test policy.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2224)

<a id="function-remove_render_suppression_request"></a>

### remove_render_suppression_request

```rust
fn remove_render_suppression_request(self: &Self)
```

Releases one request without changing another owner's suppression or authored values.
Removing a request when none is active is harmless.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2239)

<a id="function-is_shown_by_composition"></a>

### is_shown_by_composition

```rust
fn is_shown_by_composition(self: &Self) -> bool
```

Whether the composition visual of the visual is kept visible by requests of the
composition API although `IsVisible` is `false` (see
`add_composition_show_request`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2255)

<a id="function-add_composition_show_request"></a>

### add_composition_show_request

```rust
fn add_composition_show_request(self: &Self)
```

Keeps the composition visual of the visual visible until the matching
`remove_composition_show_request`, whatever
`IsVisible` says. Requests are counted. An implicit hide animation keeps the element
visible this way until it completes. A hide request wins over a show request.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2263)

<a id="function-remove_composition_show_request"></a>

### remove_composition_show_request

```rust
fn remove_composition_show_request(self: &Self)
```

Ends a request of `add_composition_show_request`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2269)

<a id="function-composition_layer_visual"></a>

### composition_layer_visual

```rust
fn composition_layer_visual(self: &Self) -> Option<Rc<CompositionVisual>>
```

A composition visual shown above the children of the visual and above its child
composition visual (the layer of the connected animations of a top level, WinUI's
`ConnectedAnimationRoot`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2277)

<a id="function-set_composition_layer_visual"></a>

### set_composition_layer_visual

```rust
fn set_composition_layer_visual(self: &Self, value: Option<Rc<CompositionVisual>>)
```

Sets the visual of `composition_layer_visual`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2303)

<a id="function-has_non_uniform_z_index_children"></a>

### has_non_uniform_z_index_children

```rust
fn has_non_uniform_z_index_children(self: &Self) -> bool
```

Whether any child has a non-default Z index.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2407)

<a id="function-is_attached_to_visual_tree"></a>

### is_attached_to_visual_tree

```rust
fn is_attached_to_visual_tree(self: &Self) -> bool
```

Whether this control is attached to a visual root.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2413)

<a id="function-visual_parent"></a>

### visual_parent

```rust
fn visual_parent(self: &Self) -> Option<Ref<Visual>>
```

The control's parent visual.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2419)

<a id="function-invalidate_visual"></a>

### invalidate_visual

```rust
fn invalidate_visual(self: &Self)
```

Invalidates the visual and queues a repaint.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2432)

<a id="function-invalidate_composition_properties"></a>

### invalidate_composition_properties

```rust
fn invalidate_composition_properties(self: &Self)
```

Invalidates the composition properties of this visual (its render transform and opacity)
but not its drawing: the renderer synchronizes the properties without calling `render`
again. A FerroUI addition (docs/porting/desktop-performance.md, section 9.5): upstream
invalidates the visual, which records its drawing again.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2452)

<a id="function-affects_render"></a>

### affects_render

```rust
fn affects_render<T: ObjectType + Upcast<Visual>>(properties: &[&'static FerroProperty])
```

Indicates that a property change should cause `invalidate_visual` to
be called on objects of class `T`.

When the value of such a property is a media object that can change
(a brush, pen, geometry, transform, effect or image), its
invalidation invalidates the visual as well.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual.rs#L2464)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<Visual>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- `Drop`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
