Struct gtk4::builders::ColorDialogBuilder
source · pub struct ColorDialogBuilder { /* private fields */ }
Available on crate feature
v4_10
only.Expand description
A builder-pattern type to construct ColorDialog
objects.
Implementations§
source§impl ColorDialogBuilder
impl ColorDialogBuilder
sourcepub fn title(self, title: impl Into<GString>) -> Self
pub fn title(self, title: impl Into<GString>) -> Self
A title that may be shown on the color chooser
dialog that is presented by ColorDialog::choose_rgba()
.
sourcepub fn with_alpha(self, with_alpha: bool) -> Self
pub fn with_alpha(self, with_alpha: bool) -> Self
Whether colors may have alpha (translucency).
When with-alpha is false
, the color that is selected
will be forced to have alpha == 1.
sourcepub fn build(self) -> ColorDialog
pub fn build(self) -> ColorDialog
Build the ColorDialog
.
Auto Trait Implementations§
impl Freeze for ColorDialogBuilder
impl RefUnwindSafe for ColorDialogBuilder
impl !Send for ColorDialogBuilder
impl !Sync for ColorDialogBuilder
impl Unpin for ColorDialogBuilder
impl UnwindSafe for ColorDialogBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more