# Hyperlink

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/documents/struct-hyperlink/

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

```rust
struct Hyperlink
```

An interactive span. Its host supplies hit testing/focus and forwards pointer
and keyboard gestures; invocation and URI launch use the framework services.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L87)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`navigate_uri_property`](#function-navigate_uri_property)
- [`target_name_property`](#function-target_name_property)
- [`is_enabled_property`](#function-is_enabled_property)
- [`is_tab_stop_property`](#function-is_tab_stop_property)
- [`tab_index_property`](#function-tab_index_property)
- [`is_visited_property`](#function-is_visited_property)
- [`underline_style_property`](#function-underline_style_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_text`](#function-with_text)
- [`navigate_uri`](#function-navigate_uri)
- [`set_navigate_uri`](#function-set_navigate_uri)
- [`target_name`](#function-target_name)
- [`set_target_name`](#function-set_target_name)
- [`is_enabled`](#function-is_enabled)
- [`set_is_enabled`](#function-set_is_enabled)
- [`is_tab_stop`](#function-is_tab_stop)
- [`set_is_tab_stop`](#function-set_is_tab_stop)
- [`tab_index`](#function-tab_index)
- [`set_tab_index`](#function-set_tab_index)
- [`is_visited`](#function-is_visited)
- [`set_is_visited`](#function-set_is_visited)
- [`underline_style`](#function-underline_style)
- [`set_underline_style`](#function-set_underline_style)
- [`should_draw_underline`](#function-should_draw_underline)
- [`content_text`](#function-content_text)
- [`is_pointer_over`](#function-is_pointer_over)
- [`is_pressed`](#function-is_pressed)
- [`is_focused`](#function-is_focused)
- [`set_is_pointer_over`](#function-set_is_pointer_over)
- [`set_is_focused`](#function-set_is_focused)
- [`click`](#function-click)
- [`navigation_requested`](#function-navigation_requested)
- [`navigate`](#function-navigate)
- [`pointer_pressed`](#function-pointer_pressed)
- [`pointer_released`](#function-pointer_released)
- [`cancel_pointer`](#function-cancel_pointer)
- [`key_down`](#function-key_down)
- [`key_up`](#function-key_up)
- [`is_link_navigation_key`](#function-is_link_navigation_key)

<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/documents/hyperlink.rs#L97)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L97)

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

### navigate_uri_property

```rust
fn navigate_uri_property() -> &'static StyledProperty<Option<String>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L150)

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

### target_name_property

```rust
fn target_name_property() -> &'static StyledProperty<Option<String>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L150)

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

### is_enabled_property

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L150)

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

### is_tab_stop_property

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L150)

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

### tab_index_property

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L150)

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

### is_visited_property

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L150)

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

### underline_style_property

```rust
fn underline_style_property() -> &'static StyledProperty<UnderlineStyle>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L150)

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

### construct

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L183)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L195)

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

### with_text

```rust
fn with_text(text: &str, navigate_uri: Option<&str>) -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L237)

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

### navigate_uri

```rust
fn navigate_uri(self: &Self) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L244)

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

### set_navigate_uri

```rust
fn set_navigate_uri(self: &Self, value: Option<String>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L247)

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

### target_name

```rust
fn target_name(self: &Self) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L250)

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

### set_target_name

```rust
fn set_target_name(self: &Self, value: Option<String>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L253)

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

### is_enabled

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L256)

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

### set_is_enabled

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L259)

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

### is_tab_stop

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L262)

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

### set_is_tab_stop

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L265)

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

### tab_index

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L268)

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

### set_tab_index

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L271)

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

### is_visited

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L274)

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

### set_is_visited

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L277)

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

### underline_style

```rust
fn underline_style(self: &Self) -> UnderlineStyle
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L280)

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

### set_underline_style

```rust
fn set_underline_style(self: &Self, value: UnderlineStyle)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L283)

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

### should_draw_underline

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L286)

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

### content_text

```rust
fn content_text(self: &Self) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L289)

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

### is_pointer_over

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L292)

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

### is_pressed

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L295)

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

### is_focused

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L298)

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

### set_is_pointer_over

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L302)

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

### set_is_focused

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L308)

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

### click

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

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the hyperlink.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L316)

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

### navigation_requested

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

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the hyperlink.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L325)

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

### navigate

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

Raises Click, then NavigationRequested. A handled event cancels default URI
launch. A relative URI remains available to an application navigation handler.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L334)

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

### pointer_pressed

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L361)

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

### pointer_released

```rust
fn pointer_released(self: &Self, is_over: bool) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L370)

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

### cancel_pointer

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L376)

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

### key_down

```rust
fn key_down(self: &Self, key: Key) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L381)

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

### key_up

```rust
fn key_up(self: &Self, key: Key) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L390)

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

### is_link_navigation_key

```rust
fn is_link_navigation_key(key: Key) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/hyperlink.rs#L399)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`InlineImplExt`](/docs/0.5.0/api/ferroui-controls/documents/trait-inlineimplext/)
- [`TextElementImplExt`](/docs/0.5.0/api/ferroui-controls/documents/trait-textelementimplext/)
- `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`
- [`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/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<Hyperlink>`](/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/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`TextElementImpl`](/docs/0.5.0/api/ferroui-controls/documents/trait-textelementimpl/)
- [`InlineImpl`](/docs/0.5.0/api/ferroui-controls/documents/trait-inlineimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)

## Availability

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