# RevealBorderLight

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/media/struct-revealborderlight/

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

```rust
struct RevealBorderLight
```

A border light of Reveal (WinUI's internal `RevealBorderLight`): a spot
light above the pointer that lights the Reveal border brushes near it;
switched on while the pointer is over the window (250 ms).

`RevealBrush` attaches four of them (normal and
wide, for the light and the dark theme) and an ambient light to the
root of every window while a Reveal brush is connected.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_lights.rs#L805)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_options`](#function-with_options)
- [`is_light_theme`](#function-is_light_theme)
- [`is_wide_light`](#function-is_wide_light)
- [`is_on`](#function-is_on)
- [`spot_light`](#function-spot_light)
- [`switch_light`](#function-switch_light)

<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.Controls/media/reveal_lights.rs#L810)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_lights.rs#L810)

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

### construct

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_lights.rs#L865)

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

### new

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

A border light of the dark theme.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_lights.rs#L870)

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

### with_options

```rust
fn with_options(light_theme: bool, wide: bool) -> Ref<Self>
```

A border light: `light_theme` selects the id of the light theme, `wide`
the wide light.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_lights.rs#L876)

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

### is_light_theme

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

Whether the light has the id of the light theme.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_lights.rs#L887)

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

### is_wide_light

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

Whether the light is the wide light.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_lights.rs#L892)

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

### is_on

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

Whether the light is switched on.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_lights.rs#L897)

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

### spot_light

```rust
fn spot_light(self: &Self) -> Option<SpotLight>
```

The spot light, while it exists.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_lights.rs#L902)

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

### switch_light

```rust
fn switch_light(self: &Self, turn_on: bool)
```

`SwitchLight`: animates the intensity of the light to 1 or 0 over
250 ms; the light is disabled when the turn-off animation is done.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_lights.rs#L1084)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `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`
- [`XamlLightImplExt`](/docs/0.5.0/api/ferroui-base/media/trait-xamllightimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<RevealBorderLight>`](/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/)
- [`XamlLightImpl`](/docs/0.5.0/api/ferroui-base/media/trait-xamllightimpl/)

## Availability

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