Struct imgui::ColorButton
[−]
[src]
#[must_use]pub struct ColorButton<'ui, 'p> { /* fields omitted */ }
Builder for a color button widget.
Methods
impl<'ui, 'p> ColorButton<'ui, 'p>
[src]
fn new(_: &Ui<'ui>, desc_id: &'p ImStr, color: ImVec4) -> Self
[src]
Constructs a new color button builder.
fn flags(self, flags: ImGuiColorEditFlags) -> Self
[src]
Replaces all current settings with the given flags.
fn alpha(self, value: bool) -> Self
[src]
Enables/disables the use of the alpha component.
fn tooltip(self, value: bool) -> Self
[src]
Enables/disables the tooltip that appears when hovering the preview.
fn preview(self, preview: ColorPreview) -> Self
[src]
Sets the preview style.
fn size<S: Into<ImVec2>>(self, size: S) -> Self
[src]
Sets the button size.
Use 0.0 for width and/or height to use the default size.
fn build(self) -> bool
[src]
Builds the color button.