gtk4::prelude

Trait ColorChooserExt

Source
pub trait ColorChooserExt:
    IsA<ColorChooser>
    + Sealed
    + 'static {
    // Provided methods
    fn rgba(&self) -> RGBA { ... }
    fn uses_alpha(&self) -> bool { ... }
    fn set_rgba(&self, color: &RGBA) { ... }
    fn set_use_alpha(&self, use_alpha: bool) { ... }
    fn connect_color_activated<F: Fn(&Self, &RGBA) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_rgba_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_use_alpha_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
๐Ÿ‘ŽDeprecated: Since 4.10

Provided Methodsยง

Source

fn rgba(&self) -> RGBA

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn uses_alpha(&self) -> bool

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_rgba(&self, color: &RGBA)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_use_alpha(&self, use_alpha: bool)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

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

๐Ÿ‘ŽDeprecated: Since 4.10
Source

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

๐Ÿ‘ŽDeprecated: Since 4.10
Source

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

๐Ÿ‘ŽDeprecated: Since 4.10

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ยง