gtk4::subclass::color_chooser

Trait ColorChooserImpl

Source
pub trait ColorChooserImpl: ObjectImpl + ObjectSubclass<Type: IsA<ColorChooser>> {
    // Required methods
    fn rgba(&self) -> RGBA;
    fn set_rgba(&self, rgba: RGBA);

    // Provided methods
    fn add_palette(
        &self,
        orientation: Orientation,
        colors_per_line: i32,
        colors: &[RGBA],
    ) { ... }
    fn color_activated(&self, rgba: RGBA) { ... }
}
๐Ÿ‘ŽDeprecated: Since 4.10

Required Methodsยง

Source

fn rgba(&self) -> RGBA

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_rgba(&self, rgba: RGBA)

๐Ÿ‘ŽDeprecated: Since 4.10

Provided Methodsยง

Source

fn add_palette( &self, orientation: Orientation, colors_per_line: i32, colors: &[RGBA], )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn color_activated(&self, rgba: RGBA)

๐Ÿ‘Ž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ยง