pub trait ColorChooserRequestExt: 'static {
    fn cancel(&self);
    fn finish(&self);
    fn element_rectangle(&self) -> Rectangle;
    fn rgba(&self) -> RGBA;
    fn set_rgba(&self, rgba: &RGBA);
    fn connect_finished<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
    fn connect_rgba_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }
Expand description

Required Methods

Available on crate feature v2_8 only.

Cancels self and the input element changes to use the initial color.

Cancels self and the input element changes to use the initial color it has before the request started. The signal signal::ColorChooserRequest::finished is emitted to notify that the request has finished.

Available on crate feature v2_8 only.

Finishes self and the input element keeps the current value of property::ColorChooserRequest::rgba.

Finishes self and the input element keeps the current value of property::ColorChooserRequest::rgba. The signal signal::ColorChooserRequest::finished is emitted to notify that the request has finished.

Available on crate feature v2_8 only.

Gets the bounding box of the color input element.

Returns
rect

a gdk::Rectangle to fill in with the element area

Available on crate feature v2_8 only.

Gets the current gdk::RGBA color of self

Returns
rgba

a gdk::RGBA to fill in with the current color.

Available on crate feature v2_8 only.

Sets the current gdk::RGBA color of self

rgba

a pointer gdk::RGBA

Available on crate feature v2_8 only.

Emitted when the request finishes. This signal can be emitted because the user completed the request calling finish(), or cancelled it with cancel() or because the color input element is removed from the DOM.

Available on crate feature v2_8 only.

Implementors