Trait webkit2gtk::prelude::ColorChooserRequestExt
source · [−]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
sourcefn cancel(&self)
fn cancel(&self)
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.
sourcefn finish(&self)
fn finish(&self)
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.
sourcefn element_rectangle(&self) -> Rectangle
fn element_rectangle(&self) -> Rectangle
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
sourcefn connect_finished<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_finished<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Available on crate feature
v2_8
only.sourcefn connect_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Available on crate feature
v2_8
only.