[−][src]Trait gtk::ColorButtonExt
Required methods
fn get_title(&self) -> Option<GString>
Gets the title of the color selection dialog.
Returns
An internal string, do not free the return value
fn set_title(&self, title: &str)
fn get_property_alpha(&self) -> u32
The selected opacity value (0 fully transparent, 65535 fully opaque).
fn set_property_alpha(&self, alpha: u32)
The selected opacity value (0 fully transparent, 65535 fully opaque).
fn get_property_show_editor(&self) -> bool
Set this property to true
to skip the palette
in the dialog and go directly to the color editor.
This property should be used in cases where the palette in the editor would be redundant, such as when the color button is already part of a palette.
Feature: v3_20
fn set_property_show_editor(&self, show_editor: bool)
Set this property to true
to skip the palette
in the dialog and go directly to the color editor.
This property should be used in cases where the palette in the editor would be redundant, such as when the color button is already part of a palette.
Feature: v3_20
fn connect_color_set<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
The ::color-set signal is emitted when the user selects a color.
When handling this signal, use ColorButton::get_rgba
to
find out which color was just selected.
Note that this signal is only emitted when the user changes the color. If you need to react to programmatic color changes as well, use the notify::color signal.
fn connect_property_alpha_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_rgba_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_show_editor_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_title_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<ColorButton>> ColorButtonExt for O
[src]
fn get_title(&self) -> Option<GString>
[src]
fn set_title(&self, title: &str)
[src]
fn get_property_alpha(&self) -> u32
[src]
fn set_property_alpha(&self, alpha: u32)
[src]
fn get_property_show_editor(&self) -> bool
[src]
fn set_property_show_editor(&self, show_editor: bool)
[src]
fn connect_color_set<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn connect_property_alpha_notify<F: Fn(&Self) + '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_show_editor_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_title_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