Skip to main content

StyleVar

Enum StyleVar 

Source
#[repr(i32)]
pub enum StyleVar {
Show 45 variants Alpha = 0, DisabledAlpha = 1, WindowPadding = 2, WindowRounding = 3, WindowBorderSize = 4, WindowMinSize = 5, WindowTitleAlign = 6, ChildRounding = 7, ChildBorderSize = 8, PopupRounding = 9, PopupBorderSize = 10, FramePadding = 11, FrameRounding = 12, FrameBorderSize = 13, ItemSpacing = 14, ItemInnerSpacing = 15, IndentSpacing = 16, CellPadding = 17, ScrollbarSize = 18, ScrollbarRounding = 19, ScrollbarPadding = 20, GrabMinSize = 21, GrabRounding = 22, ImageRounding = 23, ImageBorderSize = 24, TabRounding = 25, TabBorderSize = 26, TabMinWidthBase = 27, TabMinWidthShrink = 28, TabBarBorderSize = 29, TabBarOverlineSize = 30, TableAngledHeadersAngle = 31, TableAngledHeadersTextAlign = 32, TreeLinesSize = 33, TreeLinesRounding = 34, DragDropTargetRounding = 37, ButtonTextAlign = 38, SelectableTextAlign = 39, SeparatorSize = 40, SeparatorTextBorderSize = 41, SeparatorTextAlign = 42, SeparatorTextPadding = 43, DockingSeparatorSize = 44, MenuItemRounding = 35, SelectableRounding = 36,
}
Expand description

Dear ImGui (ImGuiStyleVar): Variable identifier for styling

Variants§

§

Alpha = 0

Dear ImGui (ImGuiStyleVar_Alpha): Global alpha

§

DisabledAlpha = 1

Dear ImGui (ImGuiStyleVar_DisabledAlpha): Disabled alpha

§

WindowPadding = 2

Dear ImGui (ImGuiStyleVar_WindowPadding): Window padding

§

WindowRounding = 3

Dear ImGui (ImGuiStyleVar_WindowRounding): Window rounding

§

WindowBorderSize = 4

Dear ImGui (ImGuiStyleVar_WindowBorderSize): Window border size

§

WindowMinSize = 5

Dear ImGui (ImGuiStyleVar_WindowMinSize): Window min size

§

WindowTitleAlign = 6

Dear ImGui (ImGuiStyleVar_WindowTitleAlign): Window title align

§

ChildRounding = 7

Dear ImGui (ImGuiStyleVar_ChildRounding): Child rounding

§

ChildBorderSize = 8

Dear ImGui (ImGuiStyleVar_ChildBorderSize): Child border size

§

PopupRounding = 9

Dear ImGui (ImGuiStyleVar_PopupRounding): Popup rounding

§

PopupBorderSize = 10

Dear ImGui (ImGuiStyleVar_PopupBorderSize): Popup border size

§

FramePadding = 11

Dear ImGui (ImGuiStyleVar_FramePadding): Frame padding

§

FrameRounding = 12

Dear ImGui (ImGuiStyleVar_FrameRounding): Frame rounding

§

FrameBorderSize = 13

Dear ImGui (ImGuiStyleVar_FrameBorderSize): Frame border size

§

ItemSpacing = 14

Dear ImGui (ImGuiStyleVar_ItemSpacing): Item spacing

§

ItemInnerSpacing = 15

Dear ImGui (ImGuiStyleVar_ItemInnerSpacing): Item inner spacing

§

IndentSpacing = 16

Dear ImGui (ImGuiStyleVar_IndentSpacing): Indent spacing

§

CellPadding = 17

Dear ImGui (ImGuiStyleVar_CellPadding): Cell padding

§

ScrollbarSize = 18

Dear ImGui (ImGuiStyleVar_ScrollbarSize): Scrollbar size

§

ScrollbarRounding = 19

Dear ImGui (ImGuiStyleVar_ScrollbarRounding): Scrollbar rounding

§

ScrollbarPadding = 20

Dear ImGui (ImGuiStyleVar_ScrollbarPadding): Scrollbar padding

§

GrabMinSize = 21

Dear ImGui (ImGuiStyleVar_GrabMinSize): Grab min size

§

GrabRounding = 22

Dear ImGui (ImGuiStyleVar_GrabRounding): Grab rounding

§

ImageRounding = 23

Dear ImGui (ImGuiStyleVar_ImageRounding): Image rounding

§

ImageBorderSize = 24

Dear ImGui (ImGuiStyleVar_ImageBorderSize): Image border size

§

TabRounding = 25

Dear ImGui (ImGuiStyleVar_TabRounding): Tab rounding

§

TabBorderSize = 26

Dear ImGui (ImGuiStyleVar_TabBorderSize): Tab border size

§

TabMinWidthBase = 27

Dear ImGui (ImGuiStyleVar_TabMinWidthBase): Tab min width base

§

TabMinWidthShrink = 28

Dear ImGui (ImGuiStyleVar_TabMinWidthShrink): Tab min width shrink

§

TabBarBorderSize = 29

Dear ImGui (ImGuiStyleVar_TabBarBorderSize): Tab bar border size

§

TabBarOverlineSize = 30

Dear ImGui (ImGuiStyleVar_TabBarOverlineSize): Tab bar overline size

§

TableAngledHeadersAngle = 31

Dear ImGui (ImGuiStyleVar_TableAngledHeadersAngle): Table angled headers angle

§

TableAngledHeadersTextAlign = 32

Dear ImGui (ImGuiStyleVar_TableAngledHeadersTextAlign): Table angled headers text align

§

TreeLinesSize = 33

Dear ImGui (ImGuiStyleVar_TreeLinesSize): Tree lines size

§

TreeLinesRounding = 34

Dear ImGui (ImGuiStyleVar_TreeLinesRounding): Tree lines rounding

§

DragDropTargetRounding = 37

Dear ImGui (ImGuiStyleVar_DragDropTargetRounding): Drag drop target rounding

§

ButtonTextAlign = 38

Dear ImGui (ImGuiStyleVar_ButtonTextAlign): Button text align

§

SelectableTextAlign = 39

Dear ImGui (ImGuiStyleVar_SelectableTextAlign): Selectable text align

§

SeparatorSize = 40

Dear ImGui (ImGuiStyleVar_SeparatorSize): Separator size

§

SeparatorTextBorderSize = 41

Dear ImGui (ImGuiStyleVar_SeparatorTextBorderSize): Separator text border size

§

SeparatorTextAlign = 42

Dear ImGui (ImGuiStyleVar_SeparatorTextAlign): Separator text align

§

SeparatorTextPadding = 43

Dear ImGui (ImGuiStyleVar_SeparatorTextPadding): Separator text padding

§

DockingSeparatorSize = 44

Dear ImGui (ImGuiStyleVar_DockingSeparatorSize): Docking separator size

§

MenuItemRounding = 35

Dear ImGui (ImGuiStyleVar_MenuItemRounding): Radius of MenuItem, BeginMenu rounding

§

SelectableRounding = 36

Dear ImGui (ImGuiStyleVar_SelectableRounding): Radius of Selectable rounding

Implementations§

Source§

impl StyleVar

Source

pub fn bits(self) -> i32

Source

pub fn from_bits(bits: i32) -> Option<Self>

Trait Implementations§

Source§

impl Clone for StyleVar

Source§

fn clone(&self) -> StyleVar

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for StyleVar

Source§

impl Debug for StyleVar

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for StyleVar

Source§

impl Ord for StyleVar

Source§

fn cmp(&self, other: &StyleVar) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for StyleVar

Source§

fn eq(&self, other: &StyleVar) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for StyleVar

Source§

fn partial_cmp(&self, other: &StyleVar) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for StyleVar

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.