Trait ColorChooserExt

Source
pub trait ColorChooserExt: 'static {
    // Required methods
    fn get_rgba(&self) -> RGBA;
    fn get_use_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_property_rgba_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_property_use_alpha_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}

Required Methods§

Source

fn get_rgba(&self) -> RGBA

Source

fn get_use_alpha(&self) -> bool

Source

fn set_rgba(&self, color: &RGBA)

Source

fn set_use_alpha(&self, use_alpha: bool)

Source

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

Source

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

Source

fn connect_property_use_alpha_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§