Struct aflak_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]
impl<'ui, 'p> ColorButton<'ui, 'p>
pub fn new(_: &Ui<'ui>, desc_id: &'p ImStr, color: ImVec4) -> Self
[src]
pub fn new(_: &Ui<'ui>, desc_id: &'p ImStr, color: ImVec4) -> Self
Constructs a new color button builder.
pub fn flags(self, flags: ImGuiColorEditFlags) -> Self
[src]
pub fn flags(self, flags: ImGuiColorEditFlags) -> Self
Replaces all current settings with the given flags.
pub fn alpha(self, value: bool) -> Self
[src]
pub fn alpha(self, value: bool) -> Self
Enables/disables the use of the alpha component.
pub fn tooltip(self, value: bool) -> Self
[src]
pub fn tooltip(self, value: bool) -> Self
Enables/disables the tooltip that appears when hovering the preview.
pub fn preview(self, preview: ColorPreview) -> Self
[src]
pub fn preview(self, preview: ColorPreview) -> Self
Sets the preview style.
pub fn size<S: Into<ImVec2>>(self, size: S) -> Self
[src]
pub fn size<S: Into<ImVec2>>(self, size: S) -> Self
Sets the button size.
Use 0.0 for width and/or height to use the default size.
pub fn build(self) -> bool
[src]
pub fn build(self) -> bool
Builds the color button.
Auto Trait Implementations
impl<'ui, 'p> !Send for ColorButton<'ui, 'p>
impl<'ui, 'p> !Send for ColorButton<'ui, 'p>
impl<'ui, 'p> !Sync for ColorButton<'ui, 'p>
impl<'ui, 'p> !Sync for ColorButton<'ui, 'p>