Struct easy_imgui::style::Style
source · pub struct Style<'a>(/* private fields */);Expand description
An immutable reference to the ImGui styles.
Methods from Deref<Target = StylePtr<'a>>§
pub fn color(&self, id: ColorId) -> Color
pub fn alpha(&self) -> f32
pub fn color_alpha(&self, id: ColorId, alpha_mul: f32) -> Color
pub fn frame_padding(&self) -> Vector2
pub fn frame_rounding(&self) -> f32
pub fn frame_border_size(&self) -> f32
pub fn item_spacing(&self) -> Vector2
pub fn item_inner_spacing(&self) -> Vector2
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Style<'a>
impl<'a> Send for Style<'a>
impl<'a> Sync for Style<'a>
impl<'a> Unpin for Style<'a>
impl<'a> !UnwindSafe for Style<'a>
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