# CompositionVisual

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/rendering/composition/struct-compositionvisual/

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

```rust
struct CompositionVisual
```

A node of the composition visual tree.

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

## Members

- [`rotation_angle_in_degrees`](#function-rotation_angle_in_degrees)
- [`set_rotation_angle_in_degrees`](#function-set_rotation_angle_in_degrees)
- [`rotation_axis`](#function-rotation_axis)
- [`set_rotation_axis`](#function-set_rotation_axis)
- [`relative_offset_adjustment`](#function-relative_offset_adjustment)
- [`set_relative_offset_adjustment`](#function-set_relative_offset_adjustment)
- [`relative_size_adjustment`](#function-relative_size_adjustment)
- [`set_relative_size_adjustment`](#function-set_relative_size_adjustment)
- [`effective_size`](#function-effective_size)
- [`is_hit_test_visible`](#function-is_hit_test_visible)
- [`set_is_hit_test_visible`](#function-set_is_hit_test_visible)
- [`is_pixel_snapping_enabled`](#function-is_pixel_snapping_enabled)
- [`set_is_pixel_snapping_enabled`](#function-set_is_pixel_snapping_enabled)
- [`border_mode`](#function-border_mode)
- [`set_border_mode`](#function-set_border_mode)
- [`backface_visibility`](#function-backface_visibility)
- [`set_backface_visibility`](#function-set_backface_visibility)
- [`composite_mode`](#function-composite_mode)
- [`set_composite_mode`](#function-set_composite_mode)
- [`parent_for_transform`](#function-parent_for_transform)
- [`set_parent_for_transform`](#function-set_parent_for_transform)
- [`visible`](#function-visible)
- [`set_visible`](#function-set_visible)
- [`opacity`](#function-opacity)
- [`set_opacity`](#function-set_opacity)
- [`clip_to_bounds`](#function-clip_to_bounds)
- [`set_clip_to_bounds`](#function-set_clip_to_bounds)
- [`offset`](#function-offset)
- [`set_offset`](#function-set_offset)
- [`translation`](#function-translation)
- [`set_translation`](#function-set_translation)
- [`size`](#function-size)
- [`set_size`](#function-set_size)
- [`anchor_point`](#function-anchor_point)
- [`set_anchor_point`](#function-set_anchor_point)
- [`center_point`](#function-center_point)
- [`set_center_point`](#function-set_center_point)
- [`rotation_angle`](#function-rotation_angle)
- [`set_rotation_angle`](#function-set_rotation_angle)
- [`orientation`](#function-orientation)
- [`set_orientation`](#function-set_orientation)
- [`scale`](#function-scale)
- [`set_scale`](#function-set_scale)
- [`transform_matrix`](#function-transform_matrix)
- [`set_transform_matrix`](#function-set_transform_matrix)
- [`adorner_is_clipped`](#function-adorner_is_clipped)
- [`set_adorner_is_clipped`](#function-set_adorner_is_clipped)
- [`effect`](#function-effect)
- [`set_effect`](#function-set_effect)
- [`render_options`](#function-render_options)
- [`set_render_options`](#function-set_render_options)
- [`text_options`](#function-text_options)
- [`set_text_options`](#function-set_text_options)
- [`compositor`](#function-compositor)
- [`object`](#function-object)
- [`implicit_animations`](#function-implicit_animations)
- [`set_implicit_animations`](#function-set_implicit_animations)
- [`is_disposed`](#function-is_disposed)
- [`dispose`](#function-dispose)
- [`children`](#function-children)
- [`root`](#function-root)
- [`parent`](#function-parent)
- [`adorned_visual`](#function-adorned_visual)
- [`set_adorned_visual`](#function-set_adorned_visual)
- [`cache_mode`](#function-cache_mode)
- [`set_cache_mode`](#function-set_cache_mode)
- [`composition_clip`](#function-composition_clip)
- [`set_composition_clip`](#function-set_composition_clip)
- [`disable_sub_tree_bounds_hit_test_optimization`](#function-disable_sub_tree_bounds_hit_test_optimization)
- [`opacity_mask`](#function-opacity_mask)
- [`set_opacity_mask`](#function-set_opacity_mask)
- [`tag`](#function-tag)
- [`set_tag`](#function-set_tag)
- [`hit_test`](#function-hit_test)
- [`hit_test_geometry`](#function-hit_test_geometry)

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

### rotation_angle_in_degrees

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

The rotation about the rotation axis in degrees: a view of
`rotation_angle`.

Deviation (winui-composition.md): not an animation target of its own;
animate `RotationAngle`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L19)

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

### set_rotation_angle_in_degrees

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L23)

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

### rotation_axis

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

The axis `rotation_angle` rotates about
(default `(0, 0, 1)`; animatable as `RotationAxis`).

Deviation (winui-composition.md): an axis along Z (or a zero axis)
rotates in the plane; any other axis rotates in 3D, of which the 2D
renderers show the projection, as for `Orientation`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L33)

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

### set_rotation_axis

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L37)

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

### relative_offset_adjustment

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

The part of the size of the parent added to the offset: the offset of
the visual is `Offset + RelativeOffsetAdjustment * parent size`
(animatable as `RelativeOffsetAdjustment`; Z is not adjusted, the
parent has no depth).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L45)

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

### set_relative_offset_adjustment

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L49)

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

### relative_size_adjustment

```rust
fn relative_size_adjustment(self: &Self) -> Vector
```

The part of the size of the parent added to the size: the size of
the visual is `Size + RelativeSizeAdjustment * parent size`
(animatable as `RelativeSizeAdjustment`). `(1, 1)` with a zero `Size`
makes the visual as large as its parent.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L57)

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

### set_relative_size_adjustment

```rust
fn set_relative_size_adjustment(self: &Self, value: Vector)
```



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

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

### effective_size

```rust
fn effective_size(self: &Self) -> Vector
```

The size of the visual with its relative size adjustment applied: what
is rendered and hit tested. `size` is the `Size`
property alone.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L68)

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

### is_hit_test_visible

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

Whether the visual and its subtree take part in hit testing (default
`true`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L80)

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

### set_is_hit_test_visible

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L84)

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

### is_pixel_snapping_enabled

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

Whether the offset of the visual is snapped to device pixels.

Deviation (winui-composition.md): the translation of the transform of
the visual relative to its parent is rounded to device pixels of its
target, not its position in the window.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L93)

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

### set_is_pixel_snapping_enabled

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L97)

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

### border_mode

```rust
fn border_mode(self: &Self) -> CompositionBorderMode
```

How the edges of the visual are antialiased. Stored only.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L102)

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

### set_border_mode

```rust
fn set_border_mode(self: &Self, value: CompositionBorderMode)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L106)

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

### backface_visibility

```rust
fn backface_visibility(self: &Self) -> CompositionBackfaceVisibility
```

Whether the back of the visual is shown when it is turned in 3D.
Stored only.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L112)

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

### set_backface_visibility

```rust
fn set_backface_visibility(self: &Self, value: CompositionBackfaceVisibility)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L116)

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

### composite_mode

```rust
fn composite_mode(self: &Self) -> CompositionCompositeMode
```

How the visual is blended with what is behind it. Stored only.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L121)

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

### set_composite_mode

```rust
fn set_composite_mode(self: &Self, value: CompositionCompositeMode)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L125)

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

### parent_for_transform

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

The visual whose coordinate space the transform of this visual is
relative to, instead of its parent: the visual is drawn where its
parent is, in the place its offset and transform give it inside
`parent_for_transform`.

Deviation (winui-composition.md): the two visuals must be in one tree
(otherwise the transform is relative to the parent); clips and
opacity still come from the parent chain.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L137)

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

### set_parent_for_transform

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_visual_winui.rs#L143)

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

### visible

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



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

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

### set_visible

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



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

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

### opacity

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



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

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

### set_opacity

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



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

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

### clip_to_bounds

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



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

<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/rendering/composition/visual.rs#L92)

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

### offset

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



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

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

### set_offset

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



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

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

### translation

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



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

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

### set_translation

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



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

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

### size

```rust
fn size(self: &Self) -> Vector
```



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

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

### set_size

```rust
fn set_size(self: &Self, value: Vector)
```



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

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

### anchor_point

```rust
fn anchor_point(self: &Self) -> Vector
```



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

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

### set_anchor_point

```rust
fn set_anchor_point(self: &Self, value: Vector)
```



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

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

### center_point

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



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

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

### set_center_point

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



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

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

### rotation_angle

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



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

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

### set_rotation_angle

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



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

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

### orientation

```rust
fn orientation(self: &Self) -> Quaternion
```



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

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

### set_orientation

```rust
fn set_orientation(self: &Self, value: Quaternion)
```



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

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

### scale

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



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

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

### set_scale

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



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

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

### transform_matrix

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



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

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

### set_transform_matrix

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



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

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

### adorner_is_clipped

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

Whether the adorner is clipped by the clips of the adorned visual
and its ancestors.

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

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

### set_adorner_is_clipped

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



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

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

### effect

```rust
fn effect(self: &Self) -> Option<std::sync::Arc<dyn IImmutableEffect>>
```



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

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

### set_effect

```rust
fn set_effect(self: &Self, value: Option<std::sync::Arc<dyn IImmutableEffect>>)
```



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

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

### render_options

```rust
fn render_options(self: &Self) -> RenderOptions
```



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

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

### set_render_options

```rust
fn set_render_options(self: &Self, value: RenderOptions)
```



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

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

### text_options

```rust
fn text_options(self: &Self) -> TextOptions
```



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

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

### set_text_options

```rust
fn set_text_options(self: &Self, value: TextOptions)
```



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

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

### compositor

```rust
fn compositor(self: &Self) -> &Rc<Compositor>
```



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

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

### object

```rust
fn object(self: &Self) -> &CompositionObject
```

The embedded `CompositionObject`.

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

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

### implicit_animations

```rust
fn implicit_animations(self: &Self) -> Option<Rc<ImplicitAnimationCollection>>
```

The collection of implicit animations attached to this object.

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

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

### set_implicit_animations

```rust
fn set_implicit_animations(self: &Self, value: Option<Rc<ImplicitAnimationCollection>>)
```



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

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

### is_disposed

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



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

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

### dispose

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



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

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

### children

```rust
fn children(self: &Self) -> &Rc<CompositionVisualCollection>
```

The children of the visual.

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

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

### root

```rust
fn root(self: &Self) -> Option<Rc<CompositionTarget>>
```



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

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

### parent

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



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

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

### adorned_visual

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

The visual this visual is an adorner of: its transform follows that
visual.

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

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

### set_adorned_visual

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



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

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

### cache_mode

```rust
fn cache_mode(self: &Self) -> Option<Rc<CompositionBitmapCache>>
```



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

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

### set_cache_mode

```rust
fn set_cache_mode(self: &Self, value: Option<Rc<CompositionBitmapCache>>)
```



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

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

### composition_clip

```rust
fn composition_clip(self: &Self) -> Option<Rc<CompositionClip>>
```

The WinUI clip of the visual (`Visual.Clip`): an
`InsetClip` or a
`RectangleClip`, applied in the coordinates
of the visual, after its transform, to its content and children.

Deviation (winui-composition.md): WinUI names it `Clip`; here `clip`
is the geometry clip of the upstream compositor, so the WinUI member
is `composition_clip`. Both may be set; the visible area is their
intersection.

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

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

### set_composition_clip

```rust
fn set_composition_clip(self: &Self, value: Option<Rc<CompositionClip>>)
```



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

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

### disable_sub_tree_bounds_hit_test_optimization

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



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

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

### opacity_mask

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



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

<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/rendering/composition/visual.rs#L318)

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

### tag

```rust
fn tag(self: &Self) -> Option<Rc<dyn Any>>
```



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

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

### set_tag

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



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

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

### hit_test

```rust
fn hit_test(self: &Self, point: Point) -> bool
```

Whether the content of the visual is hit at a point in its own
coordinates.

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

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

### hit_test_geometry

```rust
fn hit_test_geometry(self: &Self, geometry: &Ref<Geometry>) -> IntersectionResult
```

How the content of the visual intersects a geometry in its own
coordinates.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `CompositionExperimentalAcrylicVisualHooks`
- `VisualUnorderedCollectionHooks<CompositionVisual>`
- `CompositionSolidColorVisualHooks`
- `CompositionSurfaceVisualHooks`
- `LayerVisualHooks`
- `RedirectVisualHooks`
- `ShapeVisualHooks`
- `SpriteVisualHooks`
- `CompositionVisualHooks`
- `CompositionContainerVisualHooks`
- `IRegisterForSerialization`
- `ICompositionObjectHost`
- [`ICompositionObjectAnimations`](/docs/0.5.0/api/ferroui-base/rendering/composition/trait-icompositionobjectanimations/)
- [`AsCompositionObject`](/docs/0.5.0/api/ferroui-base/rendering/composition/trait-ascompositionobject/)
- `ICompositionObject`
- `ICompositorSerializable`
- `CompositionVisualCollectionHooks<CompositionVisual>`

## Availability

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