# HeadlessVncFramebufferSource

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-headless-vnc/struct-headlessvncframebuffersource/

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

```rust
struct HeadlessVncFramebufferSource
```

The framebuffer source of a VNC server session that shows a headless
window.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Headless/FerroUI.Headless.Vnc/headless_vnc_framebuffer_source.rs#L61)

## Members

- [`window`](#function-window)
- [`set_window`](#function-set_window)
- [`framebuffer`](#function-framebuffer)

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

### window

```rust
fn window(self: &Self) -> Option<Ref<Window>>
```

The window the source shows.
## Panics
On a thread other than the UI thread.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Headless/FerroUI.Headless.Vnc/headless_vnc_framebuffer_source.rs#L239)

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

### set_window

```rust
fn set_window(self: &Self, value: Option<Ref<Window>>)
```

Sets the window the source shows.
## Panics
On a thread other than the UI thread.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Headless/FerroUI.Headless.Vnc/headless_vnc_framebuffer_source.rs#L247)

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

### framebuffer

```rust
fn framebuffer(self: &Self) -> Arc<VncFramebuffer>
```

The framebuffer the source captured last (`_framebuffer`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Headless/FerroUI.Headless.Vnc/headless_vnc_framebuffer_source.rs#L253)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Same`
- [`IVncFramebufferSource`](/docs/0.5.0/api/ferroui-headless-vnc/remote_viewing/vnc/trait-ivncframebuffersource/)
- `ErasedDestructor`
- `IntoEither`

## Availability

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