Trait ux::EntryExt[][src]

pub trait EntryExt: 'static {
Show methods pub fn get_icon_highlight_suffix(&self) -> Option<String>;
pub fn get_password_char(&self) -> char;
pub fn get_placeholder(&self) -> Option<String>;
pub fn get_text(&self) -> Option<String>;
pub fn set_icon_highlight_suffix(&self, suffix: &str);
pub fn set_password_char(&self, password_char: char);
pub fn set_placeholder(&self, text: &str);
pub fn set_primary_icon_from_file(&self, filename: &str);
pub fn set_primary_icon_tooltip_text(&self, text: &str);
pub fn set_secondary_icon_from_file(&self, filename: &str);
pub fn set_secondary_icon_tooltip_text(&self, text: &str);
pub fn set_text(&self, text: &str);
pub fn get_property_primary_icon_tooltip_text(&self) -> Option<String>;
pub fn get_property_secondary_icon_tooltip_text(&self) -> Option<String>;
pub fn connect_primary_icon_clicked<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_secondary_icon_clicked<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_clutter_text_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_icon_highlight_suffix_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_password_char_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_placeholder_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_primary_icon_tooltip_text_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_secondary_icon_tooltip_text_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_text_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
}

Required methods

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(&Self), 
[src]

pub fn connect_secondary_icon_clicked<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_clutter_text_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_icon_highlight_suffix_notify<F>(
    &self,
    f: F
) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_password_char_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_placeholder_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_primary_icon_tooltip_text_notify<F>(
    &self,
    f: F
) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_secondary_icon_tooltip_text_notify<F>(
    &self,
    f: F
) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_text_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

Loading content...

Implementors

impl<O> EntryExt for O where
    O: Is<Entry>, 
[src]

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

Loading content...