Struct easy_imgui::style::Style
source · pub struct Style(/* private fields */);Expand description
A wrapper for the ImGuiStyle type.
It can be deref-ed directly into a ImGuiStyle reference.
Implementations§
source§impl Style
impl Style
pub fn get(&self) -> &ImGuiStyle
pub fn get_mut(&mut self) -> &mut ImGuiStyle
pub fn set_colors_light(&mut self)
pub fn set_colors_dark(&mut self)
pub fn set_colors_classic(&mut self)
pub fn color(&self, id: ColorId) -> Color
pub fn set_color(&mut self, id: ColorId, color: Color)
pub fn color_alpha(&self, id: ColorId, alpha_mul: f32) -> Color
Methods from Deref<Target = ImGuiStyle>§
pub unsafe fn ScaleAllSizes(&mut self, scale_factor: f32)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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