[−][src]Trait gtk::ColorChooserExt
Trait containing all ColorChooser
methods.
Implementors
ColorButton
, ColorChooserDialog
, ColorChooserWidget
, ColorChooser
Required methods
fn get_rgba(&self) -> RGBA
fn get_use_alpha(&self) -> bool
Returns whether the color chooser shows the alpha channel.
Returns
true
if the color chooser uses the alpha channel,
false
if not
fn set_rgba(&self, color: &RGBA)
fn set_use_alpha(&self, use_alpha: bool)
Sets whether or not the color chooser should use the alpha channel.
use_alpha
true
if color chooser should use alpha channel, false
if not
fn connect_color_activated<F: Fn(&Self, &RGBA) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Emitted when a color is activated from the color chooser. This usually happens when the user clicks a color swatch, or a color is selected and the user presses one of the keys Space, Shift+Space, Return or Enter.
color
the color
fn connect_property_rgba_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_use_alpha_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<ColorChooser>> ColorChooserExt for O
[src]
fn get_rgba(&self) -> RGBA
[src]
fn get_use_alpha(&self) -> bool
[src]
fn set_rgba(&self, color: &RGBA)
[src]
fn set_use_alpha(&self, use_alpha: bool)
[src]
fn connect_color_activated<F: Fn(&Self, &RGBA) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_rgba_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_use_alpha_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId