pub struct LinkLabel {
pub url: String,
pub open_in_place: bool,
/* private fields */
}
Expand description
A clickable label widget that opens a URL when clicked.
This is a wrapper around (and derefs to) a Button
widget.
Fields§
§url: String
§open_in_place: bool
Methods from Deref<Target = Button>§
Sourcepub fn clicked(&self, actions: &Actions) -> bool
pub fn clicked(&self, actions: &Actions) -> bool
Returns true
if this button was clicked.
See ButtonAction
for more details.
Sourcepub fn pressed(&self, actions: &Actions) -> bool
pub fn pressed(&self, actions: &Actions) -> bool
Returns true
if this button was pressed down.
See ButtonAction
for more details.
Sourcepub fn long_pressed(&self, actions: &Actions) -> bool
pub fn long_pressed(&self, actions: &Actions) -> bool
Returns true
if this button was long-pressed on.
Note that this does not mean the button has been released yet.
See ButtonAction
for more details.
Sourcepub fn released(&self, actions: &Actions) -> bool
pub fn released(&self, actions: &Actions) -> bool
Returns true
if this button was released, which is not considered to be clicked.
See ButtonAction
for more details.
Sourcepub fn clicked_modifiers(&self, actions: &Actions) -> Option<KeyModifiers>
pub fn clicked_modifiers(&self, actions: &Actions) -> Option<KeyModifiers>
Returns Some
(with active keyboard modifiers) if this button was clicked.
See ButtonAction
for more details.
Sourcepub fn pressed_modifiers(&self, actions: &Actions) -> Option<KeyModifiers>
pub fn pressed_modifiers(&self, actions: &Actions) -> Option<KeyModifiers>
Returns Some
(with active keyboard modifiers) if this button was pressed down.
See ButtonAction
for more details.
Sourcepub fn released_modifiers(&self, actions: &Actions) -> Option<KeyModifiers>
pub fn released_modifiers(&self, actions: &Actions) -> Option<KeyModifiers>
Returns Some
(with active keyboard modifiers) if this button was released,
which is not considered to be clicked.
See ButtonAction
for more details.