Trait TextExt

Source
pub trait TextExt {
    // Required methods
    unsafe fn connect_redo_available<F: FnMut(&Self, bool) + 'static>(
        &self,
        cb: F,
    );
    unsafe fn connect_selection_changed<F: FnMut(&Self) + 'static>(&self, cb: F);
    unsafe fn connect_text_changed<F: FnMut(&Self) + 'static>(&self, cb: F);
    unsafe fn connect_undo_available<F: FnMut(&Self, bool) + 'static>(
        &self,
        cb: F,
    );
}

Required Methods§

Source

unsafe fn connect_redo_available<F: FnMut(&Self, bool) + 'static>(&self, cb: F)

§Safety

The QObjects referenced by self and receiver must be alive.

Source

unsafe fn connect_selection_changed<F: FnMut(&Self) + 'static>(&self, cb: F)

§Safety

The QObjects referenced by self and receiver must be alive.

Source

unsafe fn connect_text_changed<F: FnMut(&Self) + 'static>(&self, cb: F)

§Safety

The QObjects referenced by self and receiver must be alive.

Source

unsafe fn connect_undo_available<F: FnMut(&Self, bool) + 'static>(&self, cb: F)

§Safety

The QObjects referenced by self and receiver must be alive.

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.

Implementations on Foreign Types§

Source§

impl TextExt for QBox<QTextBrowser>

Source§

unsafe fn connect_redo_available<F: FnMut(&Self, bool) + 'static>(&self, cb: F)

Source§

unsafe fn connect_selection_changed<F: FnMut(&Self) + 'static>(&self, cb: F)

Source§

unsafe fn connect_text_changed<F: FnMut(&Self) + 'static>(&self, cb: F)

Source§

unsafe fn connect_undo_available<F: FnMut(&Self, bool) + 'static>(&self, cb: F)

Source§

impl TextExt for QBox<QTextEdit>

Source§

unsafe fn connect_redo_available<F: FnMut(&Self, bool) + 'static>(&self, cb: F)

Source§

unsafe fn connect_selection_changed<F: FnMut(&Self) + 'static>(&self, cb: F)

Source§

unsafe fn connect_text_changed<F: FnMut(&Self) + 'static>(&self, cb: F)

Source§

unsafe fn connect_undo_available<F: FnMut(&Self, bool) + 'static>(&self, cb: F)

Implementors§