Struct ux::native::Entry [−][src]
pub struct Entry { /* fields omitted */ }
Implementations
impl Entry
[src]
Trait Implementations
impl AsRef<Actor> for Entry
[src]
impl AsRef<Entry> for Entry
[src]
impl AsRef<Widget> for Entry
[src]
impl Clone for Entry
[src]
impl Debug for Entry
[src]
impl Default for Entry
[src]
impl Display for Entry
[src]
impl Is<Actor> for Entry
[src]
impl Is<Entry> for Entry
[src]
impl Is<Widget> for Entry
[src]
impl Object for Entry
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Entry
impl !Send for Entry
impl !Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<O> EntryExt for O where
O: Is<Entry>,
[src]
O: Is<Entry>,
pub fn get_icon_highlight_suffix(&self) -> Option<String>
[src]
get_icon_highlight_suffix: @entry: a #Entry
Get the suffix appended to the filename to use for the highlighted version of the icon.
Returns: the highlight filename suffix. This string is owned by the #Entry and should not be freed or modified.
pub fn get_password_char(&self) -> char
[src]
get_password_char: @entry: a #Entry
Gets the character to display instead of the text.
Return value: a character, or 0 if input should not be hidden.
pub fn get_placeholder(&self) -> Option<String>
[src]
get_placeholder: @entry: a #Entry
Gets the text that is displayed when the entry is empty and unfocused
Returns: (transfer none): the current value of the placeholder property. This string is owned by the #Entry and should not be freed or modified.
pub fn get_text(&self) -> Option<String>
[src]
get_text: @entry: a #Entry
Get the text displayed on the entry
Returns: the text for the entry. This must not be freed by the application
pub fn set_icon_highlight_suffix(&self, suffix: &str)
[src]
set_icon_highlight_suffix: @entry: a #Entry @suffix: the suffix to append to the filename for the highlight version
Sets the suffix appended to the filename to use for the highlighted version of the icon. e.g. if you have set your primay icon to “primary-icon.png” and the suffix to “-highlight” #Entry will look for “primary-icon-highlight.png”
pub fn set_password_char(&self, password_char: char)
[src]
set_password_char: @entry: a #Entry @password_char: character to display instead of text
Sets the character to display instead of the text. Use 0 to display the actual text.
pub fn set_placeholder(&self, text: &str)
[src]
set_placeholder: @entry: a #Entry @text: text to set as the entry hint
Sets the text to display when the entry is empty and unfocused. When the entry is displaying the hint, it has a pseudo class of “indeterminate”. A value of None unsets the hint.
pub fn set_primary_icon_from_file(&self, filename: &str)
[src]
set_primary_icon_from_file: @entry: a #Entry @filename: filename of an icon
Set the primary icon of the entry to the given filename
pub fn set_primary_icon_tooltip_text(&self, text: &str)
[src]
set_primary_icon_tooltip: @entry: a #Entry @text: the primary icon tooltip
Set the primary icon tooltip text
pub fn set_secondary_icon_from_file(&self, filename: &str)
[src]
set_secondary_icon_from_file: @entry: a #Entry @filename: filename of an icon
Set the secondary icon of the entry to the given filename
pub fn set_secondary_icon_tooltip_text(&self, text: &str)
[src]
set_secondary_icon_tooltip: @entry: a #Entry @text: the secondary icon tooltip
Set the secondary icon tooltip text
pub fn set_text(&self, text: &str)
[src]
set_text: @entry: a #Entry @text: text to set the entry to
Sets the text displayed on the entry
pub fn get_property_primary_icon_tooltip_text(&self) -> Option<String>
[src]
get_primary_icon_tooltip_text: @entry: a #Entry
Returns: the primary icon tooltip
pub fn get_property_secondary_icon_tooltip_text(&self) -> Option<String>
[src]
get_secondary_icon_tooltip_text: @entry: a #Entry
Returns: the primary icon tooltip
pub fn connect_primary_icon_clicked<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_secondary_icon_clicked<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_clutter_text_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_icon_highlight_suffix_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_password_char_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_placeholder_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_primary_icon_tooltip_text_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_secondary_icon_tooltip_text_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_text_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<O> WidgetExt for O where
O: Is<Widget>,
[src]
O: Is<Widget>,
pub fn apply_style<P>(&self, style: &P) where
P: Is<Style>,
[src]
P: Is<Style>,
widget_apply_style: @widget: A #Widget @style: A #Style
Used to implement how a new style instance should be applied in the widget. For instance, setting style instance on stylable internal children.
pub fn get_available_area(&self, allocation: &ActorBox, area: &mut ActorBox)
[src]
get_available_area: @widget: A #Widget @allocation: A #ActorBox @area: A #ActorBox
Copies @allocation into @area and accounts for the padding values. This gives the area that is available in which to allocate children with respect to padding.
pub fn get_background_color(&self) -> Option<Color>
[src]
get_background_color: @actor: A #Widget
Get the color used as the background. This is set using the “background-color” CSS property. This function should normally only be used by subclasses.
Returns: (transfer none): a #Color
pub fn get_background_texture(&self) -> Option<Handle>
[src]
pub fn get_disabled(&self) -> bool
[src]
get_disabled: @widget: an #Widget
Get the value of the “disabled” property.
pub fn get_padding(&self) -> Padding
[src]
get_padding: @widget: A #Widget @padding: (out): A pointer to an #Padding to fill
Gets the padding of the widget, set using the “padding” CSS property. This function should normally only be used by subclasses.
pub fn long_press_cancel(&self)
[src]
long_press_cancel: @widget: An Widget
Cancel a long-press timeout if one is running and emit the signal to notify that the long-press has been cancelled.
pub fn long_press_query(&self, event: &mut Event)
[src]
long_press_query: @widget: An Widget @event: the event used to determine whether to run a long-press
Emit the long-press query signal and start a long-press timeout if required.
pub fn set_disabled(&self, disabled: bool)
[src]
widget_set_disabled: @widget: an #Widget @disabled: value to set
Set the disabled property. Disabled widgets have a “disabled” pseudo-class until disabled is set to #false.
pub fn connect_property_disabled_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_menu_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_tooltip_delay_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),