Trait libhelium::prelude::TextFieldExt

source ·
pub trait TextFieldExt: IsA<TextField> + Sealed + 'static {
Show 42 methods // Provided methods fn internal_entry(&self) -> Text { ... } fn is_valid(&self) -> bool { ... } fn set_is_valid(&self, value: bool) { ... } fn needs_validation(&self) -> bool { ... } fn set_needs_validation(&self, value: bool) { ... } fn min_length(&self) -> i32 { ... } fn set_min_length(&self, value: i32) { ... } fn regex(&self) -> Regex { ... } fn set_regex(&self, value: &Regex) { ... } fn is_search(&self) -> bool { ... } fn set_is_search(&self, value: bool) { ... } fn is_outline(&self) -> bool { ... } fn set_is_outline(&self, value: bool) { ... } fn entry(&self) -> Text { ... } fn text(&self) -> Option<GString> { ... } fn set_text(&self, value: Option<&str>) { ... } fn suffix_icon(&self) -> Option<GString> { ... } fn set_suffix_icon(&self, value: Option<&str>) { ... } fn prefix_icon(&self) -> Option<GString> { ... } fn set_prefix_icon(&self, value: Option<&str>) { ... } fn support_text(&self) -> Option<GString> { ... } fn set_support_text(&self, value: Option<&str>) { ... } fn placeholder_text(&self) -> Option<GString> { ... } fn set_placeholder_text(&self, value: Option<&str>) { ... } fn max_length(&self) -> i32 { ... } fn set_max_length(&self, value: i32) { ... } fn is_visible(&self) -> bool { ... } fn set_visibility(&self, value: bool) { ... } fn connect_is_valid_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_needs_validation_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_min_length_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_regex_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_search_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_outline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_entry_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_text_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_suffix_icon_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_prefix_icon_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_support_text_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_placeholder_text_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_max_length_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_visibility_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all TextField methods.

§Implementors

TextField

Provided Methods§

source

fn internal_entry(&self) -> Text

A function to be used in code (not Blueprint) to get the Gtk.Text widget.

source

fn is_valid(&self) -> bool

source

fn set_is_valid(&self, value: bool)

source

fn needs_validation(&self) -> bool

source

fn set_needs_validation(&self, value: bool)

source

fn min_length(&self) -> i32

source

fn set_min_length(&self, value: i32)

source

fn regex(&self) -> Regex

source

fn set_regex(&self, value: &Regex)

source

fn is_outline(&self) -> bool

source

fn set_is_outline(&self, value: bool)

source

fn entry(&self) -> Text

source

fn text(&self) -> Option<GString>

source

fn set_text(&self, value: Option<&str>)

source

fn suffix_icon(&self) -> Option<GString>

source

fn set_suffix_icon(&self, value: Option<&str>)

source

fn prefix_icon(&self) -> Option<GString>

source

fn set_prefix_icon(&self, value: Option<&str>)

source

fn support_text(&self) -> Option<GString>

source

fn set_support_text(&self, value: Option<&str>)

source

fn placeholder_text(&self) -> Option<GString>

source

fn set_placeholder_text(&self, value: Option<&str>)

source

fn max_length(&self) -> i32

source

fn set_max_length(&self, value: i32)

source

fn is_visible(&self) -> bool

source

fn set_visibility(&self, value: bool)

source

fn connect_is_valid_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_needs_validation_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_min_length_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_regex_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_is_search_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_is_outline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_entry_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_suffix_icon_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_prefix_icon_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_support_text_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_placeholder_text_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_max_length_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_visibility_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<TextField>> TextFieldExt for O