gtk4::prelude

Trait EntryBufferExt

Source
pub trait EntryBufferExt:
    IsA<EntryBuffer>
    + Sealed
    + 'static {
    // Provided methods
    fn emit_deleted_text(&self, position: u32, n_chars: u32) { ... }
    fn emit_inserted_text(&self, position: u32, chars: &str, n_chars: u32) { ... }
    fn connect_length_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_max_length_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_text_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all EntryBuffer methods.

§Implementors

EntryBuffer, PasswordEntryBuffer

Provided Methods§

Source

fn emit_deleted_text(&self, position: u32, n_chars: u32)

Used when subclassing EntryBuffer.

§position

position at which text was deleted

§n_chars

number of characters deleted

Source

fn emit_inserted_text(&self, position: u32, chars: &str, n_chars: u32)

Used when subclassing EntryBuffer.

§position

position at which text was inserted

§chars

text that was inserted

§n_chars

number of characters inserted

Source

fn connect_length_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_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§