Show / Hide Table of Contents

Struct ImScrollAreaStyle

Defines the style of the viewable content, the scrollbar, and the scrollbar button.

Implements
IStyle
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: InitialPrefabs.NimGui
Assembly: InitialPrefabs.ImGui.dll
Syntax
public struct ImScrollAreaStyle : IStyle

Fields

ButtonDefault

Default scroll button color.

Declaration
public Color32 ButtonDefault
Field Value
Type Description
UnityEngine.Color32

ButtonHover

Scroll button color when the mouse is over the scroll button.

Declaration
public Color32 ButtonHover
Field Value
Type Description
UnityEngine.Color32

ButtonPressed

Scroll button color when the mouse presses the button.

Declaration
public Color32 ButtonPressed
Field Value
Type Description
UnityEngine.Color32

DeltaTime

Time between frames.

Declaration
public float DeltaTime
Field Value
Type Description
System.Single

Padding

Amount of spacing between the current and next widget.

Declaration
public float2 Padding
Field Value
Type Description
Unity.Mathematics.float2

ScrollBarBackground

Background color of the scrollbar.

Declaration
public Color32 ScrollBarBackground
Field Value
Type Description
UnityEngine.Color32

ScrollBarPanel

Panel color of the scroll area.

Declaration
public Color32 ScrollBarPanel
Field Value
Type Description
UnityEngine.Color32

ScrollButtonWidth

Size of the scroll button.

Declaration
public float ScrollButtonWidth
Field Value
Type Description
System.Single

ScrollSpeed

Speed of scrolling with a mousewheel.

Declaration
public float ScrollSpeed
Field Value
Type Description
System.Single

Methods

New()

Constructs a new instance of the ScrollAreaStyle with default settings.

Declaration
public static ImScrollAreaStyle New()
Returns
Type Description
ImScrollAreaStyle

Implements

IStyle

Extension Methods

ImScrollAreaStyleExtensions.GetButtonStyle(in ImScrollAreaStyle)
ImScrollAreaStyleExtensions.WithButtonStyle(ref ImScrollAreaStyle, in ImButtonStyle)
StyleExtensions.WithScrollButtonWidth(ref ImScrollAreaStyle, Single)
StyleExtensions.WithPadding(ref ImScrollAreaStyle, float2)
StyleExtensions.WithButtonDefault(ref ImScrollAreaStyle, Color32)
StyleExtensions.WithButtonHover(ref ImScrollAreaStyle, Color32)
StyleExtensions.WithButtonPressed(ref ImScrollAreaStyle, Color32)
StyleExtensions.WithScrollBarBackground(ref ImScrollAreaStyle, Color32)
StyleExtensions.WithScrollBarPanel(ref ImScrollAreaStyle, Color32)
StyleExtensions.WithDeltaTime(ref ImScrollAreaStyle, Single)
StyleExtensions.WithScrollSpeed(ref ImScrollAreaStyle, Single)
In This Article
Back to top Generated by DocFX