[]Struct gtk::ColorChooserWidget

pub struct ColorChooserWidget(_, _);

The ColorChooserWidget widget lets the user select a color. By default, the chooser presents a predefined palette of colors, plus a small number of settable custom colors. It is also possible to select a different color with the single-color editor. To enter the single-color editing mode, use the context menu of any color of the palette, or use the '+' button to add a new custom color.

The chooser automatically remembers the last selection, as well as custom colors.

To change the initially selected color, use ColorChooser::set_rgba. To get the selected color use ColorChooser::get_rgba.

The ColorChooserWidget is used in the ColorChooserDialog to provide a dialog for selecting colors.

CSS names

ColorChooserWidget has a single CSS node with name colorchooser.

Implements

ColorChooserWidgetExt, BoxExt, ContainerExt, WidgetExt, glib::object::ObjectExt, BuildableExt, OrientableExt, ColorChooserExt, WidgetExtManual, BuildableExtManual, ColorChooserExtManual

Implementations

impl ColorChooserWidget[src]

pub fn new() -> ColorChooserWidget[src]

Creates a new ColorChooserWidget.

Returns

a new ColorChooserWidget

Trait Implementations

impl Clone for ColorChooserWidget

impl Debug for ColorChooserWidget

impl Default for ColorChooserWidget[src]

impl Display for ColorChooserWidget[src]

impl Eq for ColorChooserWidget

impl Hash for ColorChooserWidget

impl IsA<Box> for ColorChooserWidget

impl IsA<Buildable> for ColorChooserWidget

impl IsA<ColorChooser> for ColorChooserWidget

impl IsA<Container> for ColorChooserWidget

impl IsA<Orientable> for ColorChooserWidget

impl IsA<Widget> for ColorChooserWidget

impl Ord for ColorChooserWidget

impl<T: ObjectType> PartialEq<T> for ColorChooserWidget

impl<T: ObjectType> PartialOrd<T> for ColorChooserWidget

impl StaticType for ColorChooserWidget

Auto Trait Implementations

impl RefUnwindSafe for ColorChooserWidget

impl !Send for ColorChooserWidget

impl !Sync for ColorChooserWidget

impl Unpin for ColorChooserWidget

impl UnwindSafe for ColorChooserWidget

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.