Trait components::EntryExt[][src]

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

Required methods

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.

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.

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.

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

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”

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.

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.

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

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

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

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

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

fn get_property_primary_icon_tooltip_text(&self) -> Option<String>[src]

get_primary_icon_tooltip_text: @entry: a #Entry

Returns: the primary icon tooltip

fn get_property_secondary_icon_tooltip_text(&self) -> Option<String>[src]

get_secondary_icon_tooltip_text: @entry: a #Entry

Returns: the primary icon tooltip

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

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

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

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

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

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

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

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

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

Loading content...

Implementors

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

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.

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.

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.

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

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”

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.

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.

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

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

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

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

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

fn get_property_primary_icon_tooltip_text(&self) -> Option<String>[src]

get_primary_icon_tooltip_text: @entry: a #Entry

Returns: the primary icon tooltip

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...